Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7373/0.7373, allocations: 143.8 MB / 159.1 MB, free: 6.496 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009956/0.0009957, allocations: 183.3 kB / 192 MB, free: 6.723 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.7 MB / 450.4 MB, free: 4.945 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007289/0.0007288, allocations: 111.5 kB / 0.5211 GB, free: 1.605 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001585/0.001585, allocations: 282.1 kB / 0.6025 GB, free: 49.29 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003872, allocations: 10.31 kB / 0.6948 GB, free: 59.23 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1467, allocations: 82.45 MB / 0.7753 GB, free: 14.36 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002087/0.1488, allocations: 1.624 MB / 0.7769 GB, free: 12.72 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1501, allocations: 0.8408 MB / 0.7777 GB, free: 11.84 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.1502, allocations: 4 kB / 0.7777 GB, free: 11.84 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.1504, allocations: 71.77 kB / 0.7778 GB, free: 11.77 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.1505, allocations: 83.69 kB / 0.7779 GB, free: 11.68 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005034/0.1511, allocations: 155.8 kB / 0.778 GB, free: 11.53 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.1513, allocations: 239.4 kB / 0.7782 GB, free: 11.3 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1515, allocations: 57.89 kB / 0.7783 GB, free: 11.24 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1516, allocations: 95.66 kB / 0.7784 GB, free: 11.15 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001709/0.1518, allocations: 131.5 kB / 0.7785 GB, free: 11.02 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.1518, allocations: 8 kB / 0.7785 GB, free: 11.01 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.152, allocations: 67.92 kB / 0.7786 GB, free: 10.95 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.152, allocations: 47.78 kB / 0.7786 GB, free: 10.9 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.1522, allocations: 121 kB / 0.7787 GB, free: 10.77 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002963/0.1525, allocations: 271.1 kB / 0.779 GB, free: 10.51 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1525, allocations: 0 / 0.779 GB, free: 10.51 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1525, allocations: 0 / 0.779 GB, free: 10.51 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1525, allocations: 0 / 0.779 GB, free: 10.51 MB / 458.7 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.0007499/0.1532, allocations: 0.5547 MB / 0.7795 GB, free: 9.898 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.1533, allocations: 8.031 kB / 0.7796 GB, free: 9.891 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.1533, allocations: 32.56 kB / 0.7796 GB, free: 9.859 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.1538, allocations: 306.9 kB / 0.7799 GB, free: 9.523 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.1538, allocations: 16.38 kB / 0.7799 GB, free: 9.508 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.1538, allocations: 12.38 kB / 0.7799 GB, free: 9.496 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003718/0.1542, allocations: 223.3 kB / 0.7801 GB, free: 9.254 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.1542, allocations: 0 / 0.7801 GB, free: 9.254 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.1543, allocations: 8 kB / 0.7801 GB, free: 9.246 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.1543, allocations: 11.88 kB / 0.7801 GB, free: 9.234 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.1545, allocations: 129.3 kB / 0.7803 GB, free: 9.109 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008016/0.1553, allocations: 0.6963 MB / 0.7809 GB, free: 8.355 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.1557, allocations: 182.5 kB / 0.7811 GB, free: 8.168 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1559, allocations: 113 kB / 0.7812 GB, free: 8.055 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.1559, allocations: 3.984 kB / 0.7812 GB, free: 8.051 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002835/0.1562, allocations: 169.1 kB / 0.7814 GB, free: 7.867 MB / 458.7 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1562, allocations: 7.938 kB / 0.7814 GB, free: 7.859 MB / 458.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006356/0.1568, allocations: 382.9 kB / 0.7818 GB, free: 7.473 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.1569, allocations: 144.4 kB / 0.7819 GB, free: 7.301 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.1572, allocations: 278.6 kB / 0.7822 GB, free: 7.023 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.1572, allocations: 33.7 kB / 0.7822 GB, free: 6.984 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.1573, allocations: 152.3 kB / 0.7823 GB, free: 6.828 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.1574, allocations: 51.34 kB / 0.7824 GB, free: 6.777 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-06/0.1574, allocations: 0 / 0.7824 GB, free: 6.777 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1575, allocations: 338.8 kB / 0.7827 GB, free: 6.438 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1577, allocations: 87.89 kB / 0.7828 GB, free: 6.352 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.1579, allocations: 139.2 kB / 0.7829 GB, free: 6.199 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.1582, allocations: 244.6 kB / 0.7832 GB, free: 5.938 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1582, allocations: 4 kB / 0.7832 GB, free: 5.934 MB / 458.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004774/0.1587, allocations: 339.9 kB / 0.7835 GB, free: 5.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.1587, allocations: 33.7 kB / 0.7835 GB, free: 5.551 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1587, allocations: 8.078 kB / 0.7835 GB, free: 5.543 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.1587, allocations: 4 kB / 0.7835 GB, free: 5.539 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.1589, allocations: 27.92 kB / 0.7836 GB, free: 5.512 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1589, allocations: 0 / 0.7836 GB, free: 5.512 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.159, allocations: 35.77 kB / 0.7836 GB, free: 5.477 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.159, allocations: 4 kB / 0.7836 GB, free: 5.473 MB / 458.7 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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.0001698/0.1592, allocations: 196.8 kB / 0.7838 GB, free: 5.266 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.1593, allocations: 27.7 kB / 0.7838 GB, free: 5.238 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.904e-05/0.1593, allocations: 29.84 kB / 0.7838 GB, free: 5.211 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1593, allocations: 0 / 0.7838 GB, free: 5.211 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1593, allocations: 0 / 0.7838 GB, free: 5.211 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1593, allocations: 3.984 kB / 0.7838 GB, free: 5.207 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.1596, allocations: 293.3 kB / 0.7841 GB, free: 4.871 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1596, allocations: 0 / 0.7841 GB, free: 4.871 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.1597, allocations: 19.98 kB / 0.7841 GB, free: 4.852 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1597, allocations: 4 kB / 0.7842 GB, free: 4.848 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.1597, allocations: 11.98 kB / 0.7842 GB, free: 4.836 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1597, allocations: 0 / 0.7842 GB, free: 4.836 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1598, allocations: 0 / 0.7842 GB, free: 4.836 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006631/0.1604, allocations: 478.6 kB / 0.7846 GB, free: 4.344 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.49e-05/0.1605, allocations: 104.8 kB / 0.7847 GB, free: 4.223 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.1605, allocations: 8 kB / 0.7847 GB, free: 4.215 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1607, allocations: 19.98 kB / 0.7847 GB, free: 4.195 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.1607, allocations: 15.97 kB / 0.7848 GB, free: 4.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.1608, allocations: 11.98 kB / 0.7848 GB, free: 4.168 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001706/0.1609, allocations: 202.2 kB / 0.785 GB, free: 3.973 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1609, allocations: 0 / 0.785 GB, free: 3.973 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002417/0.1612, allocations: 63.97 kB / 0.785 GB, free: 3.91 MB / 458.7 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.0001771/0.1614, allocations: 135.2 kB / 0.7852 GB, free: 3.77 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004453/0.1618, allocations: 311.4 kB / 0.7855 GB, free: 3.453 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1618, allocations: 0 / 0.7855 GB, free: 3.453 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.1621, allocations: 183.4 kB / 0.7856 GB, free: 3.262 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.1623, allocations: 28.55 kB / 0.7857 GB, free: 3.234 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009423/0.1633, allocations: 0.5536 MB / 0.7862 GB, free: 2.652 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.1636, allocations: 0.7517 MB / 0.7869 GB, free: 1.875 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 8.674e-05/0.1637, allocations: 21.55 kB / 0.7869 GB, free: 1.852 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.139e-05/0.1637, allocations: 19.42 kB / 0.787 GB, free: 1.836 MB / 458.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1637, allocations: 0 / 0.787 GB, free: 1.836 MB / 458.7 MB Notification: Performance of Templates: time 0.005378/0.1691, allocations: 2.516 MB / 0.7894 GB, free: 15.33 MB / 474.7 MB 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)