Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5439/0.5439, allocations: 94.78 MB / 102.3 MB, free: 10.13 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009986/0.0009983, allocations: 177.3 kB / 125.6 MB, free: 11.88 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.633/1.633, allocations: 170.6 MB / 319.4 MB, free: 9.383 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001862/0.001862, allocations: 108.7 kB / 381.3 MB, free: 18.27 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.647e-05, allocations: 0 / 449.1 MB, free: 1.754 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1845, allocations: 61.53 MB / 0.4987 GB, free: 4.137 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5548/0.7394, allocations: 95.71 MB / 0.5921 GB, free: 6.238 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/0.7399, allocations: 84.44 kB / 0.5922 GB, free: 6.156 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01667/0.7566, allocations: 5.436 MB / 0.5975 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.7567, allocations: 0 / 0.5975 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.7567, allocations: 4 kB / 0.5975 GB, free: 0.8164 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008918/0.7576, allocations: 0.5315 MB / 0.5981 GB, free: 240 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.7576, allocations: 8.031 kB / 0.5981 GB, free: 232 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.534e-05/0.7577, allocations: 33.09 kB / 0.5981 GB, free: 200 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.7582, allocations: 272.1 kB / 0.5984 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.7583, allocations: 8 kB / 0.5984 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.7583, allocations: 4 kB / 0.5984 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002442/0.7586, allocations: 120.2 kB / 0.5985 GB, free: 15.76 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.7588, allocations: 159.3 kB / 0.5986 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.7589, allocations: 0 / 0.5986 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.7589, allocations: 7.938 kB / 0.5986 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.7589, allocations: 2.062 kB / 0.5986 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009093/0.7598, allocations: 0.4973 MB / 0.5991 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002611/0.7601, allocations: 138.6 kB / 0.5993 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.7602, allocations: 88.92 kB / 0.5993 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.7603, allocations: 96 / 0.5993 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.7605, allocations: 164.9 kB / 0.5995 GB, free: 14.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.7606, allocations: 3.188 kB / 0.5995 GB, free: 14.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006142/0.7612, allocations: 273.3 kB / 0.5998 GB, free: 14.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.7613, allocations: 81.11 kB / 0.5998 GB, free: 14.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002392/0.7615, allocations: 216.4 kB / 0.6 GB, free: 14.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.7616, allocations: 25.7 kB / 0.6001 GB, free: 14.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.7617, allocations: 160.1 kB / 0.6002 GB, free: 13.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.7618, allocations: 35.55 kB / 0.6003 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/0.7618, allocations: 0 / 0.6003 GB, free: 13.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.762, allocations: 330.8 kB / 0.6006 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.7621, allocations: 83.97 kB / 0.6007 GB, free: 13.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.7622, allocations: 93.67 kB / 0.6007 GB, free: 13.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.7624, allocations: 85.05 kB / 0.6008 GB, free: 13.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7624, allocations: 0 / 0.6008 GB, free: 13.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004361/0.7628, allocations: 281.8 kB / 0.6011 GB, free: 12.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.345e-05/0.7629, allocations: 37.8 kB / 0.6011 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.7629, allocations: 12.45 kB / 0.6011 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.7629, allocations: 2.391 kB / 0.6011 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.7631, allocations: 28.02 kB / 0.6012 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.7631, allocations: 0 / 0.6012 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.7632, allocations: 23.98 kB / 0.6012 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.7633, allocations: 12.69 kB / 0.6012 GB, free: 12.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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.0001447/0.7634, allocations: 150.9 kB / 0.6013 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.087e-05/0.7635, allocations: 19.72 kB / 0.6014 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.141e-05/0.7635, allocations: 29.95 kB / 0.6014 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.7636, allocations: 7.891 kB / 0.6014 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.7636, allocations: 0 / 0.6014 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.7636, allocations: 0 / 0.6014 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.7638, allocations: 242.1 kB / 0.6016 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.7639, allocations: 2.25 kB / 0.6016 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.764, allocations: 23.98 kB / 0.6017 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.764, allocations: 0 / 0.6017 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.764, allocations: 4 kB / 0.6017 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.764, allocations: 0 / 0.6017 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.764, allocations: 0.6562 kB / 0.6017 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007096/0.7648, allocations: 436.6 kB / 0.6021 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.07e-05/0.7649, allocations: 96.88 kB / 0.6022 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.7649, allocations: 4 kB / 0.6022 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.765, allocations: 24.05 kB / 0.6022 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.7651, allocations: 23.95 kB / 0.6022 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.892e-05/0.7652, allocations: 17.58 kB / 0.6022 GB, free: 11.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001621/0.7654, allocations: 176.4 kB / 0.6024 GB, free: 11.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7654, allocations: 0 / 0.6024 GB, free: 11.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002738/0.7656, allocations: 59.78 kB / 0.6025 GB, free: 11.48 MB / 426.7 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: 7 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent) * Number of discrete states: 7 (ySet.last,ySet.nextEvent,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.0002523/0.7659, allocations: 123.2 kB / 0.6026 GB, free: 11.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.7663, allocations: 227.3 kB / 0.6028 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.7663, allocations: 0 / 0.6028 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.7665, allocations: 143.3 kB / 0.6029 GB, free: 10.96 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.7668, allocations: 20.42 kB / 0.603 GB, free: 10.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008707/0.7677, allocations: 322.2 kB / 0.6033 GB, free: 10.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.7681, allocations: 0.7548 MB / 0.604 GB, free: 9.836 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 7.028e-05/0.7682, allocations: 4.891 kB / 0.604 GB, free: 9.824 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.158e-05/0.7683, allocations: 15.42 kB / 0.604 GB, free: 9.812 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.7683, allocations: 4 kB / 0.604 GB, free: 9.809 MB / 426.7 MB Notification: Performance of Templates: time 0.005105/0.7734, allocations: 1.851 MB / 0.6058 GB, free: 8.016 MB / 426.7 MB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)