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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 103.9 kB / 16.27 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 182.7 kB / 17.19 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7254/0.7254, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63.91 kB / 0.4912 GB, free: 7.332 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3301, allocations: 77.92 MB / 0.5673 GB, free: 32.72 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002992/0.3331, allocations: 1.936 MB / 0.5692 GB, free: 31.37 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3342, allocations: 0.7069 MB / 0.5699 GB, free: 30.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.3343, allocations: 2.438 kB / 0.5699 GB, free: 30.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002451/0.3346, allocations: 81.94 kB / 0.5699 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.3347, allocations: 87.59 kB / 0.57 GB, free: 30.84 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005268/0.3352, allocations: 189.8 kB / 0.5702 GB, free: 30.74 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000267/0.3355, allocations: 266.8 kB / 0.5705 GB, free: 30.62 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.3357, allocations: 73.06 kB / 0.5705 GB, free: 30.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.3358, allocations: 114.8 kB / 0.5706 GB, free: 30.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.336, allocations: 148.6 kB / 0.5708 GB, free: 30.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.3361, allocations: 20.84 kB / 0.5708 GB, free: 30.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.3362, allocations: 91.58 kB / 0.5709 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.968e-05/0.3363, allocations: 64.31 kB / 0.5709 GB, free: 30.44 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.894e-05/0.3364, allocations: 106.9 kB / 0.5711 GB, free: 30.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003365/0.3368, allocations: 302.3 kB / 0.5713 GB, free: 30.24 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3368, allocations: 1.062 kB / 0.5713 GB, free: 30.24 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3368, allocations: 1.156 kB / 0.5713 GB, free: 30.24 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3368, allocations: 0 / 0.5713 GB, free: 30.24 MB / 446.1 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.0007509/0.3375, allocations: 0.5812 MB / 0.5719 GB, free: 29.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3376, allocations: 11.23 kB / 0.5719 GB, free: 29.73 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.628e-05/0.3376, allocations: 46.69 kB / 0.572 GB, free: 29.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.3377, allocations: 35.02 kB / 0.572 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.3381, allocations: 297.7 kB / 0.5723 GB, free: 29.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.3381, allocations: 15.09 kB / 0.5723 GB, free: 29.4 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.3382, allocations: 13.81 kB / 0.5723 GB, free: 29.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.3385, allocations: 234.5 kB / 0.5725 GB, free: 29.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3385, allocations: 0 / 0.5725 GB, free: 29.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.3385, allocations: 6.344 kB / 0.5725 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.3386, allocations: 3.344 kB / 0.5725 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.3388, allocations: 136.5 kB / 0.5727 GB, free: 29.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007119/0.3395, allocations: 0.6758 MB / 0.5733 GB, free: 28.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3399, allocations: 166.6 kB / 0.5735 GB, free: 28.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.3401, allocations: 107.8 kB / 0.5736 GB, free: 28.56 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.3401, allocations: 1.344 kB / 0.5736 GB, free: 28.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.3404, allocations: 167.6 kB / 0.5738 GB, free: 28.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 2.294e-06/0.3404, allocations: 1.812 kB / 0.5738 GB, free: 28.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006272/0.341, allocations: 381.1 kB / 0.5741 GB, free: 28.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.3411, allocations: 133.3 kB / 0.5742 GB, free: 28.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/0.3413, allocations: 281.5 kB / 0.5745 GB, free: 28.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.3413, allocations: 28.98 kB / 0.5745 GB, free: 27.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.093e-05/0.3414, allocations: 159.7 kB / 0.5747 GB, free: 27.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/0.3415, allocations: 37.55 kB / 0.5747 GB, free: 27.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.294e-05/0.3415, allocations: 40.89 kB / 0.5748 GB, free: 27.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.458e-05/0.3416, allocations: 344.9 kB / 0.5751 GB, free: 27.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.3418, allocations: 82.47 kB / 0.5752 GB, free: 27.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.342, allocations: 131.2 kB / 0.5753 GB, free: 27.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.3423, allocations: 244.4 kB / 0.5755 GB, free: 27.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3423, allocations: 1.156 kB / 0.5755 GB, free: 27.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004698/0.3428, allocations: 340.9 kB / 0.5759 GB, free: 27.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.3428, allocations: 36.14 kB / 0.5759 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3428, allocations: 1 kB / 0.5759 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3428, allocations: 2.312 kB / 0.5759 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.343, allocations: 21.72 kB / 0.5759 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.343, allocations: 2.156 kB / 0.5759 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.3431, allocations: 33.31 kB / 0.576 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.3431, allocations: 7.5 kB / 0.576 GB, free: 27.03 MB / 446.1 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001482/0.3433, allocations: 198.4 kB / 0.5762 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.059e-05/0.3433, allocations: 30.61 kB / 0.5762 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.35e-05/0.3434, allocations: 26.23 kB / 0.5762 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3434, allocations: 1.781 kB / 0.5762 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3434, allocations: 1.719 kB / 0.5762 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3434, allocations: 1.891 kB / 0.5762 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/0.3437, allocations: 292.9 kB / 0.5765 GB, free: 26.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3437, allocations: 1.094 kB / 0.5765 GB, free: 26.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.3438, allocations: 15.03 kB / 0.5765 GB, free: 26.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3438, allocations: 1.938 kB / 0.5765 GB, free: 26.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.3438, allocations: 8.234 kB / 0.5765 GB, free: 26.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3438, allocations: 1.328 kB / 0.5765 GB, free: 26.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3438, allocations: 1.562 kB / 0.5765 GB, free: 26.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006422/0.3445, allocations: 472 kB / 0.577 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.982e-05/0.3445, allocations: 101.1 kB / 0.5771 GB, free: 26.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.3446, allocations: 6.703 kB / 0.5771 GB, free: 26.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.3447, allocations: 15.77 kB / 0.5771 GB, free: 26.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.367e-05/0.3448, allocations: 23.52 kB / 0.5771 GB, free: 26.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.3448, allocations: 5.625 kB / 0.5771 GB, free: 26.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.345, allocations: 203 kB / 0.5773 GB, free: 26.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.345, allocations: 6.031 kB / 0.5773 GB, free: 26.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.3452, allocations: 60.12 kB / 0.5774 GB, free: 26.12 MB / 446.1 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009083/0.3462, allocations: 1.031 MB / 0.5784 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004533/0.3466, allocations: 304.7 kB / 0.5787 GB, free: 25.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3466, allocations: 1.938 kB / 0.5787 GB, free: 25.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.3468, allocations: 182 kB / 0.5788 GB, free: 25.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.3471, allocations: 35.61 kB / 0.5789 GB, free: 25.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.3502, allocations: 2.778 MB / 0.5816 GB, free: 23.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001718/0.3503, allocations: 0.7458 MB / 0.5823 GB, free: 22.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.434e-05/0.3504, allocations: 18.14 kB / 0.5823 GB, free: 22.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.904e-05/0.3505, allocations: 77.05 kB / 0.5824 GB, free: 22.64 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3505, allocations: 4.875 kB / 0.5824 GB, free: 22.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02436/0.3749, allocations: 5.326 MB / 0.5876 GB, free: 20.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.708/8.083, allocations: 11.62 kB / 0.5876 GB, free: 20.33 MB / 446.1 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/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)