Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001467/0.001467, allocations: 101.3 kB / 16.52 MB, free: 6.699 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.001586/0.001586, allocations: 199.1 kB / 17.44 MB, free: 6.066 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.351/1.351, allocations: 222.9 MB / 241.1 MB, free: 15.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7271/0.7271, allocations: 115.3 MB / 406.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 59.91 kB / 493.6 MB, free: 0.875 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3951, allocations: 76.17 MB / 0.5564 GB, free: 36.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003561/0.3987, allocations: 1.99 MB / 0.5583 GB, free: 35.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.4, allocations: 0.7182 MB / 0.559 GB, free: 34.78 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.4001, allocations: 6.5 kB / 0.559 GB, free: 34.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.4004, allocations: 68.88 kB / 0.5591 GB, free: 34.77 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001216/0.4005, allocations: 87.17 kB / 0.5592 GB, free: 34.74 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/0.401, allocations: 160 kB / 0.5593 GB, free: 34.66 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002717/0.4013, allocations: 243.3 kB / 0.5596 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.4015, allocations: 72.45 kB / 0.5596 GB, free: 34.53 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.4016, allocations: 104.8 kB / 0.5597 GB, free: 34.49 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002091/0.4018, allocations: 137.8 kB / 0.5599 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.4019, allocations: 10.56 kB / 0.5599 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.4021, allocations: 84.72 kB / 0.5599 GB, free: 34.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.4022, allocations: 48.72 kB / 0.56 GB, free: 34.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.4023, allocations: 98.22 kB / 0.5601 GB, free: 34.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.4026, allocations: 218.8 kB / 0.5603 GB, free: 34.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4026, allocations: 2.031 kB / 0.5603 GB, free: 34.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4026, allocations: 0 / 0.5603 GB, free: 34.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.4026, allocations: 1 kB / 0.5603 GB, free: 34.27 MB / 446.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.0008436/0.4035, allocations: 0.5824 MB / 0.5609 GB, free: 33.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.4035, allocations: 13.31 kB / 0.5609 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.814e-05/0.4036, allocations: 36.25 kB / 0.5609 GB, free: 33.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004302/0.404, allocations: 296.1 kB / 0.5612 GB, free: 33.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.4041, allocations: 10.88 kB / 0.5612 GB, free: 33.47 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.4041, allocations: 14.41 kB / 0.5612 GB, free: 33.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004107/0.4045, allocations: 231.8 kB / 0.5614 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.4045, allocations: 0 / 0.5614 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.4046, allocations: 7.594 kB / 0.5614 GB, free: 33.33 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4046, allocations: 3.406 kB / 0.5615 GB, free: 33.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.4049, allocations: 132.8 kB / 0.5616 GB, free: 33.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007908/0.4057, allocations: 0.6803 MB / 0.5622 GB, free: 32.74 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.406, allocations: 173.8 kB / 0.5624 GB, free: 32.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.4062, allocations: 100.2 kB / 0.5625 GB, free: 32.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.4062, allocations: 1.25 kB / 0.5625 GB, free: 32.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003344/0.4066, allocations: 174.9 kB / 0.5627 GB, free: 32.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.4066, allocations: 0 / 0.5627 GB, free: 32.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007438/0.4073, allocations: 375.6 kB / 0.563 GB, free: 32.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.4074, allocations: 134.7 kB / 0.5632 GB, free: 32.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.4077, allocations: 280 kB / 0.5634 GB, free: 32.08 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.4077, allocations: 32.5 kB / 0.5635 GB, free: 32.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.4078, allocations: 156.7 kB / 0.5636 GB, free: 31.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.4079, allocations: 47.05 kB / 0.5637 GB, free: 31.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-05/0.4079, allocations: 40.77 kB / 0.5637 GB, free: 31.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.888e-05/0.408, allocations: 337.9 kB / 0.564 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.4082, allocations: 88 kB / 0.5641 GB, free: 31.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.4084, allocations: 137 kB / 0.5642 GB, free: 31.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003468/0.4088, allocations: 241 kB / 0.5645 GB, free: 31.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4088, allocations: 0 / 0.5645 GB, free: 31.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005226/0.4093, allocations: 335.7 kB / 0.5648 GB, free: 31.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.4094, allocations: 36.48 kB / 0.5648 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4094, allocations: 2.25 kB / 0.5648 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.4094, allocations: 1.188 kB / 0.5648 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.4095, allocations: 26.97 kB / 0.5648 GB, free: 31.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4095, allocations: 2.344 kB / 0.5648 GB, free: 31.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.4097, allocations: 26.95 kB / 0.5649 GB, free: 31.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.4097, allocations: 6.266 kB / 0.5649 GB, free: 31.09 MB / 446.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 (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.0001568/0.4099, allocations: 191.8 kB / 0.5651 GB, free: 30.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.4099, allocations: 28.31 kB / 0.5651 GB, free: 30.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.224e-05/0.41, allocations: 34.56 kB / 0.5651 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.41, allocations: 4.125 kB / 0.5651 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.41, allocations: 0 / 0.5651 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.41, allocations: 0.6562 kB / 0.5651 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.4103, allocations: 298.6 kB / 0.5654 GB, free: 30.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.4103, allocations: 0 / 0.5654 GB, free: 30.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.4104, allocations: 20.27 kB / 0.5654 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4104, allocations: 0 / 0.5654 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.4104, allocations: 8.938 kB / 0.5654 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.4104, allocations: 1.797 kB / 0.5654 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4104, allocations: 1.125 kB / 0.5654 GB, free: 30.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007329/0.4112, allocations: 464.4 kB / 0.5659 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.4112, allocations: 96.94 kB / 0.566 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.797e-05/0.4113, allocations: 13.06 kB / 0.566 GB, free: 30.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.4114, allocations: 14.31 kB / 0.566 GB, free: 30.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.447e-05/0.4115, allocations: 25.8 kB / 0.566 GB, free: 30.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.4115, allocations: 17.08 kB / 0.566 GB, free: 30.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001829/0.4117, allocations: 199 kB / 0.5662 GB, free: 30.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4117, allocations: 0 / 0.5662 GB, free: 30.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003198/0.412, allocations: 57.53 kB / 0.5663 GB, free: 30.2 MB / 446.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 (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.0001979/0.4122, allocations: 133.6 kB / 0.5664 GB, free: 30.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004955/0.4128, allocations: 301.5 kB / 0.5667 GB, free: 29.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4128, allocations: 1.25 kB / 0.5667 GB, free: 29.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.413, allocations: 186.9 kB / 0.5669 GB, free: 29.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.4133, allocations: 33.11 kB / 0.5669 GB, free: 29.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.4144, allocations: 0.561 MB / 0.5675 GB, free: 29.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.4146, allocations: 0.754 MB / 0.5682 GB, free: 28.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.3e-05/0.4146, allocations: 17.45 kB / 0.5682 GB, free: 28.78 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4146, allocations: 0 / 0.5682 GB, free: 28.78 MB / 446.1 MB Notification: Performance of Templates: time 0.005776/0.4204, allocations: 2.992 MB / 0.5711 GB, free: 28.49 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)