Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.001749/0.001749, allocations: 84.05 kB / 19.18 MB, free: 2.523 MB / 14.72 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.002021/0.002021, allocations: 168.2 kB / 22.46 MB, free: 5.359 MB / 14.72 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.589/1.589, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.776/2.776, allocations: 359 MB / 0.6037 GB, free: 15.02 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_11_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|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 0.9509 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.519e-05/2.663e-05, allocations: 2.281 kB / 0.9509 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00307/0.003097, allocations: 1.762 MB / 0.9527 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00156/0.004657, allocations: 0.8218 MB / 0.9535 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.004761, allocations: 11.88 kB / 0.9535 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.004891, allocations: 11.86 kB / 0.9535 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002757/0.005167, allocations: 51.64 kB / 0.9535 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.005666, allocations: 164.5 kB / 0.9537 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.005993, allocations: 207.6 kB / 0.9539 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.006113, allocations: 33.53 kB / 0.9539 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.006351, allocations: 115.7 kB / 0.954 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.006516, allocations: 67.78 kB / 0.9541 GB, free: 8.363 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.656e-05/0.006563, allocations: 24 kB / 0.9541 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.739e-05/0.00664, allocations: 27.98 kB / 0.9541 GB, free: 8.312 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.093e-05/0.006711, allocations: 27.91 kB / 0.9542 GB, free: 8.285 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.429e-05/0.006806, allocations: 55.84 kB / 0.9542 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003013/0.007107, allocations: 219.4 kB / 0.9544 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.007109, allocations: 0 / 0.9544 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.72e-07/0.00711, allocations: 0 / 0.9544 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.295e-06/0.007118, allocations: 4 kB / 0.9544 GB, free: 8.012 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008428/0.007961, allocations: 413.2 kB / 0.9548 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.008001, allocations: 12.03 kB / 0.9548 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.008067, allocations: 20.89 kB / 0.9549 GB, free: 7.543 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.00842, allocations: 178.9 kB / 0.955 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.008434, allocations: 4.375 kB / 0.955 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/0.008481, allocations: 12.38 kB / 0.9551 GB, free: 7.328 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.008666, allocations: 93.28 kB / 0.9551 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.008676, allocations: 192 / 0.9551 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.008687, allocations: 384 / 0.9551 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.008707, allocations: 7.938 kB / 0.9552 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.00884, allocations: 59.97 kB / 0.9552 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006161/0.009456, allocations: 348.2 kB / 0.9555 GB, free: 6.797 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.009627, allocations: 82.62 kB / 0.9556 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.897e-05/0.009686, allocations: 33 kB / 0.9557 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.0097, allocations: 3.984 kB / 0.9557 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.009845, allocations: 87.27 kB / 0.9557 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.009847, allocations: 0 / 0.9557 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0003069/0.01015, allocations: 133.8 kB / 0.9559 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.0102, allocations: 59.41 kB / 0.9559 GB, free: 6.363 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.01043, allocations: 180.6 kB / 0.9561 GB, free: 6.176 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.01046, allocations: 33.7 kB / 0.9561 GB, free: 6.137 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.129e-05/0.01054, allocations: 104.1 kB / 0.9562 GB, free: 6.031 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.332e-05/0.01058, allocations: 27.92 kB / 0.9563 GB, free: 6.004 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.917e-05/0.01067, allocations: 49.66 kB / 0.9563 GB, free: 5.949 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.01081, allocations: 326.8 kB / 0.9566 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.01095, allocations: 81.67 kB / 0.9567 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.01111, allocations: 112.2 kB / 0.9568 GB, free: 5.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.0113, allocations: 128.2 kB / 0.9569 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.0113, allocations: 4 kB / 0.9569 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003938/0.01169, allocations: 236.9 kB / 0.9571 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.01174, allocations: 33.7 kB / 0.9572 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.01174, allocations: 0 / 0.9572 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.01176, allocations: 0 / 0.9572 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.01191, allocations: 31.92 kB / 0.9572 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.01192, allocations: 7.984 kB / 0.9572 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.01216, allocations: 35.92 kB / 0.9573 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.01219, allocations: 8 kB / 0.9573 GB, free: 4.895 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001271/0.01232, allocations: 133.8 kB / 0.9574 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.01234, allocations: 11.95 kB / 0.9574 GB, free: 4.742 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.406e-05/0.01237, allocations: 9.469 kB / 0.9574 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.01237, allocations: 4 kB / 0.9574 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.01238, allocations: 0 / 0.9574 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01238, allocations: 0 / 0.9574 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.01255, allocations: 165.1 kB / 0.9576 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.01256, allocations: 0 / 0.9576 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.106e-05/0.01264, allocations: 19.88 kB / 0.9576 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.01264, allocations: 4 kB / 0.9576 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.01266, allocations: 7.984 kB / 0.9576 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.01266, allocations: 4 kB / 0.9576 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01266, allocations: 0 / 0.9576 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003139/0.01298, allocations: 173.1 kB / 0.9578 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.01303, allocations: 16.08 kB / 0.9578 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.01306, allocations: 7.922 kB / 0.9578 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.796e-05/0.01314, allocations: 11.98 kB / 0.9578 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.01319, allocations: 3.984 kB / 0.9578 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.0132, allocations: 8.062 kB / 0.9578 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001527/0.01335, allocations: 128 kB / 0.9579 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.01335, allocations: 0 / 0.9579 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002489/0.0136, allocations: 39.92 kB / 0.958 GB, free: 4.109 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000164/0.01376, allocations: 99.25 kB / 0.9581 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003245/0.01409, allocations: 189 kB / 0.9583 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01409, allocations: 0 / 0.9583 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.413e-05/0.01416, allocations: 39.92 kB / 0.9583 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.01444, allocations: 36.03 kB / 0.9583 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005449/0.01499, allocations: 280 kB / 0.9586 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.0151, allocations: 98.27 kB / 0.9587 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.879e-05/0.01516, allocations: 16.97 kB / 0.9587 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.0152, allocations: 16.5 kB / 0.9587 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of SimCode: time 4.81e-07/0.0152, allocations: 0 / 0.9587 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of Templates: time 0.005985/0.02118, allocations: 2.113 MB / 0.9608 GB, free: 1.203 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.30407915636897]