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.579/2.579, allocations: 287.3 MB / 302.3 MB, free: 8.352 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.002313/0.002313, allocations: 170.7 kB / 370.8 MB, free: 10.87 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.146/2.146, allocations: 205.4 MB / 0.6295 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 89.42 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005005/0.0005005, allocations: 12.11 kB / 0.8657 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2218, allocations: 115.3 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9268/1.149, allocations: 141 MB / 1.116 GB, free: 15.69 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/1.149, allocations: 82.03 kB / 1.116 GB, free: 15.69 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02601/1.175, allocations: 5.834 MB / 1.122 GB, free: 31.04 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.655e-06/1.175, allocations: 0 / 1.122 GB, free: 31.04 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.927e-05/1.175, allocations: 3.844 kB / 1.122 GB, free: 31.04 MB / 0.698 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.001416/1.177, allocations: 0.6021 MB / 1.122 GB, free: 30.55 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/1.177, allocations: 15.58 kB / 1.122 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/1.177, allocations: 48.55 kB / 1.122 GB, free: 30.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.076e-05/1.177, allocations: 27.12 kB / 1.122 GB, free: 30.49 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/1.177, allocations: 289.7 kB / 1.123 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/1.178, allocations: 18.28 kB / 1.123 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/1.178, allocations: 10.75 kB / 1.123 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006831/1.178, allocations: 259 kB / 1.123 GB, free: 30.18 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/1.178, allocations: 7.938 kB / 1.123 GB, free: 30.17 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/1.178, allocations: 7.25 kB / 1.123 GB, free: 30.17 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/1.178, allocations: 3.875 kB / 1.123 GB, free: 30.17 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005096/1.179, allocations: 159 kB / 1.123 GB, free: 30.17 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/1.18, allocations: 0.7374 MB / 1.124 GB, free: 29.7 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007957/1.181, allocations: 223.2 kB / 1.124 GB, free: 29.67 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/1.181, allocations: 0 / 1.124 GB, free: 29.67 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005181/1.182, allocations: 207.3 kB / 1.124 GB, free: 29.59 MB / 0.698 GB Notification: Performance of pre-optimization done (n=15): time 2.335e-06/1.182, allocations: 0 / 1.124 GB, free: 29.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=15): time 0.001608/1.183, allocations: 0.5588 MB / 1.125 GB, free: 29.41 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/1.183, allocations: 132.5 kB / 1.125 GB, free: 29.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003787/1.184, allocations: 250.7 kB / 1.125 GB, free: 29.15 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/1.184, allocations: 36.22 kB / 1.125 GB, free: 29.12 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/1.184, allocations: 152.4 kB / 1.125 GB, free: 29.03 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.265e-05/1.184, allocations: 53.77 kB / 1.125 GB, free: 29 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/1.184, allocations: 0 / 1.125 GB, free: 29 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001605/1.184, allocations: 346.1 kB / 1.126 GB, free: 28.68 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003831/1.185, allocations: 116.5 kB / 1.126 GB, free: 28.67 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003924/1.185, allocations: 162 kB / 1.126 GB, free: 28.62 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/1.186, allocations: 134.6 kB / 1.126 GB, free: 28.59 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.186, allocations: 7.906 kB / 1.126 GB, free: 28.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001172/1.187, allocations: 411.7 kB / 1.127 GB, free: 28.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.847e-05/1.187, allocations: 36.69 kB / 1.127 GB, free: 28.47 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.589e-06/1.187, allocations: 8 kB / 1.127 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/1.187, allocations: 0 / 1.127 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/1.187, allocations: 34.42 kB / 1.127 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/1.187, allocations: 3.984 kB / 1.127 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/1.187, allocations: 41.39 kB / 1.127 GB, free: 28.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/1.188, allocations: 17.66 kB / 1.127 GB, free: 28.45 MB / 0.698 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.0002949/1.188, allocations: 185.7 kB / 1.127 GB, free: 28.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.254e-05/1.188, allocations: 31.14 kB / 1.127 GB, free: 28.28 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.334e-05/1.188, allocations: 27.73 kB / 1.127 GB, free: 28.27 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/1.188, allocations: 0 / 1.127 GB, free: 28.27 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/1.188, allocations: 7.875 kB / 1.127 GB, free: 28.27 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/1.188, allocations: 0 / 1.127 GB, free: 28.27 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000353/1.188, allocations: 311.1 kB / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.188, allocations: 0 / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/1.189, allocations: 18.06 kB / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/1.189, allocations: 3.953 kB / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/1.189, allocations: 10.45 kB / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/1.189, allocations: 3.844 kB / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/1.189, allocations: 0 / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/1.19, allocations: 0.584 MB / 1.128 GB, free: 27.95 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/1.191, allocations: 103.6 kB / 1.128 GB, free: 27.84 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.809e-05/1.191, allocations: 15.05 kB / 1.128 GB, free: 27.83 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/1.191, allocations: 28.83 kB / 1.128 GB, free: 27.83 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/1.191, allocations: 26.5 kB / 1.128 GB, free: 27.83 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-05/1.191, allocations: 14.84 kB / 1.128 GB, free: 27.83 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002895/1.191, allocations: 208.8 kB / 1.128 GB, free: 27.75 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.91e-07/1.191, allocations: 0 / 1.128 GB, free: 27.75 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004425/1.192, allocations: 64.17 kB / 1.128 GB, free: 27.74 MB / 0.698 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.001818/1.194, allocations: 1.062 MB / 1.129 GB, free: 27.09 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008465/1.195, allocations: 320 kB / 1.13 GB, free: 27.02 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/1.195, allocations: 0 / 1.13 GB, free: 27.02 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000419/1.195, allocations: 196.6 kB / 1.13 GB, free: 26.95 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/1.195, allocations: 28.22 kB / 1.13 GB, free: 26.95 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004362/1.2, allocations: 2.121 MB / 1.132 GB, free: 25.89 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/1.2, allocations: 0.7582 MB / 1.133 GB, free: 25.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001556/1.201, allocations: 12.12 kB / 1.133 GB, free: 25.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/1.201, allocations: 71.58 kB / 1.133 GB, free: 25.19 MB / 0.698 GB Notification: Performance of SimCode: time 1.563e-06/1.201, allocations: 0 / 1.133 GB, free: 25.19 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/1.231, allocations: 4.918 MB / 1.138 GB, free: 23.92 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/1.231, allocations: 178.5 kB / 1.138 GB, free: 23.68 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.732/3.963, allocations: 0 / 1.138 GB, free: 23.68 MB / 0.698 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)