Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.637/1.637, allocations: 285.6 MB / 293.1 MB, free: 10.21 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 168.9 kB / 361.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.766/1.766, allocations: 205.2 MB / 0.62 GB, free: 11.68 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008701/0.0008701, allocations: 92.55 kB / 0.733 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.316e-05, allocations: 7.984 kB / 0.8518 GB, free: 2.66 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7549/0.7549, allocations: 115.3 MB / 0.9644 GB, free: 78.77 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2038/0.9587, allocations: 140.4 MB / 1.102 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.9591, allocations: 83.95 kB / 1.102 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.0167/0.9758, allocations: 5.786 MB / 1.107 GB, free: 9.52 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/0.9758, allocations: 1.875 kB / 1.107 GB, free: 9.52 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.909e-05/0.9759, allocations: 4 kB / 1.107 GB, free: 9.516 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008652/0.9767, allocations: 0.5657 MB / 1.108 GB, free: 8.898 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.9768, allocations: 8.031 kB / 1.108 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.074e-05/0.9769, allocations: 32.75 kB / 1.108 GB, free: 8.859 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004485/0.9773, allocations: 289.5 kB / 1.108 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.9774, allocations: 4 kB / 1.108 GB, free: 8.535 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.9774, allocations: 16 kB / 1.108 GB, free: 8.52 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002377/0.9777, allocations: 128.2 kB / 1.108 GB, free: 8.391 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.978, allocations: 216.4 kB / 1.109 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.978, allocations: 0 / 1.109 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.978, allocations: 0 / 1.109 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.9781, allocations: 4 kB / 1.109 GB, free: 8.152 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008827/0.9789, allocations: 0.6967 MB / 1.109 GB, free: 7.41 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.9792, allocations: 150.5 kB / 1.109 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.9793, allocations: 105 kB / 1.109 GB, free: 7.148 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.9793, allocations: 4 kB / 1.109 GB, free: 7.145 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.9796, allocations: 175.1 kB / 1.11 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.9796, allocations: 0 / 1.11 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0006031/0.9802, allocations: 307.5 kB / 1.11 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.9803, allocations: 136.5 kB / 1.11 GB, free: 6.484 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.9805, allocations: 226.1 kB / 1.11 GB, free: 6.254 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.9806, allocations: 33.64 kB / 1.11 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.9807, allocations: 152.2 kB / 1.11 GB, free: 6.062 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.352e-05/0.9807, allocations: 47.44 kB / 1.111 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.9808, allocations: 3.75 kB / 1.111 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.9809, allocations: 338.8 kB / 1.111 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.981, allocations: 88.16 kB / 1.111 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.9812, allocations: 136.7 kB / 1.111 GB, free: 5.438 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.9814, allocations: 98.11 kB / 1.111 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.9814, allocations: 0 / 1.111 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005576/0.982, allocations: 333.1 kB / 1.111 GB, free: 5.012 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.982, allocations: 37.66 kB / 1.112 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.9821, allocations: 0 / 1.112 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.9821, allocations: 0 / 1.112 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.9822, allocations: 32.08 kB / 1.112 GB, free: 4.938 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.9823, allocations: 5.703 kB / 1.112 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.9825, allocations: 35.83 kB / 1.112 GB, free: 4.898 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.9825, allocations: 20.44 kB / 1.112 GB, free: 4.879 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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.0001576/0.9827, allocations: 143.3 kB / 1.112 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005713/0.9832, allocations: 318.9 kB / 1.112 GB, free: 4.41 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.9833, allocations: 31.67 kB / 1.112 GB, free: 4.379 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.9834, allocations: 25.95 kB / 1.112 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.9834, allocations: 0 / 1.112 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.9834, allocations: 3.25 kB / 1.112 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.9834, allocations: 0 / 1.112 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003426/0.9838, allocations: 269.9 kB / 1.112 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.9838, allocations: 0 / 1.112 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.9839, allocations: 27.98 kB / 1.112 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.9839, allocations: 0 / 1.112 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.984, allocations: 7.953 kB / 1.112 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.984, allocations: 3.938 kB / 1.112 GB, free: 4.012 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.984, allocations: 3.984 kB / 1.112 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008062/0.9848, allocations: 484.7 kB / 1.113 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 9.396e-05/0.9849, allocations: 104.8 kB / 1.113 GB, free: 3.395 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.076e-05/0.985, allocations: 8 kB / 1.113 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.9851, allocations: 32 kB / 1.113 GB, free: 3.355 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.004e-05/0.9852, allocations: 31.94 kB / 1.113 GB, free: 3.324 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.9853, allocations: 8 kB / 1.113 GB, free: 3.316 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.000184/0.9855, allocations: 182 kB / 1.113 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9855, allocations: 0 / 1.113 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003698/0.9858, allocations: 68.05 kB / 1.113 GB, free: 3.078 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0009859/0.9868, allocations: 0.9576 MB / 1.114 GB, free: 2.094 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003823/0.9872, allocations: 263.3 kB / 1.114 GB, free: 1.824 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.9872, allocations: 8.25 kB / 1.114 GB, free: 1.816 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.9874, allocations: 167.3 kB / 1.115 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.9877, allocations: 30.73 kB / 1.115 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.9889, allocations: 427.6 kB / 1.115 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.9894, allocations: 0.7516 MB / 1.116 GB, free: 396 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 8.691e-05/0.9895, allocations: 17.2 kB / 1.116 GB, free: 376 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.9896, allocations: 71.41 kB / 1.116 GB, free: 308 kB / 0.7136 GB Notification: Performance of SimCode: time 3.7e-07/0.9896, allocations: 0 / 1.116 GB, free: 308 kB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02651/1.016, allocations: 4.359 MB / 1.12 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002576/1.016, allocations: 147.5 kB / 1.12 GB, free: 11.87 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.978, allocations: 32 / 1.12 GB, free: 11.87 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)