Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.001659/0.001659, allocations: 107.5 kB / 16.45 MB, free: 6.445 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.001938/0.001938, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.46/1.46, allocations: 225.6 MB / 247.8 MB, free: 3.758 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.841/2.841, allocations: 497.2 MB / 0.7812 GB, free: 11.96 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003148/0.003148, allocations: 67.89 kB / 1.134 GB, free: 13.2 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.111/1.114, allocations: 173.9 MB / 1.304 GB, free: 32.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002336/1.117, allocations: 1.772 MB / 1.306 GB, free: 30.91 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009963/1.118, allocations: 0.6916 MB / 1.306 GB, free: 30.44 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.034e-05/1.118, allocations: 6.906 kB / 1.306 GB, free: 30.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001186/1.118, allocations: 26.05 kB / 1.306 GB, free: 30.41 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.798e-05/1.118, allocations: 33.75 kB / 1.306 GB, free: 30.39 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/1.118, allocations: 252.9 kB / 1.307 GB, free: 30.25 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003649/1.119, allocations: 397 kB / 1.307 GB, free: 30.07 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/1.119, allocations: 183.2 kB / 1.307 GB, free: 29.98 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/1.119, allocations: 132.5 kB / 1.307 GB, free: 29.91 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/1.119, allocations: 139.9 kB / 1.307 GB, free: 29.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.489e-05/1.119, allocations: 39.94 kB / 1.308 GB, free: 29.84 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.899e-05/1.119, allocations: 69.36 kB / 1.308 GB, free: 29.82 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.986e-05/1.12, allocations: 73.62 kB / 1.308 GB, free: 29.77 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001018/1.12, allocations: 137.5 kB / 1.308 GB, free: 29.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003397/1.12, allocations: 417.1 kB / 1.308 GB, free: 29.51 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/1.12, allocations: 7.938 kB / 1.308 GB, free: 29.5 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.393e-06/1.12, allocations: 0 / 1.308 GB, free: 29.5 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.552e-06/1.12, allocations: 0 / 1.308 GB, free: 29.5 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000677/1.121, allocations: 0.5567 MB / 1.309 GB, free: 29 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/1.121, allocations: 8.406 kB / 1.309 GB, free: 29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.201e-05/1.121, allocations: 61.69 kB / 1.309 GB, free: 28.95 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.396e-05/1.121, allocations: 35.11 kB / 1.309 GB, free: 28.93 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/1.121, allocations: 269.4 kB / 1.309 GB, free: 28.68 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/1.121, allocations: 26.59 kB / 1.309 GB, free: 28.67 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/1.121, allocations: 28.66 kB / 1.309 GB, free: 28.66 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000396/1.122, allocations: 272.7 kB / 1.309 GB, free: 28.53 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/1.122, allocations: 3.938 kB / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/1.122, allocations: 10.22 kB / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/1.122, allocations: 8 kB / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002692/1.122, allocations: 190 kB / 1.31 GB, free: 28.45 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008731/1.123, allocations: 0.8632 MB / 1.31 GB, free: 27.84 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/1.123, allocations: 154.7 kB / 1.311 GB, free: 27.76 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/1.123, allocations: 80.53 kB / 1.311 GB, free: 27.73 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/1.123, allocations: 6.875 kB / 1.311 GB, free: 27.72 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/1.123, allocations: 155.9 kB / 1.311 GB, free: 27.63 MB / 1.061 GB Notification: Performance of pre-optimization done (n=27): time 1.633e-06/1.123, allocations: 0 / 1.311 GB, free: 27.63 MB / 1.061 GB Notification: Performance of matching and sorting (n=27): time 0.0004531/1.124, allocations: 262 kB / 1.311 GB, free: 27.52 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/1.124, allocations: 60.67 kB / 1.311 GB, free: 27.46 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.108e-05/1.124, allocations: 162.9 kB / 1.311 GB, free: 27.33 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/1.124, allocations: 39.77 kB / 1.311 GB, free: 27.29 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.625e-05/1.124, allocations: 147.7 kB / 1.311 GB, free: 27.16 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.268e-05/1.124, allocations: 65.5 kB / 1.312 GB, free: 27.11 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/1.124, allocations: 93.11 kB / 1.312 GB, free: 27.06 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.303e-05/1.124, allocations: 328.4 kB / 1.312 GB, free: 26.74 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/1.124, allocations: 98.03 kB / 1.312 GB, free: 26.71 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/1.125, allocations: 164.6 kB / 1.312 GB, free: 26.59 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/1.125, allocations: 247.1 kB / 1.312 GB, free: 26.41 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/1.125, allocations: 0 / 1.312 GB, free: 26.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000481/1.125, allocations: 364.8 kB / 1.313 GB, free: 26.23 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/1.125, allocations: 34.2 kB / 1.313 GB, free: 26.2 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/1.125, allocations: 2.438 kB / 1.313 GB, free: 26.2 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/1.125, allocations: 2.656 kB / 1.313 GB, free: 26.2 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/1.126, allocations: 41.48 kB / 1.313 GB, free: 26.19 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/1.126, allocations: 9.312 kB / 1.313 GB, free: 26.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/1.126, allocations: 50.81 kB / 1.313 GB, free: 26.16 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/1.126, allocations: 16.81 kB / 1.313 GB, free: 26.16 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 0.0001242/1.126, allocations: 171.3 kB / 1.313 GB, free: 26.02 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/1.126, allocations: 19.22 kB / 1.313 GB, free: 26 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003216/1.126, allocations: 236.9 kB / 1.313 GB, free: 25.89 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/1.126, allocations: 3 kB / 1.313 GB, free: 25.89 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.126, allocations: 4 kB / 1.313 GB, free: 25.89 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/1.126, allocations: 7.359 kB / 1.313 GB, free: 25.89 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/1.127, allocations: 0.6415 MB / 1.314 GB, free: 25.43 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/1.127, allocations: 3.984 kB / 1.314 GB, free: 25.43 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.191e-05/1.127, allocations: 14.19 kB / 1.314 GB, free: 25.43 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/1.127, allocations: 2.938 kB / 1.314 GB, free: 25.43 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/1.127, allocations: 11.47 kB / 1.314 GB, free: 25.42 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/1.127, allocations: 2.906 kB / 1.314 GB, free: 25.42 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.127, allocations: 0 / 1.314 GB, free: 25.42 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/1.127, allocations: 312 kB / 1.314 GB, free: 25.22 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.713e-05/1.127, allocations: 94.42 kB / 1.314 GB, free: 25.12 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/1.127, allocations: 10.14 kB / 1.314 GB, free: 25.11 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.982e-05/1.127, allocations: 7 kB / 1.314 GB, free: 25.11 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.078e-05/1.128, allocations: 29.56 kB / 1.314 GB, free: 25.1 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/1.128, allocations: 9.812 kB / 1.314 GB, free: 25.1 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.086e-05/1.128, allocations: 105.9 kB / 1.315 GB, free: 25.02 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.128, allocations: 0 / 1.315 GB, free: 25.02 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000319/1.128, allocations: 72.91 kB / 1.315 GB, free: 24.99 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$cse1,$cse2,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0005033/1.128, allocations: 0.8721 MB / 1.315 GB, free: 24.24 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003921/1.129, allocations: 283.7 kB / 1.316 GB, free: 24.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.129, allocations: 0 / 1.316 GB, free: 24.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001272/1.129, allocations: 91.53 kB / 1.316 GB, free: 24.08 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/1.129, allocations: 24.12 kB / 1.316 GB, free: 24.07 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/1.132, allocations: 2.402 MB / 1.318 GB, free: 22.27 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/1.132, allocations: 0.751 MB / 1.319 GB, free: 21.56 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.63e-05/1.132, allocations: 28.52 kB / 1.319 GB, free: 21.56 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/1.132, allocations: 67.22 kB / 1.319 GB, free: 21.51 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/1.132, allocations: 2.734 kB / 1.319 GB, free: 21.51 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/1.161, allocations: 4.972 MB / 1.324 GB, free: 20.88 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.657/9.818, allocations: 7.844 kB / 1.324 GB, free: 20.88 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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: 16.1559846829623]