Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.595/2.595, allocations: 284.9 MB / 292.4 MB, free: 10.62 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.001492/0.001491, allocations: 180.9 kB / 360.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.184/2.184, allocations: 205.2 MB / 0.6191 GB, free: 12.2 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.001115/0.001115, allocations: 95.88 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.241e-05/3.255e-05, allocations: 4 kB / 0.8509 GB, free: 3.34 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8345/0.8346, allocations: 115.3 MB / 0.9634 GB, free: 78.64 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2433/1.078, allocations: 140.3 MB / 1.1 GB, free: 184 kB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/1.078, allocations: 75.95 kB / 1.1 GB, free: 108 kB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02939/1.108, allocations: 5.792 MB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.638e-06/1.108, allocations: 0 / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.196e-05/1.108, allocations: 7.938 kB / 1.106 GB, free: 10.38 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.001282/1.109, allocations: 0.563 MB / 1.107 GB, free: 9.766 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/1.109, allocations: 8.031 kB / 1.107 GB, free: 9.758 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/1.109, allocations: 27.72 kB / 1.107 GB, free: 9.73 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006916/1.11, allocations: 297.5 kB / 1.107 GB, free: 9.402 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/1.11, allocations: 6.625 kB / 1.107 GB, free: 9.398 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/1.11, allocations: 8 kB / 1.107 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003933/1.111, allocations: 128.2 kB / 1.107 GB, free: 9.262 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005218/1.111, allocations: 220.4 kB / 1.107 GB, free: 9.023 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/1.111, allocations: 4 kB / 1.107 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/1.111, allocations: 0 / 1.107 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/1.111, allocations: 4 kB / 1.107 GB, free: 9.016 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/1.113, allocations: 0.692 MB / 1.108 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003667/1.113, allocations: 154.5 kB / 1.108 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/1.113, allocations: 105 kB / 1.108 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/1.113, allocations: 0 / 1.108 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003864/1.114, allocations: 181 kB / 1.108 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 4.619e-06/1.114, allocations: 96 / 1.108 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.001001/1.115, allocations: 303.9 kB / 1.109 GB, free: 7.516 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.898e-05/1.115, allocations: 132.5 kB / 1.109 GB, free: 7.355 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/1.115, allocations: 226.1 kB / 1.109 GB, free: 7.129 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/1.115, allocations: 29.7 kB / 1.109 GB, free: 7.094 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/1.116, allocations: 156.2 kB / 1.109 GB, free: 6.938 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 9.68e-05/1.116, allocations: 51.38 kB / 1.109 GB, free: 6.887 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.009e-05/1.116, allocations: 0 / 1.109 GB, free: 6.887 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001715/1.116, allocations: 338.8 kB / 1.11 GB, free: 6.547 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/1.116, allocations: 92.16 kB / 1.11 GB, free: 6.453 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/1.116, allocations: 140.8 kB / 1.11 GB, free: 6.301 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/1.117, allocations: 89.44 kB / 1.11 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/1.117, allocations: 0 / 1.11 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008977/1.118, allocations: 331.7 kB / 1.11 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.203e-05/1.118, allocations: 38.72 kB / 1.11 GB, free: 5.844 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/1.118, allocations: 4.125 kB / 1.11 GB, free: 5.84 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/1.118, allocations: 4 kB / 1.11 GB, free: 5.836 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/1.118, allocations: 27.98 kB / 1.11 GB, free: 5.809 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/1.118, allocations: 7.938 kB / 1.11 GB, free: 5.801 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/1.118, allocations: 39.81 kB / 1.11 GB, free: 5.762 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/1.119, allocations: 12 kB / 1.11 GB, free: 5.75 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.0002062/1.119, allocations: 150.5 kB / 1.111 GB, free: 5.59 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009231/1.12, allocations: 314.8 kB / 1.111 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.212e-05/1.12, allocations: 23.72 kB / 1.111 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/1.12, allocations: 35.53 kB / 1.111 GB, free: 5.219 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/1.12, allocations: 4 kB / 1.111 GB, free: 5.215 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.12, allocations: 0 / 1.111 GB, free: 5.215 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.12, allocations: 0 / 1.111 GB, free: 5.215 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003757/1.12, allocations: 269.9 kB / 1.111 GB, free: 4.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/1.12, allocations: 0 / 1.111 GB, free: 4.914 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/1.121, allocations: 19.98 kB / 1.111 GB, free: 4.895 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-06/1.121, allocations: 3.953 kB / 1.111 GB, free: 4.891 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.759e-05/1.121, allocations: 11.98 kB / 1.111 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/1.121, allocations: 0 / 1.111 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.121, allocations: 4 kB / 1.111 GB, free: 4.875 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/1.122, allocations: 489 kB / 1.112 GB, free: 4.379 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 9.431e-05/1.122, allocations: 96.8 kB / 1.112 GB, free: 4.266 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.094e-05/1.122, allocations: 7.953 kB / 1.112 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/1.123, allocations: 31.97 kB / 1.112 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/1.123, allocations: 27.95 kB / 1.112 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/1.123, allocations: 27.59 kB / 1.112 GB, free: 4.176 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002689/1.123, allocations: 178 kB / 1.112 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.01e-07/1.123, allocations: 0 / 1.112 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004496/1.123, allocations: 56.06 kB / 1.112 GB, free: 3.949 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.001455/1.125, allocations: 0.9649 MB / 1.113 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0005724/1.126, allocations: 260.2 kB / 1.113 GB, free: 2.691 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.126, allocations: 0 / 1.113 GB, free: 2.691 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000301/1.126, allocations: 175.3 kB / 1.113 GB, free: 2.508 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004885/1.126, allocations: 28.5 kB / 1.113 GB, free: 2.48 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/1.128, allocations: 416.8 kB / 1.114 GB, free: 2.039 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/1.129, allocations: 0.7594 MB / 1.115 GB, free: 1.254 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001601/1.129, allocations: 17.2 kB / 1.115 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/1.129, allocations: 67.41 kB / 1.115 GB, free: 1.172 MB / 0.7136 GB Notification: Performance of SimCode: time 1.332e-06/1.129, allocations: 0 / 1.115 GB, free: 1.172 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04973/1.179, allocations: 4.352 MB / 1.119 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003886/1.179, allocations: 151.6 kB / 1.119 GB, free: 12.74 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.507/3.687, allocations: 4.094 kB / 1.119 GB, free: 12.74 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)