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.001033/0.001033, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5024/0.5024, allocations: 90.91 MB / 99.35 MB, free: 2.219 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 221.5 MB / 343.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009865/0.0009866, allocations: 94.7 kB / 415.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.712e-05/1.713e-05, allocations: 0 / 494.6 MB, free: 52.32 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.13, allocations: 72.31 MB / 0.5536 GB, free: 12.2 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4776/0.6077, allocations: 103.9 MB / 0.6551 GB, free: 6.156 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.6081, allocations: 88.75 kB / 0.6552 GB, free: 6.102 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01799/0.6261, allocations: 5.863 MB / 0.6609 GB, free: 1.168 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6261, allocations: 0 / 0.6609 GB, free: 1.168 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.491e-05/0.6262, allocations: 4 kB / 0.6609 GB, free: 1.164 MB / 458.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.001178/0.6273, allocations: 0.5557 MB / 0.6614 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.6274, allocations: 12.03 kB / 0.6614 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.6276, allocations: 35.58 kB / 0.6615 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005702/0.6282, allocations: 288.6 kB / 0.6618 GB, free: 232 kB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.6282, allocations: 4 kB / 0.6618 GB, free: 228 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.6283, allocations: 15.92 kB / 0.6618 GB, free: 212 kB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002678/0.6285, allocations: 133.7 kB / 0.6619 GB, free: 116 kB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.6289, allocations: 214 kB / 0.6621 GB, free: 15.92 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.6289, allocations: 3.938 kB / 0.6621 GB, free: 15.92 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.629, allocations: 7.953 kB / 0.6621 GB, free: 15.91 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.629, allocations: 0 / 0.6621 GB, free: 15.91 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.6301, allocations: 0.6882 MB / 0.6628 GB, free: 15.27 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.6303, allocations: 154.8 kB / 0.6629 GB, free: 15.15 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.6305, allocations: 102.7 kB / 0.663 GB, free: 15.08 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.6305, allocations: 0 / 0.663 GB, free: 15.08 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002762/0.6308, allocations: 181.3 kB / 0.6632 GB, free: 14.91 MB / 474.7 MB Notification: Performance of pre-optimization done (n=15): time 1.903e-06/0.6308, allocations: 0 / 0.6632 GB, free: 14.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=15): time 0.000704/0.6315, allocations: 303.1 kB / 0.6635 GB, free: 14.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.491e-05/0.6316, allocations: 142.9 kB / 0.6636 GB, free: 14.49 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.6319, allocations: 224.5 kB / 0.6638 GB, free: 14.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.6319, allocations: 29.7 kB / 0.6639 GB, free: 14.26 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.632, allocations: 161.7 kB / 0.664 GB, free: 14.14 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.839e-05/0.6321, allocations: 38.08 kB / 0.6641 GB, free: 14.11 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.6321, allocations: 0 / 0.6641 GB, free: 14.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.6323, allocations: 336.8 kB / 0.6644 GB, free: 13.78 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.6324, allocations: 91.34 kB / 0.6645 GB, free: 13.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.6326, allocations: 138.7 kB / 0.6646 GB, free: 13.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.6328, allocations: 84.45 kB / 0.6647 GB, free: 13.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.6328, allocations: 3.938 kB / 0.6647 GB, free: 13.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005331/0.6333, allocations: 335.3 kB / 0.665 GB, free: 13.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/0.6334, allocations: 36.83 kB / 0.665 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.6334, allocations: 0 / 0.665 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.6334, allocations: 4 kB / 0.665 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.6336, allocations: 23.98 kB / 0.6651 GB, free: 13.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.6336, allocations: 7.984 kB / 0.6651 GB, free: 13.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.6338, allocations: 43.86 kB / 0.6651 GB, free: 13.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.6338, allocations: 11.12 kB / 0.6651 GB, free: 13.12 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 () * 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.0001454/0.634, allocations: 150.6 kB / 0.6653 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005425/0.6345, allocations: 318.1 kB / 0.6656 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.6346, allocations: 23.72 kB / 0.6656 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.75e-05/0.6346, allocations: 28.52 kB / 0.6656 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.6347, allocations: 4 kB / 0.6656 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6347, allocations: 4 kB / 0.6656 GB, free: 12.65 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.6347, allocations: 0 / 0.6656 GB, free: 12.65 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.6349, allocations: 271.2 kB / 0.6659 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.635, allocations: 0 / 0.6659 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.6351, allocations: 27.86 kB / 0.6659 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.6351, allocations: 0 / 0.6659 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.6352, allocations: 6.938 kB / 0.6659 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.6352, allocations: 4 kB / 0.6659 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.6352, allocations: 0 / 0.6659 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007531/0.6359, allocations: 483.9 kB / 0.6664 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.683e-05/0.636, allocations: 100.8 kB / 0.6665 GB, free: 11.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.818e-05/0.6361, allocations: 15.44 kB / 0.6665 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.6362, allocations: 28.05 kB / 0.6665 GB, free: 11.81 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.6363, allocations: 31.56 kB / 0.6666 GB, free: 11.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.6364, allocations: 11.94 kB / 0.6666 GB, free: 11.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001671/0.6365, allocations: 179.4 kB / 0.6667 GB, free: 11.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6366, allocations: 0 / 0.6667 GB, free: 11.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000342/0.6369, allocations: 71.95 kB / 0.6668 GB, free: 11.55 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) * 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.0009936/0.6379, allocations: 0.9585 MB / 0.6677 GB, free: 10.65 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0003482/0.6383, allocations: 269.1 kB / 0.668 GB, free: 10.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6383, allocations: 0 / 0.668 GB, free: 10.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.6385, allocations: 166.6 kB / 0.6682 GB, free: 10.31 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.6387, allocations: 23.61 kB / 0.6682 GB, free: 10.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.6399, allocations: 424.3 kB / 0.6686 GB, free: 9.891 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.6403, allocations: 0.7594 MB / 0.6693 GB, free: 9.109 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 9.304e-05/0.6404, allocations: 17.19 kB / 0.6693 GB, free: 9.094 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.831e-05/0.6405, allocations: 69.34 kB / 0.6694 GB, free: 9.07 MB / 474.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6405, allocations: 0 / 0.6694 GB, free: 9.07 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.6693, allocations: 4.363 MB / 0.6737 GB, free: 4.746 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003342/0.6697, allocations: 136.3 kB / 0.6738 GB, free: 4.555 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.403, allocations: 0 / 0.6738 GB, free: 4.555 MB / 474.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)