Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008995/0.0008994, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008292/0.0008293, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.393/2.393, allocations: 390.4 MB / 0.6655 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.000367, allocations: 12 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6402/0.6406, allocations: 142.3 MB / 0.9539 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect): time 0.002255/0.6429, allocations: 1.755 MB / 0.9556 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002534/0.6454, allocations: 2.311 MB / 0.9578 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.6456, allocations: 1.781 kB / 0.9578 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.6467, allocations: 488.1 kB / 0.9583 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.647, allocations: 92.56 kB / 0.9584 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.6476, allocations: 204.6 kB / 0.9586 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003818/0.648, allocations: 306.3 kB / 0.9589 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.6481, allocations: 64.16 kB / 0.9589 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.6483, allocations: 124.2 kB / 0.9591 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.6485, allocations: 130.9 kB / 0.9592 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.6486, allocations: 7.156 kB / 0.9592 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.6487, allocations: 41.08 kB / 0.9592 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.6489, allocations: 122.9 kB / 0.9593 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.546e-05/0.649, allocations: 123.5 kB / 0.9595 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.6495, allocations: 0.5367 MB / 0.96 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.6495, allocations: 0 / 0.96 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6495, allocations: 0 / 0.96 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.557e-05/0.6495, allocations: 0 / 0.96 GB, free: 3.613 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001083/0.6506, allocations: 0.8073 MB / 0.9608 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.6506, allocations: 10.22 kB / 0.9608 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.705e-05/0.6507, allocations: 39.7 kB / 0.9608 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.6508, allocations: 74.45 kB / 0.9609 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.6513, allocations: 391.6 kB / 0.9613 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.6513, allocations: 6.094 kB / 0.9613 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.6513, allocations: 3.25 kB / 0.9613 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.6515, allocations: 97.48 kB / 0.9614 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.6515, allocations: 0 / 0.9614 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.6516, allocations: 1 kB / 0.9614 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.6516, allocations: 4.969 kB / 0.9614 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.6517, allocations: 46.42 kB / 0.9614 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006992/0.6524, allocations: 0.5187 MB / 0.9619 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.6527, allocations: 106 kB / 0.962 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.863e-05/0.6528, allocations: 37.25 kB / 0.9621 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.6528, allocations: 1.031 kB / 0.9621 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.653, allocations: 93.72 kB / 0.9622 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.653, allocations: 0 / 0.9622 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004001/0.6534, allocations: 186.9 kB / 0.9623 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.6535, allocations: 103.9 kB / 0.9624 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.6545, allocations: 0.8859 MB / 0.9633 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.6545, allocations: 28.3 kB / 0.9633 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002012/0.6547, allocations: 299.6 kB / 0.9636 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.6547, allocations: 18.59 kB / 0.9636 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-06/0.6548, allocations: 5 kB / 0.9636 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.551e-05/0.6548, allocations: 310.9 kB / 0.9639 GB, free: 420 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.896e-05/0.6549, allocations: 27.36 kB / 0.964 GB, free: 408 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.38e-05/0.655, allocations: 80.17 kB / 0.964 GB, free: 340 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.33e-05/0.655, allocations: 32.36 kB / 0.9641 GB, free: 324 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.655, allocations: 0 / 0.9641 GB, free: 324 kB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003081/0.6554, allocations: 163.5 kB / 0.9642 GB, free: 224 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.6554, allocations: 8.516 kB / 0.9642 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.6554, allocations: 1.062 kB / 0.9642 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.6554, allocations: 1.156 kB / 0.9642 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.364e-05/0.6555, allocations: 19.61 kB / 0.9642 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.6555, allocations: 1.531 kB / 0.9642 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.6557, allocations: 8.094 kB / 0.9643 GB, free: 208 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.6557, allocations: 2.406 kB / 0.9643 GB, free: 208 kB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.sta.combiTimeTable.nextTimeEvent,sta.y,sta.combiTimeTable.nextTimeEvent,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002954/0.656, allocations: 325.4 kB / 0.9646 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/0.6561, allocations: 63.81 kB / 0.9646 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.6562, allocations: 79.09 kB / 0.9647 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.6562, allocations: 2.062 kB / 0.9647 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.6562, allocations: 4 kB / 0.9647 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.6562, allocations: 0 / 0.9647 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003958/0.6566, allocations: 377.7 kB / 0.9651 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.6566, allocations: 0 / 0.9651 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.117e-05/0.6567, allocations: 10.2 kB / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.6567, allocations: 0.9375 kB / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.6567, allocations: 1.031 kB / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.6567, allocations: 5.016 kB / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6567, allocations: 0 / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003218/0.6571, allocations: 198.4 kB / 0.9653 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.6572, allocations: 139.9 kB / 0.9654 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.164e-05/0.6573, allocations: 4.969 kB / 0.9654 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.6575, allocations: 8.094 kB / 0.9654 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.6576, allocations: 20.12 kB / 0.9654 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.6576, allocations: 6.906 kB / 0.9654 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0009554/0.6586, allocations: 0.6475 MB / 0.9661 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6586, allocations: 1.156 kB / 0.9661 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003463/0.659, allocations: 60.8 kB / 0.9661 GB, free: 14.89 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,sta.y,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001536/0.6605, allocations: 1.049 MB / 0.9672 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000207/0.6607, allocations: 73.2 kB / 0.9672 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.6607, allocations: 0 / 0.9672 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.922e-05/0.6608, allocations: 38.36 kB / 0.9673 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.6615, allocations: 148.6 kB / 0.9674 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005695/0.6672, allocations: 3.693 MB / 0.971 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005963/0.6678, allocations: 0.9801 MB / 0.972 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001806/0.668, allocations: 39.97 kB / 0.972 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.6683, allocations: 177.4 kB / 0.9722 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of SimCode: time 3.5e-07/0.6683, allocations: 0 / 0.9722 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.6941, allocations: 11.6 MB / 0.9835 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.6943, allocations: 249.5 kB / 0.9838 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.603, allocations: 1.719 kB / 0.9838 GB, free: 1.414 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.mat does not exist to compare? outputFormat=mat