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.001792/0.001792, allocations: 93.47 kB / 19.45 MB, free: 332 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.001973/0.001973, allocations: 169.2 kB / 22.76 MB, free: 1.66 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 1.573/1.573, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 3.405/3.405, allocations: 429.5 MB / 0.6729 GB, free: 4 MB / 0.6355 GB " [Timeout remaining time 176] 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.405e-06/2.405e-06, allocations: 0 / 0.8775 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.604e-05/2.844e-05, allocations: 5.469 kB / 0.8775 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002081/0.002109, allocations: 0.7482 MB / 0.8782 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001841/0.00395, allocations: 1.108 MB / 0.8793 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.849e-05/0.003999, allocations: 0 / 0.8793 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.656e-05/0.004025, allocations: 3.938 kB / 0.8793 GB, free: 4.797 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.002e-05/0.004115, allocations: 16.36 kB / 0.8793 GB, free: 4.781 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.004435, allocations: 53.39 kB / 0.8793 GB, free: 4.73 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001403/0.004575, allocations: 75.75 kB / 0.8794 GB, free: 4.656 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.451e-05/0.004669, allocations: 8.188 kB / 0.8794 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.004779, allocations: 39.91 kB / 0.8795 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.522e-05/0.004844, allocations: 28.86 kB / 0.8795 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.00487, allocations: 8 kB / 0.8795 GB, free: 4.57 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.847e-05/0.004939, allocations: 20.55 kB / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.999e-05/0.004969, allocations: 15.97 kB / 0.8795 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.847e-05/0.005007, allocations: 17.53 kB / 0.8795 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001953/0.005202, allocations: 87.67 kB / 0.8796 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.005206, allocations: 4 kB / 0.8796 GB, free: 4.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.31e-07/0.005207, allocations: 0 / 0.8796 GB, free: 4.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.005214, allocations: 10.89 kB / 0.8796 GB, free: 4.422 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.0006162/0.00583, allocations: 396.1 kB / 0.88 GB, free: 4 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.005866, allocations: 8.031 kB / 0.88 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.00592, allocations: 12.89 kB / 0.88 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.006055, allocations: 124.5 kB / 0.8802 GB, free: 3.832 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.006069, allocations: 4.375 kB / 0.8802 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.006104, allocations: 8.375 kB / 0.8802 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.006287, allocations: 63.73 kB / 0.8802 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.006295, allocations: 192 / 0.8802 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.006304, allocations: 384 / 0.8802 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.006313, allocations: 4.125 kB / 0.8802 GB, free: 3.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.006442, allocations: 39.92 kB / 0.8803 GB, free: 3.711 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006719/0.007114, allocations: 307.7 kB / 0.8806 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.00728, allocations: 59.08 kB / 0.8806 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.064e-05/0.007361, allocations: 27.8 kB / 0.8807 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.007386, allocations: 3.938 kB / 0.8807 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001658/0.007551, allocations: 77.05 kB / 0.8807 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.007553, allocations: 0 / 0.8807 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0003818/0.007934, allocations: 125.5 kB / 0.8809 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.007987, allocations: 55.41 kB / 0.8809 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.008173, allocations: 185.9 kB / 0.8811 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.008198, allocations: 33.64 kB / 0.8811 GB, free: 2.746 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.008298, allocations: 142.8 kB / 0.8812 GB, free: 2.602 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.00832, allocations: 11.84 kB / 0.8813 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.44e-05/0.008394, allocations: 43.36 kB / 0.8813 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002684/0.008663, allocations: 0.4923 MB / 0.8818 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.906e-05/0.008752, allocations: 19.98 kB / 0.8818 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.008895, allocations: 89.8 kB / 0.8819 GB, free: 1.898 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.009141, allocations: 121.7 kB / 0.882 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.009144, allocations: 0 / 0.882 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002969/0.009441, allocations: 133.4 kB / 0.8821 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.009457, allocations: 4 kB / 0.8821 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.009462, allocations: 0 / 0.8821 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.009474, allocations: 4 kB / 0.8821 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.009598, allocations: 19.92 kB / 0.8822 GB, free: 1.586 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.009604, allocations: 4.312 kB / 0.8822 GB, free: 1.582 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.83e-05/0.009673, allocations: 8 kB / 0.8822 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.009693, allocations: 11.97 kB / 0.8822 GB, free: 1.562 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 0.0001305/0.009823, allocations: 175.4 kB / 0.8823 GB, free: 1.383 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.264e-05/0.009846, allocations: 11.89 kB / 0.8824 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.009875, allocations: 8.438 kB / 0.8824 GB, free: 1.359 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.009877, allocations: 0 / 0.8824 GB, free: 1.359 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.009884, allocations: 8 kB / 0.8824 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.009888, allocations: 0 / 0.8824 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/0.01038, allocations: 373.2 kB / 0.8827 GB, free: 0.9453 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.01038, allocations: 0 / 0.8827 GB, free: 0.9453 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.054e-05/0.01042, allocations: 4 kB / 0.8827 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.01042, allocations: 7.984 kB / 0.8827 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.01044, allocations: 4 kB / 0.8827 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.01044, allocations: 0 / 0.8827 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01044, allocations: 3.938 kB / 0.8827 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003109/0.01075, allocations: 243.8 kB / 0.883 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.01077, allocations: 11.89 kB / 0.883 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.01078, allocations: 0 / 0.883 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-05/0.01088, allocations: 11.98 kB / 0.883 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.01092, allocations: 3.938 kB / 0.883 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.01093, allocations: 7.984 kB / 0.883 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.89e-05/0.01102, allocations: 135.2 kB / 0.8831 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.01102, allocations: 0 / 0.8831 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002581/0.01127, allocations: 23.98 kB / 0.8832 GB, free: 488 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 0.0001564/0.01143, allocations: 95.25 kB / 0.8833 GB, free: 384 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002467/0.01168, allocations: 84.55 kB / 0.8833 GB, free: 296 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.01168, allocations: 0 / 0.8833 GB, free: 296 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.0118, allocations: 44.05 kB / 0.8834 GB, free: 248 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.01207, allocations: 18.38 kB / 0.8834 GB, free: 232 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/0.01248, allocations: 169.2 kB / 0.8836 GB, free: 32 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.436e-05/0.01257, allocations: 71.33 kB / 0.8836 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.01261, allocations: 7.984 kB / 0.8836 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.01265, allocations: 16.5 kB / 0.8837 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of SimCode: time 5.11e-07/0.01265, allocations: 0 / 0.8837 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of Templates: time 0.004404/0.01705, allocations: 1.042 MB / 0.8847 GB, free: 14.91 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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: 8.588015116984025]