Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001514/0.001514, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001595/0.001595, allocations: 189.3 kB / 22.22 MB, free: 5.105 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.312/1.312, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 2.947/2.947, allocations: 496 MB / 0.7835 GB, free: 33.65 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 61.17 kB / 1.138 GB, free: 33.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3409, allocations: 173.6 MB / 1.307 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002903/0.3439, allocations: 1.796 MB / 1.309 GB, free: 24 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.345, allocations: 0.6974 MB / 1.31 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.784e-05/0.3451, allocations: 7.938 kB / 1.31 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.3452, allocations: 27.67 kB / 1.31 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.139e-05/0.3453, allocations: 27.73 kB / 1.31 GB, free: 15.26 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006528/0.346, allocations: 259.5 kB / 1.31 GB, free: 15.01 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004528/0.3464, allocations: 407.4 kB / 1.31 GB, free: 14.61 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.3467, allocations: 184.1 kB / 1.311 GB, free: 14.43 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.3469, allocations: 139.6 kB / 1.311 GB, free: 14.29 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.3471, allocations: 139.4 kB / 1.311 GB, free: 14.16 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.965e-05/0.3471, allocations: 40 kB / 1.311 GB, free: 14.12 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.3472, allocations: 67.97 kB / 1.311 GB, free: 14.05 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.009e-05/0.3473, allocations: 63.84 kB / 1.311 GB, free: 13.99 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.3475, allocations: 143.4 kB / 1.311 GB, free: 13.85 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004334/0.3479, allocations: 422.5 kB / 1.312 GB, free: 13.43 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3479, allocations: 0 / 1.312 GB, free: 13.43 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3479, allocations: 0 / 1.312 GB, free: 13.43 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3479, allocations: 4 kB / 1.312 GB, free: 13.43 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007804/0.3487, allocations: 490.7 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.3487, allocations: 8.031 kB / 1.312 GB, free: 12.9 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.3488, allocations: 28.8 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.3491, allocations: 209.7 kB / 1.312 GB, free: 12.65 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.3491, allocations: 20.88 kB / 1.312 GB, free: 12.63 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.397e-05/0.3492, allocations: 32.38 kB / 1.312 GB, free: 12.6 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.3497, allocations: 283.2 kB / 1.313 GB, free: 12.3 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3497, allocations: 192 / 1.313 GB, free: 12.3 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.3497, allocations: 19.86 kB / 1.313 GB, free: 12.29 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3497, allocations: 8 kB / 1.313 GB, free: 12.28 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/0.35, allocations: 185.8 kB / 1.313 GB, free: 12.1 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.3512, allocations: 0.8269 MB / 1.314 GB, free: 11.22 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.3515, allocations: 156 kB / 1.314 GB, free: 11.06 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.3516, allocations: 80.92 kB / 1.314 GB, free: 10.98 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.3516, allocations: 0 / 1.314 GB, free: 10.98 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.3518, allocations: 149.1 kB / 1.314 GB, free: 10.82 MB / 1.014 GB Notification: Performance of pre-optimization done (n=27): time 1.322e-06/0.3518, allocations: 0 / 1.314 GB, free: 10.82 MB / 1.014 GB Notification: Performance of matching and sorting (n=27): time 0.0004824/0.3523, allocations: 265.7 kB / 1.314 GB, free: 10.56 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.3524, allocations: 67.33 kB / 1.314 GB, free: 10.48 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.3525, allocations: 166.7 kB / 1.314 GB, free: 10.31 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.374e-05/0.3526, allocations: 37.7 kB / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3527, allocations: 140.8 kB / 1.315 GB, free: 10.12 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.337e-05/0.3527, allocations: 71.44 kB / 1.315 GB, free: 10.05 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.3529, allocations: 89.67 kB / 1.315 GB, free: 9.961 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.353, allocations: 330.8 kB / 1.315 GB, free: 9.629 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.3532, allocations: 99.95 kB / 1.315 GB, free: 9.531 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.3535, allocations: 155.8 kB / 1.315 GB, free: 9.352 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.3538, allocations: 258.7 kB / 1.316 GB, free: 9.07 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3538, allocations: 0 / 1.316 GB, free: 9.07 MB / 1.014 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005652/0.3544, allocations: 360.3 kB / 1.316 GB, free: 8.707 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.3544, allocations: 37.64 kB / 1.316 GB, free: 8.664 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3544, allocations: 0 / 1.316 GB, free: 8.664 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3544, allocations: 4 kB / 1.316 GB, free: 8.66 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.3546, allocations: 31.92 kB / 1.316 GB, free: 8.629 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.3546, allocations: 7.984 kB / 1.316 GB, free: 8.621 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.3548, allocations: 48.03 kB / 1.316 GB, free: 8.574 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.3548, allocations: 20 kB / 1.316 GB, free: 8.555 MB / 1.014 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.0001658/0.355, allocations: 173.6 kB / 1.316 GB, free: 8.375 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.355, allocations: 23.83 kB / 1.316 GB, free: 8.352 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003965/0.3554, allocations: 247.4 kB / 1.316 GB, free: 8.102 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3554, allocations: 4 kB / 1.316 GB, free: 8.098 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3554, allocations: 0 / 1.316 GB, free: 8.098 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3554, allocations: 4 kB / 1.316 GB, free: 8.094 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000788/0.3562, allocations: 0.607 MB / 1.317 GB, free: 7.438 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3562, allocations: 4 kB / 1.317 GB, free: 7.434 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.37e-05/0.3563, allocations: 15.98 kB / 1.317 GB, free: 7.418 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3563, allocations: 0 / 1.317 GB, free: 7.418 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.3563, allocations: 8 kB / 1.317 GB, free: 7.41 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.3563, allocations: 7.875 kB / 1.317 GB, free: 7.402 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3563, allocations: 0 / 1.317 GB, free: 7.402 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.3567, allocations: 324.7 kB / 1.317 GB, free: 7.066 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.972e-05/0.3567, allocations: 15.84 kB / 1.317 GB, free: 7.051 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.3567, allocations: 8 kB / 1.317 GB, free: 7.043 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.3568, allocations: 7.984 kB / 1.317 GB, free: 7.035 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.3569, allocations: 27.95 kB / 1.317 GB, free: 7.008 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.3569, allocations: 8 kB / 1.317 GB, free: 7 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.856e-05/0.357, allocations: 101.5 kB / 1.318 GB, free: 6.902 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.1e-08/0.357, allocations: 0 / 1.318 GB, free: 6.902 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000298/0.3573, allocations: 71.84 kB / 1.318 GB, free: 6.832 MB / 1.014 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.0001515/0.3574, allocations: 125.7 kB / 1.318 GB, free: 6.699 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004601/0.3579, allocations: 280.3 kB / 1.318 GB, free: 6.414 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3579, allocations: 0 / 1.318 GB, free: 6.414 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.358, allocations: 100.3 kB / 1.318 GB, free: 6.316 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.3583, allocations: 27.98 kB / 1.318 GB, free: 6.289 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006096/0.359, allocations: 388.8 kB / 1.319 GB, free: 5.887 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.3593, allocations: 0.748 MB / 1.319 GB, free: 5.113 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.76e-05/0.3594, allocations: 29.94 kB / 1.319 GB, free: 5.082 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.793e-05/0.3594, allocations: 19.44 kB / 1.319 GB, free: 5.066 MB / 1.014 GB Notification: Performance of SimCode: time 2.81e-07/0.3594, allocations: 0 / 1.319 GB, free: 5.066 MB / 1.014 GB Notification: Performance of Templates: time 0.00637/0.3658, allocations: 3.019 MB / 1.322 GB, free: 2.062 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.266385538503528]