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.0009061/0.0009061, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005633/0.005634, allocations: 169.9 kB / 16.27 MB, free: 6.66 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.333/1.333, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001648/0.001648, allocations: 263.1 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.93/0.93, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003976/0.0003976, allocations: 11.66 kB / 0.5986 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1518, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00202/0.1538, allocations: 1.653 MB / 0.6867 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.155, allocations: 0.6948 MB / 0.6874 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.183e-05/0.1551, allocations: 4 kB / 0.6874 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002092/0.1554, allocations: 79.7 kB / 0.6875 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.1555, allocations: 76.94 kB / 0.6876 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000474/0.156, allocations: 158.9 kB / 0.6877 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.1562, allocations: 243.4 kB / 0.688 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.1564, allocations: 62.06 kB / 0.688 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.1565, allocations: 99.59 kB / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.1567, allocations: 130 kB / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.1567, allocations: 8 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1569, allocations: 67.94 kB / 0.6883 GB, free: 11.81 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.052e-05/0.1569, allocations: 47.77 kB / 0.6884 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.157, allocations: 117 kB / 0.6885 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002933/0.1573, allocations: 283 kB / 0.6887 GB, free: 11.37 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1574, allocations: 4.75 kB / 0.6887 GB, free: 11.36 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1574, allocations: 0 / 0.6887 GB, free: 11.36 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1574, allocations: 4.594 kB / 0.6887 GB, free: 11.36 MB / 494.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.0007514/0.1581, allocations: 0.5418 MB / 0.6893 GB, free: 10.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.1582, allocations: 12.03 kB / 0.6893 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.789e-05/0.1582, allocations: 24.66 kB / 0.6893 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000432/0.1587, allocations: 313.3 kB / 0.6896 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.1587, allocations: 12.38 kB / 0.6896 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.1588, allocations: 16.38 kB / 0.6896 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003757/0.1591, allocations: 225.8 kB / 0.6898 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.1592, allocations: 1.062 kB / 0.6898 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.1592, allocations: 8 kB / 0.6899 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1592, allocations: 4.531 kB / 0.6899 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.1594, allocations: 140.3 kB / 0.69 GB, free: 9.977 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007966/0.1603, allocations: 0.6809 MB / 0.6907 GB, free: 9.238 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.1606, allocations: 182.4 kB / 0.6908 GB, free: 9.051 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.1608, allocations: 101 kB / 0.6909 GB, free: 8.949 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.1609, allocations: 4 kB / 0.6909 GB, free: 8.945 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.1612, allocations: 176.9 kB / 0.6911 GB, free: 8.754 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1612, allocations: 3.938 kB / 0.6911 GB, free: 8.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006755/0.1619, allocations: 387 kB / 0.6915 GB, free: 8.359 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.162, allocations: 136.5 kB / 0.6916 GB, free: 8.195 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.1622, allocations: 278.7 kB / 0.6919 GB, free: 7.918 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.1623, allocations: 33.7 kB / 0.6919 GB, free: 7.879 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1624, allocations: 156.2 kB / 0.6921 GB, free: 7.723 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.736e-05/0.1624, allocations: 43.45 kB / 0.6921 GB, free: 7.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.1625, allocations: 25.7 kB / 0.6921 GB, free: 7.648 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1626, allocations: 338.8 kB / 0.6924 GB, free: 7.309 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.1627, allocations: 91.89 kB / 0.6925 GB, free: 7.219 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.1629, allocations: 137.8 kB / 0.6927 GB, free: 7.066 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.1633, allocations: 254.7 kB / 0.6929 GB, free: 6.793 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1633, allocations: 0 / 0.6929 GB, free: 6.793 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004964/0.1638, allocations: 348.1 kB / 0.6932 GB, free: 6.445 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.1638, allocations: 39.41 kB / 0.6933 GB, free: 6.402 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1639, allocations: 0 / 0.6933 GB, free: 6.402 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1639, allocations: 4 kB / 0.6933 GB, free: 6.398 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.164, allocations: 27.92 kB / 0.6933 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.164, allocations: 0 / 0.6933 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.1642, allocations: 35.92 kB / 0.6933 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.1642, allocations: 4 kB / 0.6933 GB, free: 6.332 MB / 494.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.0001692/0.1643, allocations: 195.5 kB / 0.6935 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.571e-05/0.1644, allocations: 27.66 kB / 0.6936 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.1645, allocations: 29.83 kB / 0.6936 GB, free: 6.074 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1645, allocations: 4 kB / 0.6936 GB, free: 6.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1645, allocations: 0 / 0.6936 GB, free: 6.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1645, allocations: 4 kB / 0.6936 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.1647, allocations: 293.4 kB / 0.6939 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1647, allocations: 0 / 0.6939 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.1649, allocations: 31.86 kB / 0.6939 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1649, allocations: 3.984 kB / 0.6939 GB, free: 5.695 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.1649, allocations: 8 kB / 0.6939 GB, free: 5.688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1649, allocations: 0 / 0.6939 GB, free: 5.688 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1649, allocations: 0 / 0.6939 GB, free: 5.688 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007117/0.1656, allocations: 480.8 kB / 0.6944 GB, free: 5.195 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.759e-05/0.1657, allocations: 104.7 kB / 0.6945 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.1657, allocations: 8 kB / 0.6945 GB, free: 5.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.1659, allocations: 24.05 kB / 0.6945 GB, free: 5.043 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.647e-05/0.1659, allocations: 19.95 kB / 0.6945 GB, free: 5.023 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.166, allocations: 8 kB / 0.6945 GB, free: 5.016 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001747/0.1661, allocations: 198 kB / 0.6947 GB, free: 4.824 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1661, allocations: 0 / 0.6947 GB, free: 4.824 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.1664, allocations: 55.98 kB / 0.6948 GB, free: 4.77 MB / 494.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.0001982/0.1666, allocations: 131.3 kB / 0.6949 GB, free: 4.633 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004696/0.1671, allocations: 303.2 kB / 0.6952 GB, free: 4.324 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1671, allocations: 0 / 0.6952 GB, free: 4.324 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002373/0.1674, allocations: 195.5 kB / 0.6954 GB, free: 4.121 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.1677, allocations: 24.55 kB / 0.6954 GB, free: 4.094 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009557/0.1687, allocations: 0.5458 MB / 0.6959 GB, free: 3.516 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.1689, allocations: 0.7556 MB / 0.6967 GB, free: 2.734 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.98e-05/0.169, allocations: 21.53 kB / 0.6967 GB, free: 2.715 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.239e-05/0.1691, allocations: 15.44 kB / 0.6967 GB, free: 2.699 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1691, allocations: 288 / 0.6967 GB, free: 2.699 MB / 494.1 MB Notification: Performance of Templates: time 0.005591/0.1747, allocations: 2.528 MB / 0.6992 GB, free: 196 kB / 494.1 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)