Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001026/0.001026, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 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.0009685/0.0009685, allocations: 173 kB / 23.02 MB, free: 1.547 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.9462/0.9462, allocations: 177.1 MB / 203.4 MB, free: 5.629 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 2.217/2.217, allocations: 429.5 MB / 0.6732 GB, free: 4.031 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.435e-06/2.435e-06, allocations: 0 / 0.8782 GB, free: 6.285 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.909e-05, allocations: 6.25 kB / 0.8782 GB, free: 6.277 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001497/0.001526, allocations: 0.7579 MB / 0.8789 GB, free: 5.543 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.002736, allocations: 1.123 MB / 0.88 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.115e-05/0.002787, allocations: 0.6562 kB / 0.88 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.379e-05/0.002821, allocations: 4.375 kB / 0.88 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.468e-05/0.002905, allocations: 16.88 kB / 0.8801 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.003196, allocations: 55.69 kB / 0.8801 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 9.882e-05/0.003295, allocations: 72.94 kB / 0.8802 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.977e-05/0.003395, allocations: 24.09 kB / 0.8802 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.979e-05/0.003475, allocations: 35.91 kB / 0.8802 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.388e-05/0.003519, allocations: 28.95 kB / 0.8803 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.639e-05/0.003535, allocations: 4 kB / 0.8803 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.926e-05/0.003584, allocations: 17.09 kB / 0.8803 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.198e-05/0.003606, allocations: 15.92 kB / 0.8803 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.14e-05/0.003638, allocations: 27.91 kB / 0.8803 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.003749, allocations: 56.92 kB / 0.8804 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.003751, allocations: 3.938 kB / 0.8804 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.81e-07/0.003752, allocations: 0 / 0.8804 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.003756, allocations: 1.094 kB / 0.8804 GB, free: 4.055 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004093/0.004165, allocations: 404.3 kB / 0.8808 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.004202, allocations: 12.03 kB / 0.8808 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.004246, allocations: 5.656 kB / 0.8808 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.825e-05/0.004334, allocations: 116.5 kB / 0.8809 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.004348, allocations: 9.938 kB / 0.8809 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.00436, allocations: 4.375 kB / 0.8809 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.004488, allocations: 66.88 kB / 0.881 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.004496, allocations: 4.172 kB / 0.881 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.004508, allocations: 6 kB / 0.881 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.004516, allocations: 4.125 kB / 0.881 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.133e-05/0.004547, allocations: 15.98 kB / 0.881 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.004959, allocations: 304.6 kB / 0.8813 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.768e-05/0.005057, allocations: 44.14 kB / 0.8813 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.385e-05/0.005081, allocations: 15.81 kB / 0.8813 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.0051, allocations: 3.938 kB / 0.8814 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.969e-05/0.005179, allocations: 70.67 kB / 0.8814 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.005181, allocations: 0 / 0.8814 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.000181/0.005362, allocations: 81.62 kB / 0.8815 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.00541, allocations: 55.41 kB / 0.8816 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.289e-05/0.005503, allocations: 185 kB / 0.8817 GB, free: 2.516 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.005519, allocations: 33.69 kB / 0.8818 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.291e-05/0.005571, allocations: 138.9 kB / 0.8819 GB, free: 2.336 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.00559, allocations: 19.84 kB / 0.8819 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.00563, allocations: 31.36 kB / 0.8819 GB, free: 2.277 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.005775, allocations: 0.4923 MB / 0.8824 GB, free: 1.773 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.442e-05/0.005799, allocations: 7.938 kB / 0.8824 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.533e-05/0.005854, allocations: 81.73 kB / 0.8825 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.042e-05/0.005945, allocations: 96.14 kB / 0.8826 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.005948, allocations: 8 kB / 0.8826 GB, free: 1.527 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001169/0.006065, allocations: 97.38 kB / 0.8827 GB, free: 1.426 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.006079, allocations: 8 kB / 0.8827 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.006084, allocations: 0 / 0.8827 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.006099, allocations: 4 kB / 0.8827 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.622e-05/0.006185, allocations: 15.98 kB / 0.8827 GB, free: 1.398 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.006191, allocations: 4 kB / 0.8827 GB, free: 1.395 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.541e-05/0.006226, allocations: 12.17 kB / 0.8827 GB, free: 1.383 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.006238, allocations: 11.98 kB / 0.8828 GB, free: 1.371 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 7.221e-05/0.00631, allocations: 164.5 kB / 0.8829 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-06/0.006319, allocations: 7.938 kB / 0.8829 GB, free: 1.191 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.43e-05/0.006344, allocations: 12.44 kB / 0.8829 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.006346, allocations: 0 / 0.8829 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.006349, allocations: 0 / 0.8829 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.006352, allocations: 0 / 0.8829 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.006574, allocations: 349.2 kB / 0.8833 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.006575, allocations: 0 / 0.8833 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.22e-05/0.006597, allocations: 11.98 kB / 0.8833 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.006599, allocations: 0 / 0.8833 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-06/0.006605, allocations: 0 / 0.8833 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.006606, allocations: 0 / 0.8833 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.006607, allocations: 0 / 0.8833 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001101/0.006717, allocations: 227.8 kB / 0.8835 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.135e-06/0.006725, allocations: 11.94 kB / 0.8835 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.006736, allocations: 4 kB / 0.8835 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.068e-05/0.006766, allocations: 0 / 0.8835 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.186e-05/0.006798, allocations: 7.984 kB / 0.8835 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.006803, allocations: 3.938 kB / 0.8835 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.616e-05/0.006849, allocations: 139.2 kB / 0.8837 GB, free: 384 kB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.006849, allocations: 0 / 0.8837 GB, free: 384 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001655/0.007015, allocations: 20 kB / 0.8837 GB, free: 364 kB / 0.8386 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 9.776e-05/0.007113, allocations: 95.25 kB / 0.8838 GB, free: 260 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001083/0.007221, allocations: 51.59 kB / 0.8838 GB, free: 204 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.007223, allocations: 4 kB / 0.8838 GB, free: 200 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.491e-05/0.007258, allocations: 31.59 kB / 0.8838 GB, free: 164 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.007445, allocations: 18.25 kB / 0.8839 GB, free: 148 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000282/0.007727, allocations: 163.3 kB / 0.884 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.215e-05/0.007759, allocations: 59.34 kB / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.287e-05/0.007782, allocations: 11.98 kB / 0.8841 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.177e-05/0.007814, allocations: 12.5 kB / 0.8841 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of SimCode: time 5.71e-07/0.007814, allocations: 0 / 0.8841 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of Templates: time 0.002689/0.0105, allocations: 1.116 MB / 0.8852 GB, free: 14.76 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.595405189786106]