Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.376/1.376, allocations: 252 MB / 267.9 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 189.2 kB / 327.6 MB, free: 2.164 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.892/1.892, allocations: 205.4 MB / 0.5785 GB, free: 20.15 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008756/0.0008755, allocations: 96.69 kB / 0.6831 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004049, allocations: 14.5 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2281, allocations: 106.3 MB / 0.9012 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1693/0.3975, allocations: 134.9 MB / 1.033 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.3978, allocations: 83.94 kB / 1.033 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01635/0.4141, allocations: 5.866 MB / 1.039 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.424e-06/0.4142, allocations: 0 / 1.039 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.512e-05/0.4142, allocations: 4 kB / 1.039 GB, free: 2.625 MB / 0.6823 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.00103/0.4153, allocations: 0.5882 MB / 1.039 GB, free: 1.98 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.4153, allocations: 11.97 kB / 1.039 GB, free: 1.969 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.4154, allocations: 32.56 kB / 1.039 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.416, allocations: 310.7 kB / 1.04 GB, free: 1.598 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.416, allocations: 12.31 kB / 1.04 GB, free: 1.586 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.4161, allocations: 20.28 kB / 1.04 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.4166, allocations: 263.7 kB / 1.04 GB, free: 1.281 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.4166, allocations: 192 / 1.04 GB, free: 1.281 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.4166, allocations: 11.94 kB / 1.04 GB, free: 1.27 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.4167, allocations: 3.938 kB / 1.04 GB, free: 1.266 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.417, allocations: 160.3 kB / 1.04 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.418, allocations: 0.7315 MB / 1.041 GB, free: 328 kB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004707/0.4185, allocations: 222.6 kB / 1.041 GB, free: 96 kB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.4188, allocations: 128.9 kB / 1.041 GB, free: 15.96 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.4188, allocations: 7.938 kB / 1.041 GB, free: 15.95 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003256/0.4191, allocations: 201 kB / 1.041 GB, free: 15.74 MB / 0.698 GB Notification: Performance of pre-optimization done (n=15): time 1.863e-06/0.4192, allocations: 0 / 1.041 GB, free: 15.74 MB / 0.698 GB Notification: Performance of matching and sorting (n=15): time 0.0009739/0.4201, allocations: 498.1 kB / 1.042 GB, free: 15.24 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.4202, allocations: 136.5 kB / 1.042 GB, free: 15.08 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.4205, allocations: 278.7 kB / 1.042 GB, free: 14.79 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.4205, allocations: 29.7 kB / 1.042 GB, free: 14.75 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.4207, allocations: 156.2 kB / 1.042 GB, free: 14.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.541e-05/0.4207, allocations: 43.45 kB / 1.043 GB, free: 14.55 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.4207, allocations: 0 / 1.043 GB, free: 14.55 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4209, allocations: 338.8 kB / 1.043 GB, free: 14.21 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.4211, allocations: 119.9 kB / 1.043 GB, free: 14.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.4213, allocations: 168.6 kB / 1.043 GB, free: 13.92 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00045/0.4218, allocations: 302.5 kB / 1.043 GB, free: 13.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4218, allocations: 4 kB / 1.043 GB, free: 13.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006831/0.4225, allocations: 409.1 kB / 1.044 GB, free: 13.18 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.4226, allocations: 37.78 kB / 1.044 GB, free: 13.14 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.4226, allocations: 4 kB / 1.044 GB, free: 13.14 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.4226, allocations: 4 kB / 1.044 GB, free: 13.13 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.4228, allocations: 35.92 kB / 1.044 GB, free: 13.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.4228, allocations: 4 kB / 1.044 GB, free: 13.09 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.423, allocations: 43.81 kB / 1.044 GB, free: 13.05 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.423, allocations: 12 kB / 1.044 GB, free: 13.04 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.0001879/0.4232, allocations: 202.3 kB / 1.044 GB, free: 12.83 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.4233, allocations: 23.72 kB / 1.044 GB, free: 12.81 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.553e-05/0.4233, allocations: 29.83 kB / 1.044 GB, free: 12.78 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.4233, allocations: 0 / 1.044 GB, free: 12.78 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.4233, allocations: 0 / 1.044 GB, free: 12.78 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.4233, allocations: 0 / 1.044 GB, free: 12.78 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.4236, allocations: 305.4 kB / 1.044 GB, free: 12.43 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4237, allocations: 0 / 1.044 GB, free: 12.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.4238, allocations: 19.98 kB / 1.044 GB, free: 12.41 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.4238, allocations: 0 / 1.044 GB, free: 12.41 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.4238, allocations: 8.094 kB / 1.044 GB, free: 12.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4238, allocations: 7.938 kB / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4238, allocations: 0 / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009898/0.4248, allocations: 0.599 MB / 1.045 GB, free: 11.77 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.972e-05/0.4249, allocations: 92.86 kB / 1.045 GB, free: 11.66 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.425, allocations: 11.98 kB / 1.045 GB, free: 11.65 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.4251, allocations: 27.98 kB / 1.045 GB, free: 11.62 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.599e-05/0.4252, allocations: 31.94 kB / 1.045 GB, free: 11.59 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.4253, allocations: 15.98 kB / 1.045 GB, free: 11.58 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001915/0.4255, allocations: 202 kB / 1.045 GB, free: 11.38 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4255, allocations: 0 / 1.045 GB, free: 11.38 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003253/0.4258, allocations: 68.05 kB / 1.046 GB, free: 11.32 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.0002461/0.4261, allocations: 133.2 kB / 1.046 GB, free: 11.18 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005254/0.4266, allocations: 327.1 kB / 1.046 GB, free: 10.84 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4266, allocations: 0 / 1.046 GB, free: 10.84 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002519/0.4269, allocations: 195.5 kB / 1.046 GB, free: 10.64 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.4272, allocations: 36.48 kB / 1.046 GB, free: 10.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.4282, allocations: 0.5185 MB / 1.047 GB, free: 10.06 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.4286, allocations: 0.7517 MB / 1.047 GB, free: 9.285 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.404e-05/0.4287, allocations: 21.36 kB / 1.047 GB, free: 9.262 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.4287, allocations: 15.44 kB / 1.047 GB, free: 9.246 MB / 0.698 GB Notification: Performance of SimCode: time 2.41e-07/0.4287, allocations: 0 / 1.047 GB, free: 9.246 MB / 0.698 GB Notification: Performance of Templates: time 0.006084/0.4348, allocations: 2.542 MB / 1.05 GB, free: 6.727 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)