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.965/1.965, allocations: 292.6 MB / 307.5 MB, free: 5.191 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.001603/0.001602, allocations: 171.9 kB / 377.1 MB, free: 1.516 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.111/2.111, allocations: 205.4 MB / 0.6366 GB, free: 8.59 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.001149/0.001149, allocations: 92.77 kB / 0.7509 GB, free: 63.23 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004541/0.000454, allocations: 12 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3252, allocations: 116.3 MB / 0.9884 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9595/1.285, allocations: 142.2 MB / 1.127 GB, free: 33.08 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/1.285, allocations: 86.23 kB / 1.127 GB, free: 33.01 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01802/1.303, allocations: 5.834 MB / 1.133 GB, free: 28.84 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.406e-06/1.303, allocations: 0 / 1.133 GB, free: 28.84 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.366e-05/1.303, allocations: 4.656 kB / 1.133 GB, free: 28.84 MB / 0.7292 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.001006/1.304, allocations: 0.5943 MB / 1.134 GB, free: 28.23 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.409e-05/1.304, allocations: 16.02 kB / 1.134 GB, free: 28.21 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.958e-05/1.304, allocations: 47.3 kB / 1.134 GB, free: 28.16 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.691e-05/1.305, allocations: 29.78 kB / 1.134 GB, free: 28.13 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005311/1.305, allocations: 291.5 kB / 1.134 GB, free: 27.84 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/1.305, allocations: 15.44 kB / 1.134 GB, free: 27.82 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/1.305, allocations: 12.75 kB / 1.134 GB, free: 27.81 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005333/1.306, allocations: 273.6 kB / 1.134 GB, free: 27.56 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/1.306, allocations: 0 / 1.134 GB, free: 27.56 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/1.306, allocations: 8 kB / 1.134 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/1.306, allocations: 4 kB / 1.134 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/1.306, allocations: 163.1 kB / 1.134 GB, free: 27.41 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/1.307, allocations: 0.7314 MB / 1.135 GB, free: 26.72 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005083/1.308, allocations: 227.5 kB / 1.135 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/1.308, allocations: 0 / 1.135 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003793/1.308, allocations: 205.9 kB / 1.136 GB, free: 26.34 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/1.308, allocations: 0 / 1.136 GB, free: 26.34 MB / 0.7292 GB Notification: Performance of matching and sorting (n=15): time 0.001189/1.309, allocations: 0.5634 MB / 1.136 GB, free: 25.8 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/1.31, allocations: 133.1 kB / 1.136 GB, free: 25.64 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003155/1.31, allocations: 252.5 kB / 1.136 GB, free: 25.42 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.544e-05/1.31, allocations: 31.34 kB / 1.137 GB, free: 25.39 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000135/1.31, allocations: 153.3 kB / 1.137 GB, free: 25.24 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.856e-05/1.31, allocations: 47.06 kB / 1.137 GB, free: 25.2 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.52e-05/1.31, allocations: 12 kB / 1.137 GB, free: 25.19 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001426/1.31, allocations: 336.3 kB / 1.137 GB, free: 24.86 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/1.311, allocations: 116.6 kB / 1.137 GB, free: 24.76 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002834/1.311, allocations: 165.5 kB / 1.137 GB, free: 24.6 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/1.311, allocations: 145.1 kB / 1.137 GB, free: 24.46 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/1.311, allocations: 0 / 1.137 GB, free: 24.46 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007147/1.312, allocations: 405.4 kB / 1.138 GB, free: 24.1 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/1.312, allocations: 44.89 kB / 1.138 GB, free: 24.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/1.312, allocations: 1.406 kB / 1.138 GB, free: 24.05 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/1.312, allocations: 4 kB / 1.138 GB, free: 24.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/1.312, allocations: 28.16 kB / 1.138 GB, free: 24.02 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/1.312, allocations: 4.609 kB / 1.138 GB, free: 24.02 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/1.312, allocations: 38.84 kB / 1.138 GB, free: 23.99 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/1.312, allocations: 12 kB / 1.138 GB, free: 23.98 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 () * Number of clocked 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.0001879/1.313, allocations: 195 kB / 1.138 GB, free: 23.78 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/1.313, allocations: 28.23 kB / 1.138 GB, free: 23.75 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/1.313, allocations: 33.27 kB / 1.138 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/1.313, allocations: 0 / 1.138 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/1.313, allocations: 0.6562 kB / 1.138 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.313, allocations: 4.656 kB / 1.138 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/1.313, allocations: 300.9 kB / 1.139 GB, free: 23.43 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/1.313, allocations: 1.125 kB / 1.139 GB, free: 23.43 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/1.313, allocations: 23.23 kB / 1.139 GB, free: 23.41 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/1.313, allocations: 0.6094 kB / 1.139 GB, free: 23.41 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/1.313, allocations: 10 kB / 1.139 GB, free: 23.4 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/1.313, allocations: 4 kB / 1.139 GB, free: 23.39 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/1.313, allocations: 0 / 1.139 GB, free: 23.39 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/1.314, allocations: 0.5863 MB / 1.139 GB, free: 22.85 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.754e-05/1.314, allocations: 98.12 kB / 1.139 GB, free: 22.74 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.828e-05/1.315, allocations: 13.48 kB / 1.139 GB, free: 22.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/1.315, allocations: 30.38 kB / 1.139 GB, free: 22.7 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/1.315, allocations: 28.8 kB / 1.139 GB, free: 22.69 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/1.315, allocations: 17.23 kB / 1.139 GB, free: 22.67 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001998/1.315, allocations: 201.1 kB / 1.139 GB, free: 22.5 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/1.315, allocations: 0 / 1.139 GB, free: 22.5 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003573/1.315, allocations: 64.72 kB / 1.14 GB, free: 22.44 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) * Number of clocked states: 0 () * 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.001221/1.317, allocations: 1.074 MB / 1.141 GB, free: 21.38 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005623/1.317, allocations: 314.3 kB / 1.141 GB, free: 21.09 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.317, allocations: 0 / 1.141 GB, free: 21.09 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002578/1.318, allocations: 201 kB / 1.141 GB, free: 20.89 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/1.318, allocations: 34.08 kB / 1.141 GB, free: 20.87 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/1.321, allocations: 2.119 MB / 1.143 GB, free: 18.86 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/1.321, allocations: 0.758 MB / 1.144 GB, free: 18.11 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 9.751e-05/1.321, allocations: 14.22 kB / 1.144 GB, free: 18.1 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/1.321, allocations: 72.67 kB / 1.144 GB, free: 18.04 MB / 0.7292 GB Notification: Performance of SimCode: time 1.082e-06/1.321, allocations: 0 / 1.144 GB, free: 18.04 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/1.343, allocations: 4.903 MB / 1.149 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/1.343, allocations: 185 kB / 1.149 GB, free: 15 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.488/3.832, allocations: 4 kB / 1.149 GB, free: 14.99 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)