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.001733/0.001739, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002715/0.002715, allocations: 192.6 kB / 16.14 MB, free: 6.723 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.467/1.467, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002579/0.002579, allocations: 279 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.09/1.09, allocations: 178.6 MB / 0.5068 GB, free: 4.762 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002747/0.002748, allocations: 101.5 kB / 0.6057 GB, free: 25.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1585, allocations: 89.15 MB / 0.6928 GB, free: 4.82 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003583/0.1621, allocations: 2.005 MB / 0.6947 GB, free: 2.801 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1634, allocations: 0.7133 MB / 0.6954 GB, free: 2.082 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1635, allocations: 7.938 kB / 0.6955 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.1638, allocations: 71.77 kB / 0.6955 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.1639, allocations: 87.67 kB / 0.6956 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004944/0.1644, allocations: 154.8 kB / 0.6958 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.1647, allocations: 243.4 kB / 0.696 GB, free: 1.531 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.1649, allocations: 61.84 kB / 0.696 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.165, allocations: 103.6 kB / 0.6961 GB, free: 1.371 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001913/0.1652, allocations: 139.5 kB / 0.6963 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.1653, allocations: 8 kB / 0.6963 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.1655, allocations: 87.88 kB / 0.6964 GB, free: 1.141 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.401e-05/0.1656, allocations: 55.75 kB / 0.6964 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.1657, allocations: 91.34 kB / 0.6965 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003667/0.1661, allocations: 291.1 kB / 0.6968 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1661, allocations: 0 / 0.6968 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1661, allocations: 3.938 kB / 0.6968 GB, free: 0.707 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.1661, allocations: 0 / 0.6968 GB, free: 0.707 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.0009123/0.167, allocations: 0.578 MB / 0.6974 GB, free: 76 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1671, allocations: 16.02 kB / 0.6974 GB, free: 60 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.773e-05/0.1672, allocations: 28.56 kB / 0.6974 GB, free: 32 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.1677, allocations: 294.9 kB / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.1677, allocations: 8.375 kB / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.1677, allocations: 16.38 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.1682, allocations: 231.2 kB / 0.6979 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1682, allocations: 3.984 kB / 0.6979 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.381e-05/0.1682, allocations: 8 kB / 0.6979 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.1682, allocations: 4 kB / 0.6979 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002728/0.1685, allocations: 128.3 kB / 0.6981 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009529/0.1695, allocations: 0.6924 MB / 0.6987 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.1699, allocations: 166.4 kB / 0.6989 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.1701, allocations: 101 kB / 0.699 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.1701, allocations: 0 / 0.699 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003977/0.1706, allocations: 177.1 kB / 0.6992 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.1706, allocations: 0 / 0.6992 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007385/0.1713, allocations: 369.2 kB / 0.6995 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.287e-05/0.1714, allocations: 132.5 kB / 0.6996 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.1717, allocations: 286.6 kB / 0.6999 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.1718, allocations: 29.7 kB / 0.6999 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.1719, allocations: 164.2 kB / 0.7001 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.247e-05/0.172, allocations: 39.45 kB / 0.7001 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.22e-05/0.1721, allocations: 41.7 kB / 0.7002 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1722, allocations: 334.8 kB / 0.7005 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.1724, allocations: 91.83 kB / 0.7006 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.1727, allocations: 133.9 kB / 0.7007 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/0.173, allocations: 240.4 kB / 0.7009 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.173, allocations: 0 / 0.7009 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005591/0.1736, allocations: 335 kB / 0.7013 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.612e-05/0.1737, allocations: 34.95 kB / 0.7013 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.1737, allocations: 7.984 kB / 0.7013 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1737, allocations: 0 / 0.7013 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.1738, allocations: 23.92 kB / 0.7013 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1738, allocations: 4 kB / 0.7013 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.174, allocations: 27.83 kB / 0.7013 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.174, allocations: 4.188 kB / 0.7014 GB, free: 11.7 MB / 0.4981 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.0002067/0.1742, allocations: 195.4 kB / 0.7015 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.1743, allocations: 31.64 kB / 0.7016 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.844e-05/0.1744, allocations: 25.84 kB / 0.7016 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1744, allocations: 4 kB / 0.7016 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1744, allocations: 0 / 0.7016 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.045e-05/0.1744, allocations: 3.984 kB / 0.7016 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.1747, allocations: 297.2 kB / 0.7019 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1747, allocations: 4 kB / 0.7019 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.1748, allocations: 19.98 kB / 0.7019 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1749, allocations: 0 / 0.7019 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.1749, allocations: 11.98 kB / 0.7019 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1749, allocations: 0 / 0.7019 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1749, allocations: 0 / 0.7019 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007815/0.1757, allocations: 466.3 kB / 0.7024 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.233e-05/0.1758, allocations: 100.8 kB / 0.7025 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.1758, allocations: 8 kB / 0.7025 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.1759, allocations: 15.98 kB / 0.7025 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.568e-05/0.176, allocations: 19.97 kB / 0.7025 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.1761, allocations: 11.98 kB / 0.7025 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002108/0.1763, allocations: 198 kB / 0.7027 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1763, allocations: 0 / 0.7027 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003006/0.1766, allocations: 60.03 kB / 0.7028 GB, free: 10.15 MB / 0.4981 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.0002305/0.1768, allocations: 131.2 kB / 0.7029 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005321/0.1774, allocations: 295.2 kB / 0.7032 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1774, allocations: 0 / 0.7032 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.1777, allocations: 183.3 kB / 0.7033 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/0.178, allocations: 36.62 kB / 0.7034 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.1792, allocations: 0.5459 MB / 0.7039 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.1797, allocations: 0.7523 MB / 0.7046 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.741e-05/0.1798, allocations: 21.53 kB / 0.7047 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.054e-05/0.1798, allocations: 19.66 kB / 0.7047 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of SimCode: time 7.41e-07/0.1798, allocations: 0 / 0.7047 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of Templates: time 0.006703/0.1865, allocations: 2.543 MB / 0.7072 GB, free: 5.574 MB / 0.4981 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)