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.000978/0.000978, allocations: 109.4 kB / 17.03 MB, free: 6.094 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.0009376/0.0009376, allocations: 190.9 kB / 17.97 MB, free: 5.191 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.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6929/0.6929, allocations: 115.1 MB / 406.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.91 kB / 494.8 MB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3376, allocations: 76.14 MB / 0.5576 GB, free: 36.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002861/0.3405, allocations: 1.938 MB / 0.5595 GB, free: 35.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.3415, allocations: 0.7052 MB / 0.5601 GB, free: 34.86 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.3416, allocations: 3.625 kB / 0.5601 GB, free: 34.86 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.3419, allocations: 85.89 kB / 0.5602 GB, free: 34.83 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.3421, allocations: 89.25 kB / 0.5603 GB, free: 34.81 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005784/0.3427, allocations: 190.4 kB / 0.5605 GB, free: 34.71 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003259/0.343, allocations: 267.5 kB / 0.5607 GB, free: 34.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.3432, allocations: 67.56 kB / 0.5608 GB, free: 34.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.3433, allocations: 119 kB / 0.5609 GB, free: 34.52 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.3436, allocations: 151.5 kB / 0.5611 GB, free: 34.47 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.3436, allocations: 23.28 kB / 0.5611 GB, free: 34.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.3438, allocations: 96.14 kB / 0.5612 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.572e-05/0.3439, allocations: 59.64 kB / 0.5612 GB, free: 34.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.344, allocations: 104.8 kB / 0.5613 GB, free: 34.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.3444, allocations: 314.1 kB / 0.5616 GB, free: 34.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3444, allocations: 0 / 0.5616 GB, free: 34.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3444, allocations: 0.6875 kB / 0.5616 GB, free: 34.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3444, allocations: 1.062 kB / 0.5616 GB, free: 34.21 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.0007933/0.3452, allocations: 0.583 MB / 0.5622 GB, free: 33.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3453, allocations: 8.75 kB / 0.5622 GB, free: 33.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.136e-05/0.3453, allocations: 35.91 kB / 0.5623 GB, free: 33.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004641/0.3458, allocations: 300 kB / 0.5625 GB, free: 33.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.3458, allocations: 11.09 kB / 0.5625 GB, free: 33.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.603e-05/0.3459, allocations: 15.09 kB / 0.5626 GB, free: 33.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003715/0.3463, allocations: 233.8 kB / 0.5628 GB, free: 33.28 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3463, allocations: 0 / 0.5628 GB, free: 33.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.3463, allocations: 7.031 kB / 0.5628 GB, free: 33.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.3463, allocations: 7.344 kB / 0.5628 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.3466, allocations: 131.6 kB / 0.5629 GB, free: 33.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00076/0.3473, allocations: 0.6823 MB / 0.5636 GB, free: 32.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.3477, allocations: 170.4 kB / 0.5638 GB, free: 32.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.3478, allocations: 100.3 kB / 0.5639 GB, free: 32.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.3479, allocations: 1.219 kB / 0.5639 GB, free: 32.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.3481, allocations: 166.1 kB / 0.564 GB, free: 32.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.3481, allocations: 1.031 kB / 0.564 GB, free: 32.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.000678/0.3488, allocations: 378.9 kB / 0.5644 GB, free: 32.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.3489, allocations: 132.4 kB / 0.5645 GB, free: 32.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.3492, allocations: 284.3 kB / 0.5648 GB, free: 32.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.3492, allocations: 28.62 kB / 0.5648 GB, free: 31.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.45e-05/0.3493, allocations: 155.4 kB / 0.5649 GB, free: 31.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.3494, allocations: 41.38 kB / 0.565 GB, free: 31.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.401e-05/0.3494, allocations: 42.17 kB / 0.565 GB, free: 31.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.677e-05/0.3495, allocations: 337.6 kB / 0.5653 GB, free: 31.47 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.3497, allocations: 88.73 kB / 0.5654 GB, free: 31.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.3499, allocations: 132 kB / 0.5656 GB, free: 31.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000319/0.3502, allocations: 239.9 kB / 0.5658 GB, free: 31.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.3502, allocations: 1.344 kB / 0.5658 GB, free: 31.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004816/0.3507, allocations: 335.7 kB / 0.5661 GB, free: 31.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.3508, allocations: 36.92 kB / 0.5661 GB, free: 31.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3508, allocations: 1.594 kB / 0.5661 GB, free: 31.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.3508, allocations: 2.094 kB / 0.5661 GB, free: 31.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3509, allocations: 22.55 kB / 0.5662 GB, free: 31.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3509, allocations: 3.109 kB / 0.5662 GB, free: 31.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.3511, allocations: 25.28 kB / 0.5662 GB, free: 31.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.3511, allocations: 6.078 kB / 0.5662 GB, free: 31.05 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.000162/0.3513, allocations: 207.5 kB / 0.5664 GB, free: 30.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.3513, allocations: 29.72 kB / 0.5664 GB, free: 30.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.186e-05/0.3514, allocations: 30.89 kB / 0.5665 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.3514, allocations: 2.25 kB / 0.5665 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3514, allocations: 1.406 kB / 0.5665 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3514, allocations: 1.797 kB / 0.5665 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.3516, allocations: 288.2 kB / 0.5667 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3516, allocations: 0 / 0.5667 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.3517, allocations: 18.16 kB / 0.5668 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3518, allocations: 0 / 0.5668 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.3518, allocations: 12.58 kB / 0.5668 GB, free: 30.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3518, allocations: 9.125 kB / 0.5668 GB, free: 30.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3518, allocations: 0.7812 kB / 0.5668 GB, free: 30.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006802/0.3525, allocations: 469.8 kB / 0.5672 GB, free: 30.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-05/0.3525, allocations: 95.44 kB / 0.5673 GB, free: 30.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.004e-05/0.3526, allocations: 9.328 kB / 0.5673 GB, free: 30.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.3527, allocations: 16.44 kB / 0.5673 GB, free: 30.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.3528, allocations: 23.3 kB / 0.5674 GB, free: 30.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.3528, allocations: 6.797 kB / 0.5674 GB, free: 30.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001725/0.353, allocations: 209 kB / 0.5676 GB, free: 30.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.353, allocations: 0 / 0.5676 GB, free: 30.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.3533, allocations: 59.67 kB / 0.5676 GB, free: 30.14 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.000182/0.3535, allocations: 135.9 kB / 0.5678 GB, free: 30.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004607/0.354, allocations: 294.7 kB / 0.568 GB, free: 29.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.354, allocations: 0 / 0.568 GB, free: 29.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002207/0.3542, allocations: 188 kB / 0.5682 GB, free: 29.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3545, allocations: 35.16 kB / 0.5682 GB, free: 29.78 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009354/0.3554, allocations: 473.9 kB / 0.5687 GB, free: 29.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.3557, allocations: 0.7525 MB / 0.5694 GB, free: 28.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.009e-05/0.3558, allocations: 19.59 kB / 0.5695 GB, free: 28.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.659e-05/0.3558, allocations: 22.72 kB / 0.5695 GB, free: 28.82 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3558, allocations: 0 / 0.5695 GB, free: 28.82 MB / 446.1 MB Notification: Performance of Templates: time 0.006768/0.3626, allocations: 2.827 MB / 0.5722 GB, free: 28.64 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 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)