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.001166/0.001166, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002041/0.002041, allocations: 194.8 kB / 16.14 MB, free: 6.703 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.536/1.536, allocations: 205.1 MB / 222 MB, free: 4.766 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.721/1.721, allocations: 292.2 MB / 0.5484 GB, free: 13.68 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.001321/0.001321, allocations: 61.42 kB / 0.6708 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2469, allocations: 114.6 MB / 0.7827 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003233/0.2502, allocations: 2.008 MB / 0.7846 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2515, allocations: 0.761 MB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.2516, allocations: 0 / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002263/0.2518, allocations: 79.75 kB / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.252, allocations: 79.7 kB / 0.7855 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.2525, allocations: 162.5 kB / 0.7857 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.2527, allocations: 235.5 kB / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.2529, allocations: 77.77 kB / 0.786 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.253, allocations: 95.66 kB / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.2532, allocations: 147.5 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.2532, allocations: 8 kB / 0.7862 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.2533, allocations: 75.94 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.18e-05/0.2534, allocations: 51.81 kB / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.194e-05/0.2535, allocations: 99.28 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.2538, allocations: 279.2 kB / 0.7867 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2538, allocations: 4 kB / 0.7867 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2538, allocations: 0 / 0.7867 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2538, allocations: 0 / 0.7867 GB, free: 9.848 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.0008067/0.2546, allocations: 0.5858 MB / 0.7873 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2547, allocations: 8.031 kB / 0.7873 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.434e-05/0.2548, allocations: 36.56 kB / 0.7873 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.2552, allocations: 294.9 kB / 0.7876 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.2552, allocations: 12.38 kB / 0.7876 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.2552, allocations: 12.38 kB / 0.7876 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003767/0.2556, allocations: 235.2 kB / 0.7878 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2556, allocations: 0 / 0.7878 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.2557, allocations: 4 kB / 0.7879 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.2557, allocations: 4 kB / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.2559, allocations: 132.3 kB / 0.788 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007939/0.2567, allocations: 0.6807 MB / 0.7886 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.2571, allocations: 182.5 kB / 0.7888 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.2572, allocations: 92.83 kB / 0.7889 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.2573, allocations: 4 kB / 0.7889 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003324/0.2576, allocations: 171.3 kB / 0.7891 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.2576, allocations: 0 / 0.7891 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006371/0.2583, allocations: 375 kB / 0.7894 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.2583, allocations: 132.5 kB / 0.7896 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.2586, allocations: 286.5 kB / 0.7898 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.2586, allocations: 29.7 kB / 0.7899 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2587, allocations: 164.2 kB / 0.79 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.2588, allocations: 35.45 kB / 0.7901 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.747e-05/0.2588, allocations: 37.72 kB / 0.7901 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.259, allocations: 342.8 kB / 0.7904 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.2591, allocations: 91.92 kB / 0.7905 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.2593, allocations: 134.7 kB / 0.7906 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.2596, allocations: 242.8 kB / 0.7909 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2596, allocations: 0 / 0.7909 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004937/0.2601, allocations: 341.4 kB / 0.7912 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.2602, allocations: 33.7 kB / 0.7912 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2602, allocations: 3.984 kB / 0.7912 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.2602, allocations: 8.094 kB / 0.7912 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.2603, allocations: 19.98 kB / 0.7913 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.2604, allocations: 0 / 0.7913 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.2605, allocations: 31.77 kB / 0.7913 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.2605, allocations: 8 kB / 0.7913 GB, free: 4.816 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.0001682/0.2607, allocations: 188.1 kB / 0.7915 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.2607, allocations: 27.72 kB / 0.7915 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.538e-05/0.2608, allocations: 33.83 kB / 0.7915 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2608, allocations: 0 / 0.7915 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2608, allocations: 0 / 0.7915 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2608, allocations: 0 / 0.7915 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.2611, allocations: 297.3 kB / 0.7918 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2611, allocations: 4 kB / 0.7918 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.2612, allocations: 15.98 kB / 0.7918 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2612, allocations: 3.938 kB / 0.7918 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.2612, allocations: 12 kB / 0.7918 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2612, allocations: 0 / 0.7918 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2612, allocations: 4 kB / 0.7919 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007653/0.262, allocations: 461.4 kB / 0.7923 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.823e-05/0.2621, allocations: 100.8 kB / 0.7924 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.469e-05/0.2621, allocations: 8 kB / 0.7924 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2623, allocations: 15.98 kB / 0.7924 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.2624, allocations: 28.02 kB / 0.7924 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.2624, allocations: 15.88 kB / 0.7925 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001871/0.2626, allocations: 201.9 kB / 0.7926 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2626, allocations: 0 / 0.7926 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003066/0.2629, allocations: 56.03 kB / 0.7927 GB, free: 3.27 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.0002295/0.2631, allocations: 139.2 kB / 0.7928 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000487/0.2636, allocations: 294 kB / 0.7931 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.2637, allocations: 4 kB / 0.7931 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.2639, allocations: 187.4 kB / 0.7933 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.2643, allocations: 32.67 kB / 0.7933 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.2654, allocations: 0.5264 MB / 0.7938 GB, free: 2.047 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.2658, allocations: 0.7556 MB / 0.7946 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.233e-05/0.2659, allocations: 17.55 kB / 0.7946 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.063e-05/0.266, allocations: 19.44 kB / 0.7946 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of SimCode: time 8.01e-07/0.266, allocations: 0 / 0.7946 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of Templates: time 0.00614/0.2721, allocations: 2.545 MB / 0.7971 GB, free: 14.7 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)