Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.007808/0.007808, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001676/0.001676, allocations: 195.1 kB / 16.67 MB, free: 5.93 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002154/0.002154, allocations: 292.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.927/0.927, allocations: 169.3 MB / 0.4983 GB, free: 4.395 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 99.86 kB / 0.6814 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3932/0.3949, allocations: 86.97 MB / 0.7664 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00277/0.3977, allocations: 1.943 MB / 0.7683 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.3988, allocations: 0.7129 MB / 0.769 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.181e-05/0.3989, allocations: 7.938 kB / 0.769 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.3991, allocations: 75.72 kB / 0.769 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.3992, allocations: 95.55 kB / 0.7691 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.3997, allocations: 191.1 kB / 0.7693 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.4, allocations: 263.5 kB / 0.7696 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.4002, allocations: 77.56 kB / 0.7696 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.4003, allocations: 111.7 kB / 0.7697 GB, free: 436 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.4005, allocations: 155.5 kB / 0.7699 GB, free: 280 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.4005, allocations: 20 kB / 0.7699 GB, free: 260 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.4007, allocations: 95.92 kB / 0.77 GB, free: 164 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.784e-05/0.4007, allocations: 59.77 kB / 0.7701 GB, free: 104 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.4009, allocations: 107.5 kB / 0.7702 GB, free: 15.99 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.4012, allocations: 305.4 kB / 0.7705 GB, free: 15.7 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.4012, allocations: 0 / 0.7705 GB, free: 15.7 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.402e-06/0.4012, allocations: 0 / 0.7705 GB, free: 15.7 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.4012, allocations: 0 / 0.7705 GB, free: 15.7 MB / 0.545 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.0008068/0.402, allocations: 0.5819 MB / 0.771 GB, free: 15.06 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.4021, allocations: 8.031 kB / 0.771 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.522e-05/0.4021, allocations: 36.56 kB / 0.7711 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/0.4026, allocations: 298.9 kB / 0.7713 GB, free: 14.69 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.4026, allocations: 24.31 kB / 0.7714 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.4026, allocations: 12.38 kB / 0.7714 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.403, allocations: 231.2 kB / 0.7716 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.403, allocations: 4 kB / 0.7716 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.4031, allocations: 8 kB / 0.7716 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.4031, allocations: 0 / 0.7716 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002443/0.4033, allocations: 136.1 kB / 0.7717 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007842/0.4041, allocations: 0.6807 MB / 0.7724 GB, free: 13.53 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.4045, allocations: 162.5 kB / 0.7726 GB, free: 13.36 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.4046, allocations: 96.95 kB / 0.7727 GB, free: 13.26 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.4046, allocations: 12.03 kB / 0.7727 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.4049, allocations: 173 kB / 0.7728 GB, free: 13.06 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.4049, allocations: 0 / 0.7728 GB, free: 13.06 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0006295/0.4055, allocations: 378 kB / 0.7732 GB, free: 12.68 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.4056, allocations: 132.5 kB / 0.7733 GB, free: 12.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.4059, allocations: 282.6 kB / 0.7736 GB, free: 12.25 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.4059, allocations: 33.7 kB / 0.7736 GB, free: 12.21 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.406, allocations: 156.2 kB / 0.7738 GB, free: 12.05 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.562e-05/0.4061, allocations: 39.45 kB / 0.7738 GB, free: 12.01 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.435e-05/0.4061, allocations: 41.7 kB / 0.7738 GB, free: 11.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.4062, allocations: 338.8 kB / 0.7742 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.4064, allocations: 87.89 kB / 0.7743 GB, free: 11.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.4066, allocations: 130 kB / 0.7744 GB, free: 11.39 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.4069, allocations: 241.4 kB / 0.7746 GB, free: 11.14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4069, allocations: 0 / 0.7746 GB, free: 11.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004737/0.4074, allocations: 351 kB / 0.7749 GB, free: 10.78 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.4074, allocations: 37.69 kB / 0.775 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.4074, allocations: 3.938 kB / 0.775 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.4075, allocations: 0 / 0.775 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.4076, allocations: 23.98 kB / 0.775 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.4076, allocations: 0 / 0.775 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.4077, allocations: 27.83 kB / 0.775 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/0.4078, allocations: 4.094 kB / 0.775 GB, free: 10.68 MB / 0.545 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.0001719/0.4079, allocations: 205.8 kB / 0.7752 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.408, allocations: 23.72 kB / 0.7753 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.624e-05/0.408, allocations: 33.83 kB / 0.7753 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.4081, allocations: 0 / 0.7753 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4081, allocations: 0 / 0.7753 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.4081, allocations: 0 / 0.7753 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.4083, allocations: 289.4 kB / 0.7756 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4083, allocations: 0 / 0.7756 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.733e-05/0.4084, allocations: 16 kB / 0.7756 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.4084, allocations: 4 kB / 0.7756 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.4085, allocations: 7.984 kB / 0.7756 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4085, allocations: 8 kB / 0.7756 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4085, allocations: 0 / 0.7756 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006688/0.4091, allocations: 466.2 kB / 0.776 GB, free: 9.555 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/0.4092, allocations: 100.8 kB / 0.7761 GB, free: 9.438 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.001e-05/0.4093, allocations: 8 kB / 0.7761 GB, free: 9.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.4094, allocations: 11.98 kB / 0.7762 GB, free: 9.418 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.796e-05/0.4094, allocations: 23.97 kB / 0.7762 GB, free: 9.395 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.4095, allocations: 7.984 kB / 0.7762 GB, free: 9.387 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001659/0.4096, allocations: 202 kB / 0.7764 GB, free: 9.195 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4097, allocations: 192 / 0.7764 GB, free: 9.195 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002551/0.4099, allocations: 59.84 kB / 0.7764 GB, free: 9.137 MB / 0.545 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.0001822/0.4101, allocations: 151.1 kB / 0.7766 GB, free: 8.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004426/0.4106, allocations: 287.2 kB / 0.7769 GB, free: 8.688 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4106, allocations: 0 / 0.7769 GB, free: 8.688 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002184/0.4108, allocations: 187.3 kB / 0.777 GB, free: 8.492 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.4111, allocations: 45.06 kB / 0.7771 GB, free: 8.453 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008863/0.412, allocations: 465.2 kB / 0.7775 GB, free: 7.969 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.4123, allocations: 0.7553 MB / 0.7783 GB, free: 7.188 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.229e-05/0.4124, allocations: 17.55 kB / 0.7783 GB, free: 7.168 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.048e-05/0.4124, allocations: 19.44 kB / 0.7783 GB, free: 7.148 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4124, allocations: 0 / 0.7783 GB, free: 7.148 MB / 0.545 GB Notification: Performance of Templates: time 0.005574/0.418, allocations: 2.846 MB / 0.7811 GB, free: 4.324 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)