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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001485/0.001485, 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.001879/0.001879, allocations: 197.9 kB / 16.14 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 472.6 MB / 0.7447 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 62.59 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.389, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003376/0.3925, allocations: 2.009 MB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.3938, allocations: 0.7169 MB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.3939, allocations: 7.938 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002424/0.3941, allocations: 75.75 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.3943, allocations: 87.7 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005179/0.3948, allocations: 155.2 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002607/0.3951, allocations: 239.2 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.3952, allocations: 74.09 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.3954, allocations: 103.6 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.3956, allocations: 139.5 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.3956, allocations: 12 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.3958, allocations: 83.86 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.05e-05/0.3959, allocations: 51.77 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.396, allocations: 95.34 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003074/0.3963, allocations: 283.1 kB / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3963, allocations: 0 / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.31e-07/0.3963, allocations: 0 / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.3963, allocations: 0 / 1.072 GB, free: 6.793 MB / 0.8262 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.0008252/0.3972, allocations: 0.5781 MB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3972, allocations: 8.031 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.3973, allocations: 32.56 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.3977, allocations: 294.9 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.3978, allocations: 12.38 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.233e-05/0.3978, allocations: 16.38 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003955/0.3982, allocations: 243.1 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3982, allocations: 0 / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.3983, allocations: 4 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3983, allocations: 4 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.3985, allocations: 140.3 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.3994, allocations: 0.6846 MB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003469/0.3997, allocations: 166.4 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.3999, allocations: 104.9 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.4, allocations: 8 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.4003, allocations: 169 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.4003, allocations: 0 / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006759/0.401, allocations: 369.2 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.4011, allocations: 136.5 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.4014, allocations: 286.6 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.4014, allocations: 29.7 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.4015, allocations: 156.2 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.4016, allocations: 43.36 kB / 1.075 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.389e-05/0.4016, allocations: 41.7 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.4018, allocations: 338.8 kB / 1.075 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.4019, allocations: 91.84 kB / 1.075 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.4021, allocations: 132.1 kB / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/0.4025, allocations: 236.6 kB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4025, allocations: 4.031 kB / 1.076 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004953/0.403, allocations: 338.9 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.866e-05/0.403, allocations: 33.7 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.403, allocations: 0 / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.4031, allocations: 0 / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.4032, allocations: 35.86 kB / 1.076 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.4032, allocations: 3.984 kB / 1.076 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.4033, allocations: 23.94 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.4034, allocations: 7.984 kB / 1.076 GB, free: 1.758 MB / 0.8262 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.0001817/0.4035, allocations: 191.5 kB / 1.076 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.4036, allocations: 23.72 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.511e-05/0.4036, allocations: 29.83 kB / 1.076 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4037, allocations: 0 / 1.076 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4037, allocations: 0 / 1.076 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.4037, allocations: 3.984 kB / 1.076 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.4039, allocations: 293.4 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.4039, allocations: 3.938 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.404, allocations: 15.98 kB / 1.077 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4041, allocations: 4 kB / 1.077 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.4041, allocations: 7.984 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.4041, allocations: 4 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4041, allocations: 0 / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006962/0.4048, allocations: 471.9 kB / 1.077 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.4049, allocations: 100.9 kB / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.375e-05/0.4049, allocations: 7.984 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.405, allocations: 15.98 kB / 1.077 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/0.4051, allocations: 20.16 kB / 1.077 GB, free: 496 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.4052, allocations: 7.984 kB / 1.077 GB, free: 488 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001825/0.4054, allocations: 205.9 kB / 1.077 GB, free: 280 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4054, allocations: 0 / 1.077 GB, free: 280 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002835/0.4057, allocations: 68.03 kB / 1.078 GB, free: 212 kB / 0.8262 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.0002402/0.4059, allocations: 139.2 kB / 1.078 GB, free: 64 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004857/0.4064, allocations: 283.3 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4064, allocations: 0 / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.4067, allocations: 199.4 kB / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.407, allocations: 28.55 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009882/0.408, allocations: 0.5301 MB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.4083, allocations: 0.7439 MB / 1.079 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.635e-05/0.4084, allocations: 17.55 kB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.568e-05/0.4084, allocations: 15.44 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.4084, allocations: 3.938 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.005508/0.414, allocations: 2.541 MB / 1.082 GB, free: 11.66 MB / 0.8419 GB 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)