Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.491/1.491, allocations: 252 MB / 267.6 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009977/0.0009977, allocations: 184.3 kB / 327.3 MB, free: 2.188 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.942/1.942, allocations: 205.4 MB / 0.5783 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007313/0.0007313, allocations: 86.3 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000417/0.0004171, allocations: 8.531 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2457, allocations: 106.3 MB / 0.9008 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002147/0.2479, allocations: 1.615 MB / 0.9024 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.2489, allocations: 0.7139 MB / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2491, allocations: 7.938 kB / 0.9031 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.2493, allocations: 71.77 kB / 0.9032 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.923e-05/0.2494, allocations: 83.69 kB / 0.9033 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004762/0.2499, allocations: 130.2 kB / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.2501, allocations: 219.5 kB / 0.9036 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.2502, allocations: 57.64 kB / 0.9036 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.89e-05/0.2503, allocations: 87.66 kB / 0.9037 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.2505, allocations: 115.6 kB / 0.9038 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.607e-05/0.2505, allocations: 4 kB / 0.9038 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.2507, allocations: 79.86 kB / 0.9039 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.64e-05/0.2507, allocations: 35.84 kB / 0.904 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.66e-05/0.2508, allocations: 61.58 kB / 0.904 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.251, allocations: 215.8 kB / 0.9042 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.251, allocations: 4 kB / 0.9042 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.714e-06/0.251, allocations: 4 kB / 0.9042 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.251, allocations: 0 / 0.9042 GB, free: 60.37 MB / 0.6042 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.0007285/0.2518, allocations: 0.5506 MB / 0.9048 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.2518, allocations: 12.03 kB / 0.9048 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.768e-05/0.2519, allocations: 31.66 kB / 0.9048 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.2523, allocations: 297.5 kB / 0.9051 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.2523, allocations: 12 kB / 0.9051 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.2524, allocations: 20 kB / 0.9051 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.2527, allocations: 219.2 kB / 0.9053 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2527, allocations: 0 / 0.9053 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.2528, allocations: 11.98 kB / 0.9053 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.2528, allocations: 3.938 kB / 0.9053 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.253, allocations: 136.4 kB / 0.9055 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007197/0.2538, allocations: 0.6886 MB / 0.9061 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000336/0.2541, allocations: 174.5 kB / 0.9063 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.2543, allocations: 101 kB / 0.9064 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.2543, allocations: 4 kB / 0.9064 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002853/0.2546, allocations: 174.3 kB / 0.9066 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.2546, allocations: 0 / 0.9066 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15): time 0.0006011/0.2552, allocations: 392.2 kB / 0.907 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.2553, allocations: 140.4 kB / 0.9071 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.2555, allocations: 282.7 kB / 0.9074 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.2555, allocations: 29.7 kB / 0.9074 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 9.019e-05/0.2556, allocations: 156.2 kB / 0.9075 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.2557, allocations: 43.39 kB / 0.9076 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.968e-06/0.2557, allocations: 4 kB / 0.9076 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.2558, allocations: 338.8 kB / 0.9079 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.2559, allocations: 92.14 kB / 0.908 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.2561, allocations: 132.1 kB / 0.9081 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.2562, allocations: 120.1 kB / 0.9082 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2563, allocations: 0 / 0.9082 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004231/0.2567, allocations: 342.9 kB / 0.9086 GB, free: 55.63 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.965e-05/0.2567, allocations: 41.69 kB / 0.9086 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2567, allocations: 4.094 kB / 0.9086 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.2568, allocations: 3.938 kB / 0.9086 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.2569, allocations: 23.98 kB / 0.9086 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2569, allocations: 4 kB / 0.9086 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.257, allocations: 27.83 kB / 0.9087 GB, free: 55.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.2571, allocations: 8 kB / 0.9087 GB, free: 55.51 MB / 0.6042 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 ($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.0001431/0.2572, allocations: 197.5 kB / 0.9089 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.2573, allocations: 27.72 kB / 0.9089 GB, free: 55.28 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.2573, allocations: 25.84 kB / 0.9089 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2573, allocations: 0 / 0.9089 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.2573, allocations: 3.984 kB / 0.9089 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2573, allocations: 0 / 0.9089 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.2575, allocations: 301.3 kB / 0.9092 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2576, allocations: 0 / 0.9092 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.2577, allocations: 20 kB / 0.9092 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2577, allocations: 0 / 0.9092 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.2577, allocations: 7.984 kB / 0.9092 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2577, allocations: 3.938 kB / 0.9092 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2577, allocations: 0 / 0.9092 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006005/0.2583, allocations: 472.4 kB / 0.9097 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.2584, allocations: 108.7 kB / 0.9098 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.744e-05/0.2584, allocations: 11.94 kB / 0.9098 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2585, allocations: 15.98 kB / 0.9098 GB, free: 54.24 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.165e-05/0.2586, allocations: 28.02 kB / 0.9098 GB, free: 54.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.2586, allocations: 8 kB / 0.9098 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001499/0.2588, allocations: 201.9 kB / 0.91 GB, free: 54 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2588, allocations: 3.938 kB / 0.91 GB, free: 54 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002642/0.2591, allocations: 60.03 kB / 0.9101 GB, free: 53.94 MB / 0.6042 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 (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.0001832/0.2593, allocations: 126.1 kB / 0.9102 GB, free: 53.81 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004134/0.2597, allocations: 299.2 kB / 0.9105 GB, free: 53.51 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2597, allocations: 0 / 0.9105 GB, free: 53.51 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.2599, allocations: 195.3 kB / 0.9107 GB, free: 53.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.2602, allocations: 36.73 kB / 0.9107 GB, free: 53.27 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009105/0.2611, allocations: 0.5439 MB / 0.9113 GB, free: 52.69 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.2613, allocations: 0.7518 MB / 0.912 GB, free: 51.91 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.2614, allocations: 19.42 kB / 0.912 GB, free: 51.89 MB / 0.6042 GB Notification: Performance of SimCode: time 5.21e-07/0.2614, allocations: 0 / 0.912 GB, free: 51.89 MB / 0.6042 GB Notification: Performance of Templates: time 0.004251/0.2656, allocations: 2.972 MB / 0.9149 GB, free: 48.93 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)