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.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.001368/0.001368, allocations: 100.3 kB / 19.73 MB, free: 2.133 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.001462/0.001462, allocations: 220.7 kB / 23.03 MB, free: 4.945 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.567/1.567, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.43/3.43, allocations: 0.49 GB / 0.7959 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 62.06 kB / 1.155 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4302/0.4323, allocations: 176.1 MB / 1.327 GB, free: 1.5 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003518/0.4359, allocations: 1.76 MB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.4373, allocations: 0.6974 MB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.4374, allocations: 4 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.4376, allocations: 31.67 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.4377, allocations: 27.73 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007725/0.4385, allocations: 260.7 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005347/0.439, allocations: 407.4 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003359/0.4393, allocations: 179.6 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.4395, allocations: 139.6 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.4397, allocations: 135.5 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.425e-05/0.4398, allocations: 40 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.4399, allocations: 63.86 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.46e-05/0.44, allocations: 63.84 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.4402, allocations: 119.5 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005419/0.4407, allocations: 418.5 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.4407, allocations: 0 / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4407, allocations: 0 / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.4407, allocations: 4 kB / 1.331 GB, free: 13.18 MB / 1.029 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.000916/0.4417, allocations: 486.7 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.4417, allocations: 8.031 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.979e-05/0.4417, allocations: 8.688 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.242e-05/0.4418, allocations: 66.66 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002945/0.4421, allocations: 40.77 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.4425, allocations: 200.2 kB / 1.332 GB, free: 12.31 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.4426, allocations: 32.86 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-05/0.4426, allocations: 32.38 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005201/0.4431, allocations: 279 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.4432, allocations: 0 / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.4432, allocations: 8 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.4432, allocations: 8 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003423/0.4435, allocations: 181.9 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.4447, allocations: 0.7411 MB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.4451, allocations: 161 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.4452, allocations: 80.83 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.4453, allocations: 4 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.4456, allocations: 142.1 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.864e-06/0.4456, allocations: 0 / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005578/0.4461, allocations: 275.5 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.4462, allocations: 59.41 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.4463, allocations: 163.8 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/0.4464, allocations: 41.7 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.4465, allocations: 140.8 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.593e-05/0.4466, allocations: 67.47 kB / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.4467, allocations: 93.62 kB / 1.334 GB, free: 9.715 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.4469, allocations: 334.8 kB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.4471, allocations: 125.7 kB / 1.334 GB, free: 9.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.4474, allocations: 193.3 kB / 1.335 GB, free: 9.027 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.4477, allocations: 248.8 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4477, allocations: 0 / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006529/0.4484, allocations: 393.8 kB / 1.335 GB, free: 8.352 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.307e-05/0.4485, allocations: 37.69 kB / 1.335 GB, free: 8.309 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.4485, allocations: 4 kB / 1.335 GB, free: 8.305 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.4485, allocations: 7.938 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.4486, allocations: 31.92 kB / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.4486, allocations: 4 kB / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.4489, allocations: 55.95 kB / 1.335 GB, free: 8.207 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.4489, allocations: 16 kB / 1.335 GB, free: 8.191 MB / 1.029 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.000213/0.4491, allocations: 174.2 kB / 1.336 GB, free: 8.016 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.4492, allocations: 15.84 kB / 1.336 GB, free: 8 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.579e-05/0.4492, allocations: 21.97 kB / 1.336 GB, free: 7.977 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.4492, allocations: 7.984 kB / 1.336 GB, free: 7.969 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.4493, allocations: 0 / 1.336 GB, free: 7.969 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.4493, allocations: 3.984 kB / 1.336 GB, free: 7.965 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009178/0.4502, allocations: 0.5758 MB / 1.336 GB, free: 7.336 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.4502, allocations: 0 / 1.336 GB, free: 7.336 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.033e-05/0.4503, allocations: 15.94 kB / 1.336 GB, free: 7.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.4503, allocations: 0 / 1.336 GB, free: 7.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.4503, allocations: 11.98 kB / 1.336 GB, free: 7.309 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4503, allocations: 0 / 1.336 GB, free: 7.309 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4503, allocations: 0 / 1.336 GB, free: 7.309 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004132/0.4507, allocations: 313.2 kB / 1.336 GB, free: 6.988 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.597e-05/0.4507, allocations: 15.91 kB / 1.336 GB, free: 6.973 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.36e-05/0.4508, allocations: 8 kB / 1.336 GB, free: 6.965 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.367e-05/0.4509, allocations: 15.98 kB / 1.337 GB, free: 6.949 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.4509, allocations: 19.97 kB / 1.337 GB, free: 6.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.451, allocations: 15.98 kB / 1.337 GB, free: 6.914 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.938e-05/0.4511, allocations: 103.2 kB / 1.337 GB, free: 6.812 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4511, allocations: 0 / 1.337 GB, free: 6.812 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003555/0.4514, allocations: 71.78 kB / 1.337 GB, free: 6.742 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: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$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 (27): * Single equations (assignments): 22 * 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.0009308/0.4523, allocations: 0.849 MB / 1.338 GB, free: 5.863 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005815/0.4529, allocations: 309.4 kB / 1.338 GB, free: 5.543 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4529, allocations: 0 / 1.338 GB, free: 5.543 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.4531, allocations: 83.91 kB / 1.338 GB, free: 5.461 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.4535, allocations: 33.39 kB / 1.338 GB, free: 5.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.4568, allocations: 2.492 MB / 1.34 GB, free: 2.781 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001577/0.457, allocations: 137.5 kB / 1.341 GB, free: 2.629 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.305e-05/0.4571, allocations: 25.94 kB / 1.341 GB, free: 2.602 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.4572, allocations: 71.41 kB / 1.341 GB, free: 2.531 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.4572, allocations: 0 / 1.341 GB, free: 2.531 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03033/0.4876, allocations: 5.104 MB / 1.346 GB, free: 13.62 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.4, allocations: 16.42 kB / 1.346 GB, free: 13.61 MB / 1.045 GB " [Timeout remaining time 287] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 19.782402027049102] Failed to read output from testmodel.py, exit status != 0: 12.56302002305165 12.587632219 12.142204937 Calling exit ...