Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.00141/0.00141, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001984/0.001985, allocations: 199.3 kB / 16.14 MB, free: 6.656 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.463/1.463, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.753/2.753, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 60.48 kB / 0.9114 GB, free: 33.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3488, allocations: 159.9 MB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003799/0.3527, allocations: 2.009 MB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3541, allocations: 0.7247 MB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.3543, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.3546, allocations: 75.77 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001892/0.3548, allocations: 87.69 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006509/0.3555, allocations: 151.8 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003713/0.3559, allocations: 243.2 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.356, allocations: 74.09 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.3563, allocations: 111.5 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.3565, allocations: 135.5 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.408e-05/0.3565, allocations: 8 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.3567, allocations: 83.92 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.668e-05/0.3568, allocations: 51.77 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.357, allocations: 91.34 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.3573, allocations: 287.1 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3573, allocations: 0 / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3573, allocations: 0 / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.454e-05/0.3574, allocations: 4 kB / 1.072 GB, free: 6.816 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.0009904/0.3584, allocations: 0.5781 MB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3584, allocations: 8.031 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.342e-05/0.3585, allocations: 32.56 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004829/0.359, allocations: 294.9 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.359, allocations: 12.38 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.3591, allocations: 16.38 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004255/0.3595, allocations: 227.2 kB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3595, allocations: 0 / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.3595, allocations: 8 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3596, allocations: 4 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.3598, allocations: 136.3 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009614/0.3608, allocations: 0.6846 MB / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003627/0.3612, allocations: 170.4 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.3614, allocations: 101 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3614, allocations: 7.984 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003746/0.3618, allocations: 167.1 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.804e-06/0.3618, allocations: 0 / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0007073/0.3625, allocations: 375 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.3626, allocations: 136.5 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.3629, allocations: 282.6 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.363, allocations: 33.7 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3631, allocations: 156.2 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.219e-05/0.3631, allocations: 43.36 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.3632, allocations: 41.7 kB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3633, allocations: 334.8 kB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.3635, allocations: 95.89 kB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.3637, allocations: 126.6 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.3641, allocations: 248.5 kB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3641, allocations: 96 / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005415/0.3646, allocations: 338.8 kB / 1.076 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.348e-05/0.3647, allocations: 37.69 kB / 1.076 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3647, allocations: 0 / 1.076 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.3647, allocations: 4 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.3648, allocations: 24.08 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.3649, allocations: 4 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.365, allocations: 23.83 kB / 1.076 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.365, allocations: 12 kB / 1.076 GB, free: 1.789 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.0001873/0.3652, allocations: 191.4 kB / 1.076 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.202e-05/0.3653, allocations: 27.72 kB / 1.076 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.26e-05/0.3653, allocations: 25.83 kB / 1.076 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3653, allocations: 4 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3653, allocations: 3.938 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.3654, allocations: 0 / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.3656, allocations: 301.3 kB / 1.077 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3656, allocations: 0 / 1.077 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3657, allocations: 12 kB / 1.077 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3658, allocations: 3.984 kB / 1.077 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.3658, allocations: 4 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.3658, allocations: 0 / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3658, allocations: 3.938 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007218/0.3665, allocations: 472.3 kB / 1.077 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.049e-05/0.3666, allocations: 96.83 kB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.767e-05/0.3666, allocations: 8 kB / 1.077 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.3668, allocations: 11.98 kB / 1.077 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.3669, allocations: 27.95 kB / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.3669, allocations: 4 kB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001894/0.3671, allocations: 206 kB / 1.077 GB, free: 316 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.903e-06/0.3671, allocations: 0 / 1.077 GB, free: 316 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002978/0.3674, allocations: 71.89 kB / 1.078 GB, free: 244 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.0002087/0.3676, allocations: 130.3 kB / 1.078 GB, free: 108 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004979/0.3681, allocations: 287.4 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.3681, allocations: 8 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.3684, allocations: 183.3 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.3687, allocations: 30.55 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.3698, allocations: 0.5417 MB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.3702, allocations: 0.7523 MB / 1.079 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.668e-05/0.3703, allocations: 21.55 kB / 1.079 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.926e-05/0.3704, allocations: 23.42 kB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.3704, allocations: 0 / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of Templates: time 0.006389/0.3768, allocations: 2.53 MB / 1.082 GB, free: 11.69 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)