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.00129/0.00129, allocations: 116.1 kB / 16.42 MB, free: 6.496 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.001239/0.001239, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.328/1.328, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002121, allocations: 295.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9409/0.9409, allocations: 169.3 MB / 0.499 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00362/0.00362, allocations: 95.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5978/0.6015, allocations: 86.98 MB / 0.767 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002977/0.6045, allocations: 1.943 MB / 0.7689 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.6057, allocations: 0.709 MB / 0.7696 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.6058, allocations: 4 kB / 0.7696 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.606, allocations: 79.64 kB / 0.7697 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.6061, allocations: 99.56 kB / 0.7698 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005476/0.6067, allocations: 187.6 kB / 0.77 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002797/0.607, allocations: 267.5 kB / 0.7702 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.6072, allocations: 73.62 kB / 0.7703 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.6073, allocations: 111.7 kB / 0.7704 GB, free: 420 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.6075, allocations: 155.4 kB / 0.7706 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.691e-05/0.6075, allocations: 20 kB / 0.7706 GB, free: 244 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.6077, allocations: 99.91 kB / 0.7707 GB, free: 144 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.692e-05/0.6078, allocations: 51.84 kB / 0.7707 GB, free: 92 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.6079, allocations: 107.5 kB / 0.7708 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.6082, allocations: 313.4 kB / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.6082, allocations: 0 / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6083, allocations: 0 / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.6083, allocations: 0 / 0.7711 GB, free: 15.68 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.0008158/0.6091, allocations: 0.578 MB / 0.7717 GB, free: 15.05 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.6091, allocations: 12.03 kB / 0.7717 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.218e-05/0.6092, allocations: 28.56 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.6097, allocations: 302.9 kB / 0.772 GB, free: 14.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.6097, allocations: 16.38 kB / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.6098, allocations: 20.25 kB / 0.7721 GB, free: 14.64 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003827/0.6101, allocations: 227.3 kB / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.6102, allocations: 0 / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.6102, allocations: 8 kB / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.6102, allocations: 0 / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002435/0.6104, allocations: 132.3 kB / 0.7724 GB, free: 14.26 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007991/0.6113, allocations: 0.6769 MB / 0.7731 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003473/0.6116, allocations: 174.5 kB / 0.7732 GB, free: 13.34 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.6118, allocations: 96.83 kB / 0.7733 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.6118, allocations: 0 / 0.7733 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.6121, allocations: 180.4 kB / 0.7735 GB, free: 13.05 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.6121, allocations: 0 / 0.7735 GB, free: 13.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0006763/0.6128, allocations: 371 kB / 0.7739 GB, free: 12.68 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.6129, allocations: 132.5 kB / 0.774 GB, free: 12.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.6131, allocations: 282.6 kB / 0.7743 GB, free: 12.24 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.6132, allocations: 29.7 kB / 0.7743 GB, free: 12.21 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.6133, allocations: 156.2 kB / 0.7744 GB, free: 12.05 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.6133, allocations: 39.45 kB / 0.7745 GB, free: 12.01 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/0.6134, allocations: 41.7 kB / 0.7745 GB, free: 11.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.6135, allocations: 342.8 kB / 0.7748 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.6137, allocations: 88.05 kB / 0.7749 GB, free: 11.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.6139, allocations: 140.9 kB / 0.7751 GB, free: 11.38 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.6142, allocations: 242.7 kB / 0.7753 GB, free: 11.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.6142, allocations: 4 kB / 0.7753 GB, free: 11.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004796/0.6147, allocations: 341.1 kB / 0.7756 GB, free: 10.77 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.058e-05/0.6147, allocations: 37.69 kB / 0.7756 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.6147, allocations: 0 / 0.7756 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.6148, allocations: 3.938 kB / 0.7757 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.6149, allocations: 32.02 kB / 0.7757 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.6149, allocations: 0 / 0.7757 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.615, allocations: 27.83 kB / 0.7757 GB, free: 10.67 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.6151, allocations: 4 kB / 0.7757 GB, free: 10.66 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.0001689/0.6152, allocations: 193.9 kB / 0.7759 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.6153, allocations: 23.72 kB / 0.7759 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.873e-05/0.6153, allocations: 33.83 kB / 0.776 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.6154, allocations: 4 kB / 0.776 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.6154, allocations: 0 / 0.776 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.459e-05/0.6154, allocations: 104.7 kB / 0.7761 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.6155, allocations: 8 kB / 0.7761 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.6156, allocations: 19.92 kB / 0.7761 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.153e-05/0.6157, allocations: 23.97 kB / 0.7761 GB, free: 10.22 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007563/0.6164, allocations: 489.7 kB / 0.7766 GB, free: 9.719 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007395/0.6172, allocations: 0.5977 MB / 0.7772 GB, free: 9.098 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001879/0.6174, allocations: 124 kB / 0.7773 GB, free: 8.977 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001714/0.6176, allocations: 206 kB / 0.7775 GB, free: 8.781 MB / 0.545 GB Notification: Performance of Backend: time 3.91e-07/0.6176, allocations: 0 / 0.7775 GB, free: 8.781 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006905/0.6183, allocations: 305.7 kB / 0.7778 GB, free: 8.465 MB / 0.545 GB Notification: Performance of SimCode: time 0.0009275/0.6192, allocations: 0.9279 MB / 0.7787 GB, free: 7.477 MB / 0.545 GB Notification: Performance of Templates: time 0.006734/0.626, allocations: 3.052 MB / 0.7816 GB, free: 4.445 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)