Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.769/1.769, allocations: 288.2 MB / 303.2 MB, free: 8.156 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.001176/0.001176, allocations: 179.8 kB / 371.8 MB, free: 10.28 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.893/1.893, allocations: 205.4 MB / 0.6305 GB, free: 10.02 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.0008689/0.0008692, allocations: 93.61 kB / 0.7439 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004319/0.0004322, allocations: 14.38 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2799, allocations: 115.3 MB / 0.9795 GB, free: 27.63 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9426/1.223, allocations: 141.2 MB / 1.117 GB, free: 16.38 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003598/1.223, allocations: 83.14 kB / 1.117 GB, free: 16.38 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01756/1.241, allocations: 5.836 MB / 1.123 GB, free: 31.73 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.588e-06/1.241, allocations: 0 / 1.123 GB, free: 31.73 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.685e-05/1.241, allocations: 3.906 kB / 1.123 GB, free: 31.73 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.001413/1.242, allocations: 0.6015 MB / 1.124 GB, free: 31.25 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.178e-05/1.242, allocations: 15.55 kB / 1.124 GB, free: 31.24 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/1.242, allocations: 44.61 kB / 1.124 GB, free: 31.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/1.243, allocations: 30.88 kB / 1.124 GB, free: 31.19 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006455/1.243, allocations: 299.1 kB / 1.124 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/1.243, allocations: 10.84 kB / 1.124 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.433e-05/1.243, allocations: 14.94 kB / 1.124 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005894/1.244, allocations: 254.5 kB / 1.124 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/1.244, allocations: 2.906 kB / 1.124 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/1.244, allocations: 9.438 kB / 1.124 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/1.244, allocations: 3.812 kB / 1.124 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003766/1.244, allocations: 163.4 kB / 1.125 GB, free: 30.86 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/1.246, allocations: 0.7398 MB / 1.125 GB, free: 30.39 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/1.247, allocations: 211.9 kB / 1.125 GB, free: 30.37 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/1.247, allocations: 7.156 kB / 1.125 GB, free: 30.37 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004378/1.247, allocations: 210.7 kB / 1.126 GB, free: 30.28 MB / 0.698 GB Notification: Performance of pre-optimization done (n=15): time 2.655e-06/1.247, allocations: 0 / 1.126 GB, free: 30.28 MB / 0.698 GB Notification: Performance of matching and sorting (n=15): time 0.00119/1.248, allocations: 0.5568 MB / 1.126 GB, free: 30.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/1.248, allocations: 132.4 kB / 1.126 GB, free: 29.95 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/1.249, allocations: 251.4 kB / 1.127 GB, free: 29.85 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.248e-05/1.249, allocations: 36.98 kB / 1.127 GB, free: 29.81 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/1.249, allocations: 162.4 kB / 1.127 GB, free: 29.71 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/1.249, allocations: 41.66 kB / 1.127 GB, free: 29.68 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.427e-05/1.249, allocations: 3.844 kB / 1.127 GB, free: 29.68 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002004/1.249, allocations: 343.1 kB / 1.127 GB, free: 29.37 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/1.25, allocations: 113.2 kB / 1.127 GB, free: 29.36 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/1.25, allocations: 163.9 kB / 1.127 GB, free: 29.31 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002551/1.25, allocations: 142.6 kB / 1.128 GB, free: 29.28 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.25, allocations: 0 / 1.128 GB, free: 29.28 MB / 0.698 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007339/1.251, allocations: 416.8 kB / 1.128 GB, free: 29.19 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/1.251, allocations: 36.22 kB / 1.128 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/1.251, allocations: 0 / 1.128 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/1.251, allocations: 3.812 kB / 1.128 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/1.251, allocations: 28.88 kB / 1.128 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/1.251, allocations: 0 / 1.128 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/1.251, allocations: 43.17 kB / 1.128 GB, free: 29.15 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/1.251, allocations: 11 kB / 1.128 GB, free: 29.15 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.00023/1.252, allocations: 193.6 kB / 1.128 GB, free: 29 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.953e-05/1.252, allocations: 32.56 kB / 1.128 GB, free: 28.98 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.793e-05/1.252, allocations: 27.28 kB / 1.128 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/1.252, allocations: 0 / 1.128 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/1.252, allocations: 4 kB / 1.128 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/1.252, allocations: 6.594 kB / 1.128 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/1.252, allocations: 303.9 kB / 1.129 GB, free: 28.77 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/1.252, allocations: 0 / 1.129 GB, free: 28.77 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/1.252, allocations: 17.14 kB / 1.129 GB, free: 28.77 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/1.252, allocations: 0 / 1.129 GB, free: 28.77 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/1.252, allocations: 13.11 kB / 1.129 GB, free: 28.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/1.252, allocations: 3.844 kB / 1.129 GB, free: 28.77 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.252, allocations: 0 / 1.129 GB, free: 28.77 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/1.253, allocations: 0.5916 MB / 1.129 GB, free: 28.64 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.941e-05/1.254, allocations: 102.4 kB / 1.129 GB, free: 28.54 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.398e-05/1.254, allocations: 7.094 kB / 1.129 GB, free: 28.54 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/1.254, allocations: 32.09 kB / 1.129 GB, free: 28.53 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/1.254, allocations: 33.03 kB / 1.129 GB, free: 28.53 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/1.254, allocations: 13.19 kB / 1.129 GB, free: 28.53 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000211/1.254, allocations: 198 kB / 1.13 GB, free: 28.45 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.61e-07/1.254, allocations: 0 / 1.13 GB, free: 28.45 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003898/1.255, allocations: 64.44 kB / 1.13 GB, free: 28.44 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.001443/1.256, allocations: 1.074 MB / 1.131 GB, free: 27.79 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006278/1.257, allocations: 317.8 kB / 1.131 GB, free: 27.72 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.257, allocations: 4.25 kB / 1.131 GB, free: 27.71 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002923/1.257, allocations: 192.3 kB / 1.131 GB, free: 27.65 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/1.257, allocations: 33.59 kB / 1.131 GB, free: 27.64 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/1.261, allocations: 2.113 MB / 1.133 GB, free: 26.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/1.261, allocations: 0.7592 MB / 1.134 GB, free: 25.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001011/1.261, allocations: 13.95 kB / 1.134 GB, free: 25.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/1.261, allocations: 67.31 kB / 1.134 GB, free: 25.89 MB / 0.698 GB Notification: Performance of SimCode: time 4.51e-07/1.261, allocations: 4 kB / 1.134 GB, free: 25.89 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01868/1.28, allocations: 4.919 MB / 1.139 GB, free: 23.77 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/1.28, allocations: 198.1 kB / 1.139 GB, free: 23.52 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.245/3.526, allocations: 0 / 1.139 GB, free: 23.52 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)