Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002142/0.002142, allocations: 193.9 kB / 22.23 MB, free: 5.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 251 MB, free: 12.99 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.252/3.252, allocations: 0.4893 GB / 0.7884 GB, free: 33.29 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 73.22 kB / 1.145 GB, free: 30.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4246, allocations: 174.9 MB / 1.316 GB, free: 9.758 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002291/0.4269, allocations: 0.8822 MB / 1.317 GB, free: 8.879 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001989/0.4289, allocations: 1.326 MB / 1.318 GB, free: 7.539 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.705e-05/0.4289, allocations: 0 / 1.318 GB, free: 7.539 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.4291, allocations: 11.81 kB / 1.318 GB, free: 7.527 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.4292, allocations: 43.69 kB / 1.318 GB, free: 7.484 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000785/0.43, allocations: 269.4 kB / 1.318 GB, free: 7.227 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003859/0.4304, allocations: 287.4 kB / 1.319 GB, free: 6.945 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.4305, allocations: 21.3 kB / 1.319 GB, free: 6.922 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.4307, allocations: 131.7 kB / 1.319 GB, free: 6.793 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.431, allocations: 123.7 kB / 1.319 GB, free: 6.672 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.4311, allocations: 27.98 kB / 1.319 GB, free: 6.645 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.4312, allocations: 39.92 kB / 1.319 GB, free: 6.605 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.27e-05/0.4313, allocations: 43.84 kB / 1.319 GB, free: 6.562 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.4314, allocations: 103.6 kB / 1.319 GB, free: 6.461 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.4317, allocations: 263.1 kB / 1.319 GB, free: 6.203 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.4317, allocations: 4 kB / 1.319 GB, free: 6.199 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4317, allocations: 3.938 kB / 1.319 GB, free: 6.195 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.4317, allocations: 0 / 1.319 GB, free: 6.195 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009329/0.4327, allocations: 477.4 kB / 1.32 GB, free: 5.684 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.4327, allocations: 8.031 kB / 1.32 GB, free: 5.676 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.669e-05/0.4328, allocations: 24.84 kB / 1.32 GB, free: 5.652 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.4331, allocations: 174.2 kB / 1.32 GB, free: 5.457 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.4331, allocations: 12.38 kB / 1.32 GB, free: 5.445 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.4331, allocations: 24.36 kB / 1.32 GB, free: 5.422 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003766/0.4335, allocations: 185.4 kB / 1.32 GB, free: 5.234 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.4335, allocations: 192 / 1.32 GB, free: 5.234 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.4336, allocations: 11.92 kB / 1.32 GB, free: 5.223 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.4336, allocations: 0 / 1.32 GB, free: 5.223 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000215/0.4338, allocations: 96.11 kB / 1.32 GB, free: 5.129 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006988/0.4345, allocations: 439.9 kB / 1.321 GB, free: 4.656 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.4347, allocations: 118.5 kB / 1.321 GB, free: 4.531 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.4349, allocations: 80.75 kB / 1.321 GB, free: 4.449 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.4349, allocations: 4.156 kB / 1.321 GB, free: 4.445 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003783/0.4353, allocations: 213.1 kB / 1.321 GB, free: 4.227 MB / 1.014 GB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.4353, allocations: 4 kB / 1.321 GB, free: 4.223 MB / 1.014 GB Notification: Performance of matching and sorting (n=28): time 0.0008988/0.4362, allocations: 452.4 kB / 1.322 GB, free: 3.777 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.4363, allocations: 59.34 kB / 1.322 GB, free: 3.707 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.4364, allocations: 143.6 kB / 1.322 GB, free: 3.559 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.747e-05/0.4365, allocations: 45.69 kB / 1.322 GB, free: 3.508 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.075e-05/0.4365, allocations: 100.8 kB / 1.322 GB, free: 3.406 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 8.182e-05/0.4366, allocations: 71.5 kB / 1.322 GB, free: 3.336 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.4368, allocations: 89.98 kB / 1.322 GB, free: 3.238 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.437, allocations: 334.8 kB / 1.323 GB, free: 2.902 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.4373, allocations: 144.7 kB / 1.323 GB, free: 2.762 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003494/0.4376, allocations: 205.2 kB / 1.323 GB, free: 2.539 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005462/0.4382, allocations: 363.4 kB / 1.323 GB, free: 2.148 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4382, allocations: 0 / 1.323 GB, free: 2.148 MB / 1.014 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008783/0.439, allocations: 0.5033 MB / 1.324 GB, free: 1.629 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.176e-05/0.4391, allocations: 75.52 kB / 1.324 GB, free: 1.543 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.4391, allocations: 0 / 1.324 GB, free: 1.543 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.4391, allocations: 4 kB / 1.324 GB, free: 1.539 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.4394, allocations: 51.91 kB / 1.324 GB, free: 1.488 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.4394, allocations: 4 kB / 1.324 GB, free: 1.484 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.4397, allocations: 79.64 kB / 1.324 GB, free: 1.406 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.594e-05/0.4398, allocations: 23.98 kB / 1.324 GB, free: 1.383 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0002087/0.44, allocations: 174.4 kB / 1.324 GB, free: 1.207 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.44, allocations: 15.91 kB / 1.324 GB, free: 1.191 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.692e-05/0.4401, allocations: 17.95 kB / 1.324 GB, free: 1.168 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.4401, allocations: 3.938 kB / 1.324 GB, free: 1.164 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4401, allocations: 0 / 1.324 GB, free: 1.164 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4401, allocations: 3.938 kB / 1.324 GB, free: 1.16 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008852/0.441, allocations: 0.6394 MB / 1.325 GB, free: 484 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.441, allocations: 0 / 1.325 GB, free: 484 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.482e-05/0.441, allocations: 7.984 kB / 1.325 GB, free: 476 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.441, allocations: 0 / 1.325 GB, free: 476 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.4411, allocations: 7.984 kB / 1.325 GB, free: 468 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4411, allocations: 3.938 kB / 1.325 GB, free: 464 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4411, allocations: 7.938 kB / 1.325 GB, free: 456 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006425/0.4417, allocations: 459.1 kB / 1.325 GB, free: 15.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.396e-05/0.4417, allocations: 15.84 kB / 1.325 GB, free: 15.96 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.464e-05/0.4418, allocations: 19.98 kB / 1.325 GB, free: 15.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.4419, allocations: 11.92 kB / 1.325 GB, free: 15.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.442, allocations: 15.98 kB / 1.325 GB, free: 15.92 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.599e-05/0.442, allocations: 19.97 kB / 1.325 GB, free: 15.9 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.872e-05/0.4421, allocations: 105.1 kB / 1.325 GB, free: 15.8 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.4421, allocations: 0 / 1.325 GB, free: 15.8 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003663/0.4425, allocations: 67.92 kB / 1.325 GB, free: 15.73 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002171/0.4427, allocations: 137.7 kB / 1.326 GB, free: 15.59 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007222/0.4434, allocations: 414.5 kB / 1.326 GB, free: 15.16 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4434, allocations: 0 / 1.326 GB, free: 15.16 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.4436, allocations: 99.88 kB / 1.326 GB, free: 15.06 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.444, allocations: 40.22 kB / 1.326 GB, free: 15.02 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006718/0.4446, allocations: 327.4 kB / 1.326 GB, free: 14.68 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.445, allocations: 0.7167 MB / 1.327 GB, free: 13.94 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.444e-05/0.4451, allocations: 21.64 kB / 1.327 GB, free: 13.92 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.051e-05/0.4451, allocations: 15.44 kB / 1.327 GB, free: 13.91 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.4451, allocations: 0 / 1.327 GB, free: 13.91 MB / 1.029 GB Notification: Performance of Templates: time 0.007972/0.4531, allocations: 3.712 MB / 1.331 GB, free: 10.22 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.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: 9.357178318314254]