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.781/1.781, allocations: 289.7 MB / 302.3 MB, free: 2.141 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.001324/0.001324, allocations: 183.3 kB / 371.6 MB, free: 3.363 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.646/1.646, allocations: 205.1 MB / 0.6309 GB, free: 11.78 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.0009037/0.0009037, allocations: 92.72 kB / 0.745 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.882e-05/3.894e-05, allocations: 0 / 0.8663 GB, free: 15 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2786, allocations: 116.3 MB / 0.9799 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9073/1.186, allocations: 142.1 MB / 1.119 GB, free: 42.43 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/1.186, allocations: 82.67 kB / 1.119 GB, free: 42.4 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01654/1.203, allocations: 5.817 MB / 1.124 GB, free: 39.09 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.775e-06/1.203, allocations: 0 / 1.124 GB, free: 39.09 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.849e-05/1.203, allocations: 7.938 kB / 1.124 GB, free: 39.08 MB / 0.7448 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.0009751/1.204, allocations: 0.5562 MB / 1.125 GB, free: 38.54 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/1.204, allocations: 12.03 kB / 1.125 GB, free: 38.52 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.695e-05/1.204, allocations: 44.36 kB / 1.125 GB, free: 38.48 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/1.204, allocations: 29.44 kB / 1.125 GB, free: 38.45 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/1.205, allocations: 289.9 kB / 1.125 GB, free: 38.18 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/1.205, allocations: 13.94 kB / 1.125 GB, free: 38.17 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.315e-05/1.205, allocations: 18.7 kB / 1.125 GB, free: 38.16 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004024/1.205, allocations: 239.7 kB / 1.126 GB, free: 37.98 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/1.205, allocations: 0 / 1.126 GB, free: 37.98 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/1.205, allocations: 10.61 kB / 1.126 GB, free: 37.98 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/1.205, allocations: 5.078 kB / 1.126 GB, free: 37.97 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/1.206, allocations: 142.3 kB / 1.126 GB, free: 37.88 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/1.207, allocations: 0.7312 MB / 1.126 GB, free: 37.29 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/1.207, allocations: 158.5 kB / 1.127 GB, free: 37.18 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000141/1.207, allocations: 114.7 kB / 1.127 GB, free: 37.11 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/1.207, allocations: 4 kB / 1.127 GB, free: 37.11 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/1.207, allocations: 177.9 kB / 1.127 GB, free: 36.97 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=15): time 2.945e-06/1.207, allocations: 1.172 kB / 1.127 GB, free: 36.97 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15): time 0.0005871/1.208, allocations: 345.4 kB / 1.127 GB, free: 36.7 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/1.208, allocations: 135.5 kB / 1.127 GB, free: 36.54 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/1.208, allocations: 246.1 kB / 1.128 GB, free: 36.36 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/1.208, allocations: 32.52 kB / 1.128 GB, free: 36.32 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.939e-05/1.208, allocations: 164.9 kB / 1.128 GB, free: 36.2 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.19e-05/1.208, allocations: 33.88 kB / 1.128 GB, free: 36.18 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/1.208, allocations: 7.688 kB / 1.128 GB, free: 36.17 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.182e-05/1.209, allocations: 343.8 kB / 1.128 GB, free: 35.84 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/1.209, allocations: 92.92 kB / 1.128 GB, free: 35.79 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/1.209, allocations: 140.9 kB / 1.128 GB, free: 35.67 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/1.209, allocations: 125 kB / 1.128 GB, free: 35.58 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.209, allocations: 0 / 1.128 GB, free: 35.58 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004975/1.209, allocations: 368.9 kB / 1.129 GB, free: 35.3 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/1.21, allocations: 37.12 kB / 1.129 GB, free: 35.26 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/1.21, allocations: 1.406 kB / 1.129 GB, free: 35.26 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/1.21, allocations: 4.094 kB / 1.129 GB, free: 35.26 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/1.21, allocations: 34.8 kB / 1.129 GB, free: 35.23 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/1.21, allocations: 5.5 kB / 1.129 GB, free: 35.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/1.21, allocations: 38.69 kB / 1.129 GB, free: 35.2 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/1.21, allocations: 14.64 kB / 1.129 GB, free: 35.19 MB / 0.7448 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.0001003/1.21, allocations: 150.5 kB / 1.129 GB, free: 35.04 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/1.21, allocations: 31.67 kB / 1.129 GB, free: 35 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.116e-05/1.21, allocations: 25.94 kB / 1.129 GB, free: 35 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/1.21, allocations: 3.281 kB / 1.129 GB, free: 35 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/1.21, allocations: 4 kB / 1.129 GB, free: 34.99 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/1.21, allocations: 3.984 kB / 1.129 GB, free: 34.99 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/1.211, allocations: 299.2 kB / 1.129 GB, free: 34.75 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/1.211, allocations: 0 / 1.129 GB, free: 34.75 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/1.211, allocations: 27.41 kB / 1.129 GB, free: 34.72 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/1.211, allocations: 8.797 kB / 1.129 GB, free: 34.71 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/1.211, allocations: 4.938 kB / 1.129 GB, free: 34.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/1.211, allocations: 0 / 1.129 GB, free: 34.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.211, allocations: 0 / 1.129 GB, free: 34.71 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007029/1.211, allocations: 0.5247 MB / 1.13 GB, free: 34.32 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.602e-05/1.212, allocations: 100.7 kB / 1.13 GB, free: 34.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/1.212, allocations: 15.64 kB / 1.13 GB, free: 34.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/1.212, allocations: 26.66 kB / 1.13 GB, free: 34.18 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.434e-05/1.212, allocations: 31.11 kB / 1.13 GB, free: 34.16 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/1.212, allocations: 15.05 kB / 1.13 GB, free: 34.16 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001751/1.212, allocations: 194.8 kB / 1.13 GB, free: 34 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.8e-07/1.212, allocations: 4 kB / 1.13 GB, free: 34 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003642/1.212, allocations: 70.91 kB / 1.13 GB, free: 33.94 MB / 0.7448 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.000914/1.213, allocations: 1.006 MB / 1.131 GB, free: 33.02 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003546/1.214, allocations: 275.4 kB / 1.132 GB, free: 32.82 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.214, allocations: 0 / 1.132 GB, free: 32.82 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/1.214, allocations: 177.7 kB / 1.132 GB, free: 32.68 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/1.214, allocations: 30 kB / 1.132 GB, free: 32.67 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/1.215, allocations: 436.4 kB / 1.132 GB, free: 32.31 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/1.216, allocations: 0.7561 MB / 1.133 GB, free: 31.57 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001026/1.216, allocations: 20.11 kB / 1.133 GB, free: 31.55 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.608e-05/1.216, allocations: 71.36 kB / 1.133 GB, free: 31.53 MB / 0.7448 GB Notification: Performance of SimCode: time 4.81e-07/1.216, allocations: 0 / 1.133 GB, free: 31.53 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/1.234, allocations: 4.884 MB / 1.138 GB, free: 28.74 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/1.234, allocations: 154.4 kB / 1.138 GB, free: 28.52 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.265/3.499, allocations: 0 / 1.138 GB, free: 28.52 MB / 0.7448 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)