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.5325/0.5325, allocations: 94.69 MB / 107.2 MB, free: 5.188 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.001156/0.001157, allocations: 170 kB / 130.7 MB, free: 7.559 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.585/1.585, allocations: 170.5 MB / 324.5 MB, free: 4.008 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.001609/0.001609, allocations: 110 kB / 386.6 MB, free: 16.26 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.194e-05/5.196e-05, allocations: 4 kB / 456 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5292/0.5293, allocations: 61.51 MB / 0.5054 GB, free: 49.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.16/0.6893, allocations: 96.38 MB / 0.5995 GB, free: 15.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/0.6897, allocations: 83.61 kB / 0.5996 GB, free: 15.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01656/0.7063, allocations: 5.471 MB / 0.6049 GB, free: 9.758 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.7064, allocations: 0 / 0.6049 GB, free: 9.758 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.7064, allocations: 5.875 kB / 0.6049 GB, free: 9.754 MB / 426.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.0008453/0.7073, allocations: 0.5355 MB / 0.6055 GB, free: 9.164 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.7073, allocations: 8.031 kB / 0.6055 GB, free: 9.156 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.531e-05/0.7074, allocations: 31.72 kB / 0.6055 GB, free: 9.125 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.7079, allocations: 262.4 kB / 0.6057 GB, free: 8.832 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.708, allocations: 16.19 kB / 0.6058 GB, free: 8.816 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.708, allocations: 15.91 kB / 0.6058 GB, free: 8.801 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.7084, allocations: 178.2 kB / 0.6059 GB, free: 8.629 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.7084, allocations: 0 / 0.6059 GB, free: 8.629 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.7084, allocations: 4 kB / 0.6059 GB, free: 8.625 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.7084, allocations: 4 kB / 0.6059 GB, free: 8.621 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002231/0.7087, allocations: 124.4 kB / 0.6061 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009069/0.7096, allocations: 0.5439 MB / 0.6066 GB, free: 7.906 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002608/0.7099, allocations: 146.7 kB / 0.6067 GB, free: 7.754 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.71, allocations: 96.78 kB / 0.6068 GB, free: 7.656 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.7101, allocations: 0 / 0.6068 GB, free: 7.656 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.7103, allocations: 173 kB / 0.607 GB, free: 7.469 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 3.506e-06/0.7103, allocations: 0.7656 kB / 0.607 GB, free: 7.469 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005608/0.7109, allocations: 299 kB / 0.6073 GB, free: 7.164 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/0.711, allocations: 85.11 kB / 0.6074 GB, free: 7.062 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.7112, allocations: 238.8 kB / 0.6076 GB, free: 6.824 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.7113, allocations: 33.7 kB / 0.6076 GB, free: 6.785 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.7114, allocations: 147.8 kB / 0.6078 GB, free: 6.637 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.7115, allocations: 32.75 kB / 0.6078 GB, free: 6.605 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.378e-06/0.7115, allocations: 4 kB / 0.6078 GB, free: 6.602 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.7116, allocations: 334.8 kB / 0.6081 GB, free: 6.266 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.7118, allocations: 79.97 kB / 0.6082 GB, free: 6.188 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.712, allocations: 99.56 kB / 0.6083 GB, free: 6.086 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.7121, allocations: 109.7 kB / 0.6084 GB, free: 5.973 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.7121, allocations: 0 / 0.6084 GB, free: 5.973 MB / 426.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004824/0.7126, allocations: 331.5 kB / 0.6087 GB, free: 5.641 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.7127, allocations: 45.72 kB / 0.6088 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.7127, allocations: 0 / 0.6088 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.7127, allocations: 0 / 0.6088 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.7129, allocations: 23.98 kB / 0.6088 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.7129, allocations: 4.391 kB / 0.6088 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.713, allocations: 31.92 kB / 0.6088 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.7131, allocations: 15.98 kB / 0.6088 GB, free: 5.52 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.0001241/0.7132, allocations: 146.4 kB / 0.609 GB, free: 5.363 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.953e-05/0.7133, allocations: 27.67 kB / 0.609 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.028e-05/0.7133, allocations: 29.95 kB / 0.609 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.7133, allocations: 0 / 0.609 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.7133, allocations: 4 kB / 0.609 GB, free: 5.309 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.7134, allocations: 0 / 0.609 GB, free: 5.309 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.7136, allocations: 285.4 kB / 0.6093 GB, free: 4.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.7137, allocations: 4 kB / 0.6093 GB, free: 4.977 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.7138, allocations: 20 kB / 0.6093 GB, free: 4.957 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.7138, allocations: 1.641 kB / 0.6093 GB, free: 4.957 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.7138, allocations: 11.94 kB / 0.6093 GB, free: 4.945 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.7138, allocations: 3.938 kB / 0.6093 GB, free: 4.941 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7138, allocations: 0 / 0.6093 GB, free: 4.941 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007327/0.7146, allocations: 476 kB / 0.6098 GB, free: 4.453 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.565e-05/0.7147, allocations: 100.8 kB / 0.6099 GB, free: 4.336 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.513e-05/0.7147, allocations: 4 kB / 0.6099 GB, free: 4.332 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.7149, allocations: 23.94 kB / 0.6099 GB, free: 4.309 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.715, allocations: 23.95 kB / 0.6099 GB, free: 4.285 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.715, allocations: 12 kB / 0.6099 GB, free: 4.273 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001987/0.7152, allocations: 191.2 kB / 0.6101 GB, free: 4.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7152, allocations: 4 kB / 0.6101 GB, free: 4.086 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003045/0.7155, allocations: 63.83 kB / 0.6102 GB, free: 4.023 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.0002926/0.7158, allocations: 124.3 kB / 0.6103 GB, free: 3.895 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003697/0.7162, allocations: 227.4 kB / 0.6105 GB, free: 3.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.7162, allocations: 0 / 0.6105 GB, free: 3.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.7164, allocations: 153 kB / 0.6107 GB, free: 3.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002606/0.7167, allocations: 26.92 kB / 0.6107 GB, free: 3.477 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008521/0.7175, allocations: 331.1 kB / 0.611 GB, free: 3.141 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.718, allocations: 0.7555 MB / 0.6118 GB, free: 2.359 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 6.748e-05/0.7181, allocations: 8.766 kB / 0.6118 GB, free: 2.352 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.631e-05/0.7181, allocations: 15.44 kB / 0.6118 GB, free: 2.336 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/0.7181, allocations: 4 kB / 0.6118 GB, free: 2.332 MB / 426.7 MB Notification: Performance of Templates: time 0.005571/0.7237, allocations: 2.011 MB / 0.6137 GB, free: 400 kB / 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)