Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000807/0.000807, allocations: 68.47 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8745/0.8745, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.749/1.749, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/2.057e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001386/0.001406, allocations: 0.7363 MB / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.002491, allocations: 1.194 MB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.037e-05/0.002531, allocations: 0 / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.828e-05/0.00256, allocations: 7.938 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.145e-05/0.002621, allocations: 15.86 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000417/0.003038, allocations: 137.7 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.003173, allocations: 119.8 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.895e-05/0.003261, allocations: 20.11 kB / 1.002 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.729e-05/0.003359, allocations: 71.88 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.859e-05/0.003427, allocations: 47.8 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.003447, allocations: 12 kB / 1.002 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.345e-05/0.0035, allocations: 31.98 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.003519, allocations: 4 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.749e-05/0.003566, allocations: 47.89 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.003726, allocations: 147.6 kB / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.003728, allocations: 0 / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.182e-06/0.003729, allocations: 0 / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.537e-06/0.003733, allocations: 0 / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004344/0.004167, allocations: 339.8 kB / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.004201, allocations: 8.75 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.681e-05/0.004227, allocations: 42.73 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.004292, allocations: 12.89 kB / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.846e-05/0.00436, allocations: 117.7 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.004373, allocations: 8.375 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.004388, allocations: 4.375 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.00452, allocations: 78.14 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.004526, allocations: 192 / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.004535, allocations: 4.375 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.004541, allocations: 3.938 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.817e-05/0.004639, allocations: 51.89 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003666/0.005005, allocations: 299.7 kB / 1.003 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.005119, allocations: 58.55 kB / 1.003 GB, free: 9.793 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.015e-05/0.005169, allocations: 28.95 kB / 1.003 GB, free: 9.762 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.005186, allocations: 0 / 1.003 GB, free: 9.762 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.005329, allocations: 95.39 kB / 1.003 GB, free: 9.656 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=8): time 8.61e-07/0.00533, allocations: 4 kB / 1.003 GB, free: 9.652 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8): time 0.0002617/0.005591, allocations: 141.8 kB / 1.003 GB, free: 9.508 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.00562, allocations: 55.41 kB / 1.003 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.93e-05/0.005679, allocations: 125.8 kB / 1.004 GB, free: 9.309 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.005695, allocations: 29.7 kB / 1.004 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.203e-05/0.005737, allocations: 92.09 kB / 1.004 GB, free: 9.18 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.005754, allocations: 23.88 kB / 1.004 GB, free: 9.156 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/0.005809, allocations: 37.7 kB / 1.004 GB, free: 9.113 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.875e-05/0.005878, allocations: 330.8 kB / 1.004 GB, free: 8.781 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.792e-05/0.005975, allocations: 73.67 kB / 1.004 GB, free: 8.703 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.006082, allocations: 133.5 kB / 1.004 GB, free: 8.551 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.006274, allocations: 146.8 kB / 1.004 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.006277, allocations: 4 kB / 1.004 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004917/0.006769, allocations: 240.8 kB / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.006806, allocations: 37.69 kB / 1.005 GB, free: 8.082 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.006813, allocations: 4.078 kB / 1.005 GB, free: 8.078 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.006827, allocations: 0 / 1.005 GB, free: 8.078 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.705e-05/0.006904, allocations: 19.98 kB / 1.005 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.006913, allocations: 12.08 kB / 1.005 GB, free: 8.047 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.007033, allocations: 39.84 kB / 1.005 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.007048, allocations: 8 kB / 1.005 GB, free: 8 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.152e-05/0.007129, allocations: 128.6 kB / 1.005 GB, free: 7.867 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.007144, allocations: 7.953 kB / 1.005 GB, free: 7.859 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000202/0.007346, allocations: 133.9 kB / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.007349, allocations: 0 / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.007353, allocations: 48 / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.007357, allocations: 3.984 kB / 1.005 GB, free: 7.719 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002774/0.007635, allocations: 341.6 kB / 1.005 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.007636, allocations: 0 / 1.005 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.562e-05/0.007672, allocations: 11.98 kB / 1.005 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.007675, allocations: 4 kB / 1.005 GB, free: 7.32 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.007687, allocations: 0 / 1.005 GB, free: 7.32 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.007689, allocations: 4 kB / 1.005 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.007691, allocations: 4 kB / 1.005 GB, free: 7.312 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001815/0.007873, allocations: 227.3 kB / 1.006 GB, free: 7.074 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.063e-05/0.007883, allocations: 7.953 kB / 1.006 GB, free: 7.066 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.007896, allocations: 0 / 1.006 GB, free: 7.066 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.424e-05/0.00794, allocations: 7.984 kB / 1.006 GB, free: 7.059 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.007976, allocations: 8 kB / 1.006 GB, free: 7.051 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.007983, allocations: 3.984 kB / 1.006 GB, free: 7.047 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.788e-05/0.00802, allocations: 91.22 kB / 1.006 GB, free: 6.957 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.00802, allocations: 4 kB / 1.006 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001902/0.008211, allocations: 31.92 kB / 1.006 GB, free: 6.922 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003998/0.008611, allocations: 0.7436 MB / 1.006 GB, free: 6.148 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.008878, allocations: 197 kB / 1.007 GB, free: 5.938 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.00888, allocations: 320 / 1.007 GB, free: 5.938 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.494e-05/0.008945, allocations: 39.97 kB / 1.007 GB, free: 5.898 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.009163, allocations: 18.16 kB / 1.007 GB, free: 5.883 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.0106, allocations: 1.835 MB / 1.008 GB, free: 3.902 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.914e-05/0.01065, allocations: 75.33 kB / 1.009 GB, free: 3.809 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.3e-05/0.01069, allocations: 4 kB / 1.009 GB, free: 3.805 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.317e-05/0.01073, allocations: 24.48 kB / 1.009 GB, free: 3.781 MB / 0.9636 GB Notification: Performance of SimCode: time 6.71e-07/0.01073, allocations: 0 / 1.009 GB, free: 3.781 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.02684, allocations: 3.352 MB / 1.012 GB, free: 0.5898 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.488/6.514, allocations: 12.91 kB / 1.012 GB, free: 0.582 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.524910611100495]