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/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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001057, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001164/0.001164, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5743/0.5743, allocations: 95.58 MB / 366 MB, free: 10.4 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000512/0.000512, allocations: 12 kB / 446.8 MB, free: 9.41 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2856, allocations: 70.34 MB / 0.505 GB, free: 16.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001606/0.2872, allocations: 1.591 MB / 0.5066 GB, free: 14.92 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009404/0.2882, allocations: 0.7043 MB / 0.5072 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2883, allocations: 4 kB / 0.5072 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.2885, allocations: 67.77 kB / 0.5073 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.2886, allocations: 87.78 kB / 0.5074 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003988/0.289, allocations: 131.8 kB / 0.5075 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001885/0.2892, allocations: 151.7 kB / 0.5077 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.2893, allocations: 57.52 kB / 0.5077 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.2894, allocations: 91.66 kB / 0.5078 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.2896, allocations: 115.5 kB / 0.5079 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.2896, allocations: 8 kB / 0.5079 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.417e-05/0.2897, allocations: 59.94 kB / 0.508 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.528e-05/0.2898, allocations: 43.78 kB / 0.508 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.347e-05/0.2898, allocations: 69.56 kB / 0.5081 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001716/0.29, allocations: 219.5 kB / 0.5083 GB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.29, allocations: 0 / 0.5083 GB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.29, allocations: 0 / 0.5083 GB, free: 13.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.29, allocations: 0 / 0.5083 GB, free: 13.12 MB / 382.1 MB 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.0006168/0.2906, allocations: 0.5507 MB / 0.5088 GB, free: 12.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.2907, allocations: 11.98 kB / 0.5088 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.782e-05/0.2907, allocations: 23.72 kB / 0.5089 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.2911, allocations: 305.5 kB / 0.5092 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.2911, allocations: 12 kB / 0.5092 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.2912, allocations: 15.91 kB / 0.5092 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.2915, allocations: 223.1 kB / 0.5094 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2915, allocations: 4 kB / 0.5094 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.2915, allocations: 4 kB / 0.5094 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2915, allocations: 4 kB / 0.5094 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.2917, allocations: 140.3 kB / 0.5095 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006185/0.2924, allocations: 0.6808 MB / 0.5102 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.2927, allocations: 182.5 kB / 0.5104 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.2927, allocations: 0 / 0.5104 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.2929, allocations: 173.2 kB / 0.5106 GB, free: 10.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.2929, allocations: 0 / 0.5106 GB, free: 10.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005645/0.2935, allocations: 478.6 kB / 0.511 GB, free: 10.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.2936, allocations: 136.5 kB / 0.5111 GB, free: 9.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.2938, allocations: 278.7 kB / 0.5114 GB, free: 9.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.2938, allocations: 25.7 kB / 0.5114 GB, free: 9.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.412e-05/0.2939, allocations: 160.2 kB / 0.5116 GB, free: 9.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.2939, allocations: 39.45 kB / 0.5116 GB, free: 9.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/0.2939, allocations: 4 kB / 0.5116 GB, free: 9.441 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.294, allocations: 346.7 kB / 0.512 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.2941, allocations: 88.14 kB / 0.512 GB, free: 9.008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.2943, allocations: 137.5 kB / 0.5122 GB, free: 8.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.2944, allocations: 117.6 kB / 0.5123 GB, free: 8.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2944, allocations: 0 / 0.5123 GB, free: 8.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003816/0.2948, allocations: 342.1 kB / 0.5126 GB, free: 8.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.2949, allocations: 43.67 kB / 0.5126 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.2949, allocations: 3.938 kB / 0.5127 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.2949, allocations: 7.984 kB / 0.5127 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.295, allocations: 27.92 kB / 0.5127 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.295, allocations: 0 / 0.5127 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.2952, allocations: 31.83 kB / 0.5127 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.2952, allocations: 8 kB / 0.5127 GB, free: 8.266 MB / 382.1 MB 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.0001199/0.2953, allocations: 187.5 kB / 0.5129 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.2954, allocations: 27.67 kB / 0.5129 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.2954, allocations: 29.83 kB / 0.513 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2954, allocations: 4 kB / 0.513 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2954, allocations: 0 / 0.513 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2954, allocations: 3.984 kB / 0.513 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.2956, allocations: 289.4 kB / 0.5132 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2956, allocations: 0 / 0.5132 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.674e-05/0.2957, allocations: 27.92 kB / 0.5133 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2957, allocations: 0 / 0.5133 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.2957, allocations: 11.94 kB / 0.5133 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2958, allocations: 0 / 0.5133 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2958, allocations: 0 / 0.5133 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.2963, allocations: 474.3 kB / 0.5137 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.863e-05/0.2964, allocations: 100.8 kB / 0.5138 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.2964, allocations: 8 kB / 0.5138 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.2965, allocations: 19.94 kB / 0.5139 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.13e-05/0.2966, allocations: 31.95 kB / 0.5139 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.2966, allocations: 8 kB / 0.5139 GB, free: 6.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.2967, allocations: 201.9 kB / 0.5141 GB, free: 6.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2967, allocations: 4 kB / 0.5141 GB, free: 6.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.297, allocations: 56.03 kB / 0.5141 GB, free: 6.707 MB / 382.1 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: 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 (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.0001444/0.2972, allocations: 134.8 kB / 0.5143 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003738/0.2975, allocations: 303.2 kB / 0.5146 GB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2976, allocations: 0 / 0.5146 GB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.2978, allocations: 191.3 kB / 0.5147 GB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.2981, allocations: 33.02 kB / 0.5148 GB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00081/0.2989, allocations: 0.5183 MB / 0.5153 GB, free: 5.484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001558/0.2991, allocations: 0.748 MB / 0.516 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.233e-05/0.2992, allocations: 17.55 kB / 0.516 GB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.749e-05/0.2992, allocations: 27.42 kB / 0.5161 GB, free: 4.668 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2992, allocations: 0 / 0.5161 GB, free: 4.668 MB / 382.1 MB Notification: Performance of Templates: time 0.004815/0.304, allocations: 2.437 MB / 0.5184 GB, free: 2.25 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: