Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.736/1.736, allocations: 289.9 MB / 297.4 MB, free: 6.344 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.00136/0.00136, allocations: 172.9 kB / 366.7 MB, free: 1.621 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.868/1.868, allocations: 205.2 MB / 0.626 GB, free: 7.109 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.0008655/0.0008656, allocations: 92.91 kB / 0.74 GB, free: 39.5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.068e-05/2.073e-05, allocations: 4 kB / 0.8598 GB, free: 12.92 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7446/0.7447, allocations: 116.3 MB / 0.9733 GB, free: 76.11 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2104/0.9552, allocations: 141.4 MB / 1.111 GB, free: 8.605 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.9555, allocations: 83.94 kB / 1.112 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01705/0.9726, allocations: 5.785 MB / 1.117 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.373e-06/0.9727, allocations: 0 / 1.117 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.886e-05/0.9727, allocations: 11.98 kB / 1.117 GB, free: 2.781 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.000799/0.9735, allocations: 0.5579 MB / 1.118 GB, free: 2.172 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.9735, allocations: 8.031 kB / 1.118 GB, free: 2.164 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.859e-05/0.9736, allocations: 27.72 kB / 1.118 GB, free: 2.137 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.9741, allocations: 293.5 kB / 1.118 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.9741, allocations: 4 kB / 1.118 GB, free: 1.805 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.9741, allocations: 14.44 kB / 1.118 GB, free: 1.793 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002467/0.9744, allocations: 128.2 kB / 1.118 GB, free: 1.664 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.9747, allocations: 215.1 kB / 1.118 GB, free: 1.43 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.9748, allocations: 4 kB / 1.118 GB, free: 1.426 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.9748, allocations: 7.984 kB / 1.118 GB, free: 1.418 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.9748, allocations: 4 kB / 1.118 GB, free: 1.414 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009315/0.9758, allocations: 0.6889 MB / 1.119 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.976, allocations: 146.5 kB / 1.119 GB, free: 0.5273 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.9761, allocations: 109 kB / 1.119 GB, free: 428 kB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.9762, allocations: 4 kB / 1.119 GB, free: 424 kB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002417/0.9764, allocations: 173.9 kB / 1.12 GB, free: 232 kB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.9764, allocations: 0 / 1.12 GB, free: 232 kB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0006249/0.9771, allocations: 302.8 kB / 1.12 GB, free: 15.93 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/0.9772, allocations: 136.5 kB / 1.12 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.9774, allocations: 226.1 kB / 1.12 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.9774, allocations: 33.64 kB / 1.12 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.9776, allocations: 160.2 kB / 1.12 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.9776, allocations: 43.45 kB / 1.12 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.32e-05/0.9776, allocations: 0 / 1.12 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.9778, allocations: 334.8 kB / 1.121 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.9779, allocations: 88.16 kB / 1.121 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001592/0.9781, allocations: 138.6 kB / 1.121 GB, free: 14.71 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.9782, allocations: 91.84 kB / 1.121 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.9782, allocations: 0 / 1.121 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004908/0.9787, allocations: 337.1 kB / 1.121 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.725e-05/0.9788, allocations: 34.59 kB / 1.121 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.9788, allocations: 4 kB / 1.121 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.9789, allocations: 4.125 kB / 1.121 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.979, allocations: 31.98 kB / 1.121 GB, free: 14.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.979, allocations: 3.984 kB / 1.121 GB, free: 14.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.9792, allocations: 35.83 kB / 1.121 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.9793, allocations: 16 kB / 1.121 GB, free: 14.16 MB / 0.7292 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.0001364/0.9794, allocations: 146.6 kB / 1.122 GB, free: 14 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005085/0.9799, allocations: 315.3 kB / 1.122 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.98, allocations: 27.67 kB / 1.122 GB, free: 13.67 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.425e-05/0.98, allocations: 33.95 kB / 1.122 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.98, allocations: 0 / 1.122 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.9801, allocations: 0 / 1.122 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.9801, allocations: 3.938 kB / 1.122 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.9803, allocations: 269.9 kB / 1.122 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.9804, allocations: 4 kB / 1.122 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.9805, allocations: 23.98 kB / 1.122 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.9805, allocations: 0 / 1.122 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.9805, allocations: 15.23 kB / 1.122 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.9805, allocations: 3.938 kB / 1.122 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.9806, allocations: 0 / 1.122 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007239/0.9813, allocations: 482.2 kB / 1.123 GB, free: 12.79 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.229e-05/0.9814, allocations: 108.8 kB / 1.123 GB, free: 12.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.49e-05/0.9814, allocations: 4 kB / 1.123 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.9816, allocations: 35.23 kB / 1.123 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.834e-05/0.9817, allocations: 27.95 kB / 1.123 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.9817, allocations: 12 kB / 1.123 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001615/0.9819, allocations: 186 kB / 1.123 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9819, allocations: 0 / 1.123 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003101/0.9822, allocations: 64.05 kB / 1.123 GB, free: 12.35 MB / 0.7292 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.001084/0.9833, allocations: 0.9554 MB / 1.124 GB, free: 11.37 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003325/0.9837, allocations: 263.3 kB / 1.124 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.9837, allocations: 0 / 1.124 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.9838, allocations: 167.4 kB / 1.124 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.9842, allocations: 34.47 kB / 1.124 GB, free: 10.89 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009949/0.9852, allocations: 426.4 kB / 1.125 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.9855, allocations: 0.7555 MB / 1.126 GB, free: 9.66 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.856e-05/0.9856, allocations: 17.2 kB / 1.126 GB, free: 9.641 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.9857, allocations: 71.41 kB / 1.126 GB, free: 9.57 MB / 0.7292 GB Notification: Performance of SimCode: time 4.01e-07/0.9857, allocations: 0 / 1.126 GB, free: 9.57 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/1.013, allocations: 4.354 MB / 1.13 GB, free: 5.332 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002753/1.013, allocations: 140.1 kB / 1.13 GB, free: 5.141 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.889, allocations: 0 / 1.13 GB, free: 5.141 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)