Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009431/0.0009432, allocations: 184 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4868/0.4868, allocations: 91.97 MB / 108.5 MB, free: 13.07 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 354.3 MB, free: 12.25 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 100.2 kB / 427.4 MB, free: 3.961 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003296, allocations: 8 kB / 0.4983 GB, free: 42.23 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1803, allocations: 72.3 MB / 0.5689 GB, free: 1.863 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5878/0.7682, allocations: 104.6 MB / 0.6711 GB, free: 15.78 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003352/0.7686, allocations: 83.95 kB / 0.6712 GB, free: 15.7 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0174/0.786, allocations: 5.91 MB / 0.677 GB, free: 9.793 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.497e-06/0.786, allocations: 0 / 0.677 GB, free: 9.793 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.702e-05/0.7861, allocations: 8 kB / 0.677 GB, free: 9.785 MB / 474.7 MB 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.001164/0.7872, allocations: 0.5857 MB / 0.6775 GB, free: 9.145 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.7873, allocations: 11.97 kB / 0.6776 GB, free: 9.133 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.7874, allocations: 54.5 kB / 0.6776 GB, free: 9.07 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.7876, allocations: 31.62 kB / 0.6776 GB, free: 9.039 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005438/0.7881, allocations: 289.5 kB / 0.6779 GB, free: 8.719 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.7882, allocations: 8 kB / 0.6779 GB, free: 8.711 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.7882, allocations: 16 kB / 0.6779 GB, free: 8.695 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.7887, allocations: 271 kB / 0.6782 GB, free: 8.402 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.7888, allocations: 0 / 0.6782 GB, free: 8.402 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.7888, allocations: 4 kB / 0.6782 GB, free: 8.398 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.7888, allocations: 11.95 kB / 0.6782 GB, free: 8.387 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/0.7892, allocations: 164.3 kB / 0.6784 GB, free: 8.227 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.7904, allocations: 0.7315 MB / 0.6791 GB, free: 7.438 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005023/0.7909, allocations: 226.6 kB / 0.6793 GB, free: 7.207 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.7909, allocations: 0 / 0.6793 GB, free: 7.207 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003899/0.7913, allocations: 205 kB / 0.6795 GB, free: 6.988 MB / 474.7 MB Notification: Performance of pre-optimization done (n=15): time 2.294e-06/0.7913, allocations: 0 / 0.6795 GB, free: 6.988 MB / 474.7 MB Notification: Performance of matching and sorting (n=15): time 0.001103/0.7925, allocations: 0.5656 MB / 0.68 GB, free: 6.391 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.945e-05/0.7926, allocations: 132.5 kB / 0.6802 GB, free: 6.23 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.7929, allocations: 249.9 kB / 0.6804 GB, free: 5.988 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.7929, allocations: 33.7 kB / 0.6804 GB, free: 5.949 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.7931, allocations: 156.2 kB / 0.6806 GB, free: 5.793 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.858e-05/0.7931, allocations: 43.44 kB / 0.6806 GB, free: 5.75 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.7931, allocations: 4 kB / 0.6806 GB, free: 5.746 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.7933, allocations: 334.8 kB / 0.681 GB, free: 5.41 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.7935, allocations: 112.1 kB / 0.6811 GB, free: 5.297 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.7938, allocations: 165.5 kB / 0.6812 GB, free: 5.117 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.7941, allocations: 148.4 kB / 0.6814 GB, free: 4.969 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.7941, allocations: 0 / 0.6814 GB, free: 4.969 MB / 474.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007896/0.7949, allocations: 419.6 kB / 0.6818 GB, free: 4.547 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.641e-05/0.7949, allocations: 33.7 kB / 0.6818 GB, free: 4.508 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.795, allocations: 7.938 kB / 0.6818 GB, free: 4.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.795, allocations: 0 / 0.6818 GB, free: 4.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.7952, allocations: 31.92 kB / 0.6818 GB, free: 4.469 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.7952, allocations: 0 / 0.6818 GB, free: 4.469 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.7954, allocations: 47.91 kB / 0.6819 GB, free: 4.422 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.8e-05/0.7954, allocations: 12 kB / 0.6819 GB, free: 4.41 MB / 474.7 MB 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.0002426/0.7957, allocations: 191.5 kB / 0.6821 GB, free: 4.207 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.973e-05/0.7957, allocations: 23.72 kB / 0.6821 GB, free: 4.184 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.951e-05/0.7958, allocations: 29.92 kB / 0.6821 GB, free: 4.156 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.7958, allocations: 11.94 kB / 0.6821 GB, free: 4.145 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.7959, allocations: 0 / 0.6821 GB, free: 4.145 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.7959, allocations: 0 / 0.6821 GB, free: 4.145 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000316/0.7962, allocations: 301.4 kB / 0.6824 GB, free: 3.801 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.7962, allocations: 4 kB / 0.6824 GB, free: 3.797 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.7963, allocations: 19.98 kB / 0.6824 GB, free: 3.777 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.7964, allocations: 0 / 0.6824 GB, free: 3.777 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.7964, allocations: 4 kB / 0.6825 GB, free: 3.773 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.7964, allocations: 0 / 0.6825 GB, free: 3.773 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.7964, allocations: 4 kB / 0.6825 GB, free: 3.77 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.7976, allocations: 0.5963 MB / 0.683 GB, free: 3.152 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.645e-05/0.7976, allocations: 92.86 kB / 0.6831 GB, free: 3.043 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.522e-05/0.7977, allocations: 11.98 kB / 0.6831 GB, free: 3.031 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.7979, allocations: 28.05 kB / 0.6832 GB, free: 3.004 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.798, allocations: 31.95 kB / 0.6832 GB, free: 2.973 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.798, allocations: 15.98 kB / 0.6832 GB, free: 2.957 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002078/0.7982, allocations: 194 kB / 0.6834 GB, free: 2.766 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7983, allocations: 0 / 0.6834 GB, free: 2.766 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003764/0.7986, allocations: 79.89 kB / 0.6835 GB, free: 2.688 MB / 474.7 MB 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.001331/0.8, allocations: 1.069 MB / 0.6845 GB, free: 1.586 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0005741/0.8006, allocations: 315.5 kB / 0.6848 GB, free: 1.266 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.8006, allocations: 4 kB / 0.6848 GB, free: 1.262 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.8009, allocations: 191.3 kB / 0.685 GB, free: 1.062 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.8012, allocations: 33.95 kB / 0.685 GB, free: 1.031 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.8043, allocations: 2.112 MB / 0.6871 GB, free: 14.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.8046, allocations: 0.7566 MB / 0.6878 GB, free: 14.08 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.8047, allocations: 13.42 kB / 0.6878 GB, free: 14.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.8048, allocations: 79.78 kB / 0.6879 GB, free: 13.99 MB / 490.7 MB Notification: Performance of SimCode: time 5.11e-07/0.8049, allocations: 0 / 0.6879 GB, free: 13.99 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.8282, allocations: 4.899 MB / 0.6927 GB, free: 9.23 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.8285, allocations: 176 kB / 0.6929 GB, free: 8.988 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/3.008, allocations: 0 / 0.6929 GB, free: 8.988 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)