Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 198.2 kB / 16.64 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.898/1.898, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 71.61 kB / 0.6723 GB, free: 25.84 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2509, allocations: 114.6 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003538/0.2545, allocations: 1.955 MB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.2559, allocations: 0.7527 MB / 0.7868 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.256, allocations: 0 / 0.7868 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.2563, allocations: 91.62 kB / 0.7869 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.2564, allocations: 87.58 kB / 0.7869 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005865/0.257, allocations: 186 kB / 0.7871 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003063/0.2573, allocations: 271.2 kB / 0.7874 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.2575, allocations: 69.83 kB / 0.7874 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.2576, allocations: 107.7 kB / 0.7875 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.2579, allocations: 159.4 kB / 0.7877 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.2579, allocations: 20 kB / 0.7877 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.2581, allocations: 91.94 kB / 0.7878 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.791e-05/0.2582, allocations: 59.83 kB / 0.7879 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.2583, allocations: 111.3 kB / 0.788 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003663/0.2587, allocations: 307 kB / 0.7883 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.2587, allocations: 0 / 0.7883 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2587, allocations: 0 / 0.7883 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.2587, allocations: 0 / 0.7883 GB, free: 8.492 MB / 0.6075 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.0008308/0.2595, allocations: 0.5741 MB / 0.7888 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.2596, allocations: 19.97 kB / 0.7888 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.2597, allocations: 32.56 kB / 0.7889 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004714/0.2601, allocations: 298.9 kB / 0.7892 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.2602, allocations: 16.31 kB / 0.7892 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.2602, allocations: 20.3 kB / 0.7892 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003801/0.2606, allocations: 231.3 kB / 0.7894 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2606, allocations: 3.984 kB / 0.7894 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.2606, allocations: 4 kB / 0.7894 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2607, allocations: 4 kB / 0.7894 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.2609, allocations: 132.3 kB / 0.7895 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008422/0.2618, allocations: 0.6807 MB / 0.7902 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.2621, allocations: 170.4 kB / 0.7904 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.2623, allocations: 96.95 kB / 0.7905 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.2623, allocations: 0 / 0.7905 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.2626, allocations: 177.1 kB / 0.7906 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.2626, allocations: 0 / 0.7906 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006618/0.2633, allocations: 374.1 kB / 0.791 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.933e-05/0.2634, allocations: 132.5 kB / 0.7911 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.2636, allocations: 282.5 kB / 0.7914 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.2637, allocations: 33.7 kB / 0.7914 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.2638, allocations: 156.2 kB / 0.7916 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.2638, allocations: 43.44 kB / 0.7916 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/0.2639, allocations: 41.7 kB / 0.7917 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.2641, allocations: 346.8 kB / 0.792 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.2642, allocations: 83.89 kB / 0.7921 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.2644, allocations: 135.5 kB / 0.7922 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.2648, allocations: 249.5 kB / 0.7924 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2648, allocations: 0 / 0.7924 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005027/0.2653, allocations: 330.9 kB / 0.7927 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/0.2653, allocations: 37.69 kB / 0.7928 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.2653, allocations: 4 kB / 0.7928 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.2654, allocations: 96 / 0.7928 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.2655, allocations: 31.92 kB / 0.7928 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.2655, allocations: 0 / 0.7928 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.2656, allocations: 31.83 kB / 0.7928 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.2657, allocations: 7.984 kB / 0.7929 GB, free: 3.453 MB / 0.6075 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 (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.0001727/0.2659, allocations: 195.2 kB / 0.793 GB, free: 3.25 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.73e-05/0.2659, allocations: 23.72 kB / 0.7931 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.529e-05/0.266, allocations: 33.83 kB / 0.7931 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.266, allocations: 4 kB / 0.7931 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.433e-06/0.266, allocations: 0 / 0.7931 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.266, allocations: 4.031 kB / 0.7931 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.2662, allocations: 297.2 kB / 0.7934 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.2663, allocations: 0 / 0.7934 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.2664, allocations: 15.98 kB / 0.7934 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2664, allocations: 0 / 0.7934 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.2664, allocations: 8 kB / 0.7934 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2664, allocations: 0 / 0.7934 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2664, allocations: 0 / 0.7934 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007092/0.2671, allocations: 470.3 kB / 0.7939 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.2672, allocations: 100.8 kB / 0.794 GB, free: 2.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.143e-05/0.2672, allocations: 8 kB / 0.794 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2674, allocations: 11.98 kB / 0.794 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.712e-05/0.2674, allocations: 31.94 kB / 0.794 GB, free: 2.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.23e-05/0.2675, allocations: 12.05 kB / 0.794 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001851/0.2677, allocations: 205.9 kB / 0.7942 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2677, allocations: 0 / 0.7942 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002879/0.268, allocations: 60.03 kB / 0.7943 GB, free: 1.898 MB / 0.6075 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 (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.000193/0.2682, allocations: 130.2 kB / 0.7944 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004866/0.2687, allocations: 295.4 kB / 0.7947 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2687, allocations: 0 / 0.7947 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002276/0.2689, allocations: 187.3 kB / 0.7949 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.2692, allocations: 28.55 kB / 0.7949 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009699/0.2702, allocations: 481 kB / 0.7953 GB, free: 0.7461 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.2706, allocations: 0.7514 MB / 0.7961 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.88e-05/0.2707, allocations: 17.55 kB / 0.7961 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.76e-05/0.2707, allocations: 19.44 kB / 0.7961 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of SimCode: time 3.51e-07/0.2707, allocations: 0 / 0.7961 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of Templates: time 0.006224/0.2769, allocations: 2.82 MB / 0.7989 GB, free: 13.13 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)