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.001795/0.001795, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.002469/0.002469, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.651/1.651, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.191/3.191, allocations: 0.49 GB / 0.7923 GB, free: 1.367 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.002328/0.002328, allocations: 71.91 kB / 1.149 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.255/1.257, allocations: 176.1 MB / 1.321 GB, free: 24.73 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002803/1.26, allocations: 1.791 MB / 1.323 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001181/1.261, allocations: 0.6957 MB / 1.324 GB, free: 23.02 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/1.261, allocations: 7 kB / 1.324 GB, free: 23.02 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00015/1.261, allocations: 30.12 kB / 1.324 GB, free: 22.99 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.898e-05/1.261, allocations: 30.11 kB / 1.324 GB, free: 22.97 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/1.262, allocations: 253.7 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003915/1.263, allocations: 415.7 kB / 1.325 GB, free: 22.63 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/1.263, allocations: 182.1 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/1.263, allocations: 136.5 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/1.263, allocations: 132.9 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.734e-05/1.263, allocations: 37.94 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/1.263, allocations: 73.16 kB / 1.325 GB, free: 22.39 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/1.263, allocations: 71.95 kB / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001231/1.263, allocations: 137.1 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003938/1.264, allocations: 421 kB / 1.326 GB, free: 22.08 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/1.264, allocations: 0 / 1.326 GB, free: 22.08 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.463e-06/1.264, allocations: 0 / 1.326 GB, free: 22.08 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.398e-05/1.264, allocations: 0 / 1.326 GB, free: 22.08 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.000776/1.265, allocations: 0.5516 MB / 1.326 GB, free: 21.58 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/1.265, allocations: 12.2 kB / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.35e-05/1.265, allocations: 10.19 kB / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.89e-05/1.265, allocations: 63.7 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002924/1.265, allocations: 40.81 kB / 1.326 GB, free: 21.5 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/1.265, allocations: 267.4 kB / 1.327 GB, free: 21.25 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/1.265, allocations: 23.12 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.135e-05/1.265, allocations: 34.56 kB / 1.327 GB, free: 21.23 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004178/1.266, allocations: 272.1 kB / 1.327 GB, free: 21.1 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/1.266, allocations: 8.562 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.829e-05/1.266, allocations: 10.81 kB / 1.327 GB, free: 21.08 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/1.266, allocations: 6.062 kB / 1.327 GB, free: 21.08 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003697/1.266, allocations: 188.8 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/1.267, allocations: 0.8554 MB / 1.328 GB, free: 20.4 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/1.268, allocations: 163.1 kB / 1.328 GB, free: 20.32 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/1.268, allocations: 84.39 kB / 1.328 GB, free: 20.28 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/1.268, allocations: 2.219 kB / 1.328 GB, free: 20.28 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/1.268, allocations: 148.1 kB / 1.328 GB, free: 20.2 MB / 1.061 GB Notification: Performance of pre-optimization done (n=27): time 1.693e-06/1.268, allocations: 0 / 1.328 GB, free: 20.2 MB / 1.061 GB Notification: Performance of matching and sorting (n=27): time 0.0005728/1.269, allocations: 269.2 kB / 1.329 GB, free: 20.08 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/1.269, allocations: 59.75 kB / 1.329 GB, free: 20.02 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/1.269, allocations: 158.7 kB / 1.329 GB, free: 19.89 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/1.269, allocations: 47.67 kB / 1.329 GB, free: 19.84 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.103e-05/1.269, allocations: 136.2 kB / 1.329 GB, free: 19.72 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.531e-05/1.269, allocations: 67.72 kB / 1.329 GB, free: 19.67 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/1.269, allocations: 97.86 kB / 1.329 GB, free: 19.62 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.144e-05/1.269, allocations: 333.8 kB / 1.329 GB, free: 19.3 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/1.269, allocations: 96.11 kB / 1.33 GB, free: 19.26 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/1.27, allocations: 161.7 kB / 1.33 GB, free: 19.15 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/1.27, allocations: 245.7 kB / 1.33 GB, free: 18.97 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/1.27, allocations: 1.375 kB / 1.33 GB, free: 18.97 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000643/1.271, allocations: 354 kB / 1.33 GB, free: 18.8 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/1.271, allocations: 39.03 kB / 1.33 GB, free: 18.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/1.271, allocations: 7.031 kB / 1.33 GB, free: 18.76 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/1.271, allocations: 3.594 kB / 1.33 GB, free: 18.76 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/1.271, allocations: 27.08 kB / 1.33 GB, free: 18.76 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/1.271, allocations: 3.969 kB / 1.33 GB, free: 18.76 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/1.271, allocations: 55.72 kB / 1.33 GB, free: 18.73 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/1.271, allocations: 17.67 kB / 1.33 GB, free: 18.73 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.0001454/1.271, allocations: 175.2 kB / 1.331 GB, free: 18.58 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/1.271, allocations: 19.52 kB / 1.331 GB, free: 18.57 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.27e-05/1.271, allocations: 21.19 kB / 1.331 GB, free: 18.55 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/1.271, allocations: 2.594 kB / 1.331 GB, free: 18.55 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/1.271, allocations: 0.8438 kB / 1.331 GB, free: 18.55 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/1.272, allocations: 2.016 kB / 1.331 GB, free: 18.55 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008642/1.272, allocations: 0.6273 MB / 1.331 GB, free: 18.1 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/1.272, allocations: 0 / 1.331 GB, free: 18.1 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.692e-05/1.272, allocations: 23.67 kB / 1.331 GB, free: 18.09 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/1.272, allocations: 0.6562 kB / 1.331 GB, free: 18.09 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/1.272, allocations: 3.078 kB / 1.331 GB, free: 18.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/1.272, allocations: 5.672 kB / 1.331 GB, free: 18.09 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.272, allocations: 0.7188 kB / 1.331 GB, free: 18.09 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/1.273, allocations: 305.4 kB / 1.332 GB, free: 17.89 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.423e-05/1.273, allocations: 98.41 kB / 1.332 GB, free: 17.78 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/1.273, allocations: 6.953 kB / 1.332 GB, free: 17.77 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.684e-05/1.273, allocations: 13.31 kB / 1.332 GB, free: 17.77 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/1.273, allocations: 28.83 kB / 1.332 GB, free: 17.76 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/1.273, allocations: 10.17 kB / 1.332 GB, free: 17.75 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.906e-05/1.273, allocations: 107 kB / 1.332 GB, free: 17.67 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.273, allocations: 0 / 1.332 GB, free: 17.67 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000345/1.274, allocations: 67.17 kB / 1.332 GB, free: 17.65 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: 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.0006362/1.274, allocations: 0.8487 MB / 1.333 GB, free: 16.91 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005147/1.275, allocations: 274.5 kB / 1.333 GB, free: 16.78 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/1.275, allocations: 0 / 1.333 GB, free: 16.78 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001533/1.275, allocations: 87.34 kB / 1.333 GB, free: 16.75 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/1.275, allocations: 29.11 kB / 1.333 GB, free: 16.74 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002873/1.278, allocations: 2.366 MB / 1.335 GB, free: 14.96 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/1.278, allocations: 0.7449 MB / 1.336 GB, free: 14.26 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001022/1.278, allocations: 25.27 kB / 1.336 GB, free: 14.25 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/1.279, allocations: 63.22 kB / 1.336 GB, free: 14.21 MB / 1.061 GB Notification: Performance of SimCode: time 7.01e-07/1.279, allocations: 0 / 1.336 GB, free: 14.21 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/1.304, allocations: 4.755 MB / 1.341 GB, free: 13.55 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.116/10.42, allocations: 13.89 kB / 1.341 GB, free: 13.54 MB / 1.061 GB " [Timeout remaining time 289] (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: 17.512803287012503] Failed to read output from testmodel.py, exit status != 0: 10.55085733497981 10.570652577 9.30309545 Calling exit ...