Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.216/2.216, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 177 kB / 498.1 MB, free: 5.746 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.2 MB / 0.7948 GB, free: 17.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009117/0.0009115, allocations: 95.33 kB / 0.9346 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003623, allocations: 10.47 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2396, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.4199, allocations: 156.2 MB / 1.375 GB, free: 5.68 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.4202, allocations: 103.9 kB / 1.376 GB, free: 5.578 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03427/0.4545, allocations: 13.14 MB / 1.388 GB, free: 8.363 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.535e-06/0.4545, allocations: 0 / 1.388 GB, free: 8.363 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.304e-05/0.4546, allocations: 8 kB / 1.388 GB, free: 8.355 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001306/0.4559, allocations: 0.8216 MB / 1.389 GB, free: 7.477 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.456, allocations: 8.031 kB / 1.389 GB, free: 7.469 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.771e-05/0.456, allocations: 42.55 kB / 1.389 GB, free: 7.418 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.4562, allocations: 67.2 kB / 1.389 GB, free: 7.352 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/0.4567, allocations: 343.8 kB / 1.39 GB, free: 6.973 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.4567, allocations: 4 kB / 1.39 GB, free: 6.969 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/0.4568, allocations: 12 kB / 1.39 GB, free: 6.957 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002502/0.457, allocations: 138.1 kB / 1.39 GB, free: 6.812 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.457, allocations: 0 / 1.39 GB, free: 6.812 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.4571, allocations: 4 kB / 1.39 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.4571, allocations: 0 / 1.39 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.4572, allocations: 101.8 kB / 1.39 GB, free: 6.711 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009622/0.4582, allocations: 0.5592 MB / 1.39 GB, free: 6.102 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.4584, allocations: 114.5 kB / 1.391 GB, free: 5.98 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.4585, allocations: 16.03 kB / 1.391 GB, free: 5.965 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.4587, allocations: 137.1 kB / 1.391 GB, free: 5.812 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.4587, allocations: 0 / 1.391 GB, free: 5.812 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0006087/0.4593, allocations: 423.6 kB / 1.391 GB, free: 5.367 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.309e-05/0.4594, allocations: 81.11 kB / 1.391 GB, free: 5.27 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008763/0.4603, allocations: 0.6675 MB / 1.392 GB, free: 4.598 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.4603, allocations: 29.7 kB / 1.392 GB, free: 4.562 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.4606, allocations: 284.1 kB / 1.392 GB, free: 4.277 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.4606, allocations: 23.72 kB / 1.392 GB, free: 4.254 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.4606, allocations: 3.938 kB / 1.392 GB, free: 4.25 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.4608, allocations: 310 kB / 1.392 GB, free: 3.941 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.879e-05/0.4609, allocations: 55.95 kB / 1.393 GB, free: 3.887 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.758e-05/0.4609, allocations: 51.97 kB / 1.393 GB, free: 3.836 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.4611, allocations: 81.67 kB / 1.393 GB, free: 3.75 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4611, allocations: 0 / 1.393 GB, free: 3.75 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003987/0.4615, allocations: 282.5 kB / 1.393 GB, free: 3.461 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.4615, allocations: 33.69 kB / 1.393 GB, free: 3.422 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.4615, allocations: 7.938 kB / 1.393 GB, free: 3.414 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.4616, allocations: 4 kB / 1.393 GB, free: 3.41 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.283e-05/0.4616, allocations: 4 kB / 1.393 GB, free: 3.406 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.4617, allocations: 7.984 kB / 1.393 GB, free: 3.398 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.4618, allocations: 15.84 kB / 1.393 GB, free: 3.383 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.4618, allocations: 8 kB / 1.393 GB, free: 3.375 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,speRat.a,speRat.b,speRat.last,$PRE.speRat.nextEvent,speRat.nextEvent,speRat.nextEventScaled,booleanToInteger.u,booleanToInteger.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0004171/0.4623, allocations: 335.3 kB / 1.393 GB, free: 3.031 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.559e-05/0.4623, allocations: 63.2 kB / 1.393 GB, free: 2.969 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004901/0.4628, allocations: 324.7 kB / 1.394 GB, free: 2.629 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.4629, allocations: 4 kB / 1.394 GB, free: 2.625 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.4629, allocations: 0 / 1.394 GB, free: 2.625 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.4629, allocations: 0 / 1.394 GB, free: 2.625 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003964/0.4633, allocations: 373.4 kB / 1.394 GB, free: 2.211 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4633, allocations: 3.938 kB / 1.394 GB, free: 2.207 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.243e-05/0.4633, allocations: 11.98 kB / 1.394 GB, free: 2.195 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.4633, allocations: 3.953 kB / 1.394 GB, free: 2.191 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.4634, allocations: 4 kB / 1.394 GB, free: 2.188 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4634, allocations: 0 / 1.394 GB, free: 2.188 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.4634, allocations: 4 kB / 1.394 GB, free: 2.184 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004432/0.4638, allocations: 329.9 kB / 1.394 GB, free: 1.836 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.464, allocations: 140.4 kB / 1.395 GB, free: 1.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.985e-05/0.4641, allocations: 7.953 kB / 1.395 GB, free: 1.672 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.4642, allocations: 11.98 kB / 1.395 GB, free: 1.66 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.4643, allocations: 3.938 kB / 1.395 GB, free: 1.656 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.4643, allocations: 15.98 kB / 1.395 GB, free: 1.641 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0006701/0.465, allocations: 0.5614 MB / 1.395 GB, free: 1.086 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.465, allocations: 0 / 1.395 GB, free: 1.086 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005749/0.4656, allocations: 151.8 kB / 1.395 GB, free: 0.9375 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,booleanToInteger.u,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001396/0.467, allocations: 1.096 MB / 1.396 GB, free: 15.82 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003176/0.4673, allocations: 207.2 kB / 1.397 GB, free: 15.6 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4673, allocations: 0 / 1.397 GB, free: 15.6 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.4675, allocations: 151.4 kB / 1.397 GB, free: 15.44 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.4679, allocations: 94.83 kB / 1.397 GB, free: 15.35 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004649/0.4726, allocations: 3.289 MB / 1.4 GB, free: 11.99 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000622/0.4733, allocations: 0.978 MB / 1.401 GB, free: 10.99 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001077/0.4734, allocations: 21.48 kB / 1.401 GB, free: 10.96 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.4736, allocations: 163.3 kB / 1.401 GB, free: 10.8 MB / 0.9011 GB Notification: Performance of SimCode: time 3.61e-07/0.4736, allocations: 3.938 kB / 1.401 GB, free: 10.8 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.5035, allocations: 12.34 MB / 1.413 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/0.5038, allocations: 203.5 kB / 1.413 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.129/2.633, allocations: 3.938 kB / 1.413 GB, free: 14.48 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat does not exist to compare? outputFormat=mat