Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.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.001437/0.001437, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001699/0.001699, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9936/0.9936, allocations: 143.3 MB / 434.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000307/0.0003071, allocations: 8 kB / 0.5158 GB, free: 11.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1746, allocations: 83.41 MB / 0.5973 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002214/0.1768, allocations: 1.61 MB / 0.5989 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.1781, allocations: 0.6434 MB / 0.5995 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.1782, allocations: 3.938 kB / 0.5995 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.1784, allocations: 75.75 kB / 0.5996 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.1786, allocations: 87.84 kB / 0.5996 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.1792, allocations: 130.9 kB / 0.5998 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.1795, allocations: 151.7 kB / 0.5999 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.1797, allocations: 53.64 kB / 0.6 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.1798, allocations: 87.73 kB / 0.6 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.18, allocations: 115.6 kB / 0.6002 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.1801, allocations: 4 kB / 0.6002 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.1802, allocations: 67.92 kB / 0.6002 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.661e-05/0.1803, allocations: 43.83 kB / 0.6003 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.371e-05/0.1804, allocations: 61.58 kB / 0.6003 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.1806, allocations: 227.7 kB / 0.6005 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.1807, allocations: 0 / 0.6005 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.893e-06/0.1807, allocations: 0 / 0.6005 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.1807, allocations: 0 / 0.6005 GB, free: 4.48 MB / 0.4981 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.0008559/0.1815, allocations: 0.5546 MB / 0.6011 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1816, allocations: 8.031 kB / 0.6011 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.624e-05/0.1817, allocations: 39.58 kB / 0.6011 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004871/0.1822, allocations: 297.6 kB / 0.6014 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.1822, allocations: 8 kB / 0.6014 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.1822, allocations: 16 kB / 0.6014 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003952/0.1826, allocations: 219.8 kB / 0.6016 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.1827, allocations: 4 kB / 0.6016 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.1827, allocations: 4 kB / 0.6017 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1827, allocations: 4 kB / 0.6017 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.183, allocations: 141.2 kB / 0.6018 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008891/0.1839, allocations: 0.6963 MB / 0.6025 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.1842, allocations: 174.7 kB / 0.6026 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.1843, allocations: 0 / 0.6026 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003393/0.1846, allocations: 169.1 kB / 0.6028 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.724e-06/0.1846, allocations: 0 / 0.6028 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007324/0.1854, allocations: 464.1 kB / 0.6032 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.1854, allocations: 136.5 kB / 0.6034 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.1857, allocations: 278.6 kB / 0.6036 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.1858, allocations: 33.7 kB / 0.6037 GB, free: 1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1859, allocations: 164.2 kB / 0.6038 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.885e-05/0.1859, allocations: 51.31 kB / 0.6039 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/0.186, allocations: 4 kB / 0.6039 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1861, allocations: 334.8 kB / 0.6042 GB, free: 456 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.1863, allocations: 88.06 kB / 0.6043 GB, free: 368 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.1865, allocations: 138.7 kB / 0.6044 GB, free: 212 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.1866, allocations: 119.5 kB / 0.6045 GB, free: 88 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1866, allocations: 0 / 0.6045 GB, free: 88 kB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.3012/0.4878, allocations: 337.6 kB / 0.6049 GB, free: 40.95 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.4879, allocations: 36.3 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4879, allocations: 2.062 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4879, allocations: 3.797 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.4881, allocations: 27.41 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4881, allocations: 3.125 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.4882, allocations: 32.59 kB / 0.605 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.4883, allocations: 5.469 kB / 0.605 GB, free: 40.91 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 ($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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.4884, allocations: 191.1 kB / 0.6051 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.4885, allocations: 30.94 kB / 0.6052 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.4886, allocations: 32.05 kB / 0.6052 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4886, allocations: 2.469 kB / 0.6052 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.4886, allocations: 0 / 0.6052 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.4886, allocations: 6.016 kB / 0.6052 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.4888, allocations: 281.5 kB / 0.6055 GB, free: 40.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4888, allocations: 2.906 kB / 0.6055 GB, free: 40.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.95e-05/0.4889, allocations: 15.25 kB / 0.6055 GB, free: 40.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.4889, allocations: 4.391 kB / 0.6055 GB, free: 40.58 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.489, allocations: 4.938 kB / 0.6055 GB, free: 40.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.489, allocations: 5.375 kB / 0.6055 GB, free: 40.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.489, allocations: 0 / 0.6055 GB, free: 40.58 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00059/0.4896, allocations: 482.9 kB / 0.606 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.4896, allocations: 104.8 kB / 0.6061 GB, free: 40.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.4897, allocations: 6.781 kB / 0.6061 GB, free: 40.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.4898, allocations: 16.72 kB / 0.6061 GB, free: 40.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.332e-05/0.4899, allocations: 29.14 kB / 0.6061 GB, free: 40.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.4899, allocations: 3.625 kB / 0.6061 GB, free: 40.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001489/0.49, allocations: 206.9 kB / 0.6063 GB, free: 40.31 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.6e-07/0.49, allocations: 0.75 kB / 0.6063 GB, free: 40.31 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002869/0.4903, allocations: 54.67 kB / 0.6064 GB, free: 40.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001741/0.4905, allocations: 130.3 kB / 0.6065 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000398/0.4909, allocations: 301.4 kB / 0.6068 GB, free: 40.16 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4909, allocations: 0 / 0.6068 GB, free: 40.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.4911, allocations: 195.8 kB / 0.607 GB, free: 40.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.4914, allocations: 29.06 kB / 0.607 GB, free: 40.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007953/0.4922, allocations: 0.5195 MB / 0.6075 GB, free: 39.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001472/0.4924, allocations: 0.7565 MB / 0.6082 GB, free: 39.14 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.923e-05/0.4924, allocations: 22.34 kB / 0.6083 GB, free: 39.14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.4925, allocations: 21.09 kB / 0.6083 GB, free: 39.14 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.4925, allocations: 0 / 0.6083 GB, free: 39.14 MB / 0.4981 GB Notification: Performance of Templates: time 0.005254/0.4978, allocations: 2.456 MB / 0.6107 GB, free: 39.04 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: