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: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001657/0.001657, allocations: 172.7 kB / 15.95 MB, free: 208 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.704/1.704, allocations: 223.3 MB / 240 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.218/1.218, allocations: 143.4 MB / 434.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003685, allocations: 11.98 kB / 0.5161 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1755, allocations: 83.41 MB / 0.5975 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002219/0.1777, allocations: 1.61 MB / 0.5991 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.179, allocations: 0.655 MB / 0.5998 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.1791, allocations: 7.938 kB / 0.5998 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002068/0.1793, allocations: 67.77 kB / 0.5998 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.1794, allocations: 87.7 kB / 0.5999 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004816/0.1799, allocations: 127.6 kB / 0.6 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.1802, allocations: 223.4 kB / 0.6002 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1804, allocations: 53.92 kB / 0.6003 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.1805, allocations: 83.69 kB / 0.6004 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.1806, allocations: 115.6 kB / 0.6005 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.659e-05/0.1807, allocations: 15.94 kB / 0.6005 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.1808, allocations: 71.88 kB / 0.6006 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.003e-05/0.1809, allocations: 43.83 kB / 0.6006 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.765e-05/0.181, allocations: 57.58 kB / 0.6007 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.1812, allocations: 227.5 kB / 0.6009 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1812, allocations: 0 / 0.6009 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.502e-06/0.1812, allocations: 0 / 0.6009 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.1812, allocations: 0 / 0.6009 GB, free: 4.277 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.000741/0.182, allocations: 0.5507 MB / 0.6014 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.182, allocations: 8.031 kB / 0.6014 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.707e-05/0.1821, allocations: 46.55 kB / 0.6015 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.609e-05/0.1821, allocations: 35.58 kB / 0.6015 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.1826, allocations: 297.6 kB / 0.6018 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.1826, allocations: 15.94 kB / 0.6018 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.1826, allocations: 16 kB / 0.6018 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.183, allocations: 223.8 kB / 0.602 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.183, allocations: 0 / 0.602 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.1831, allocations: 4 kB / 0.602 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1831, allocations: 4 kB / 0.602 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.1833, allocations: 140.3 kB / 0.6022 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007784/0.1841, allocations: 0.6924 MB / 0.6029 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.1845, allocations: 174.5 kB / 0.603 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.1846, allocations: 104.9 kB / 0.6031 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.1847, allocations: 4 kB / 0.6031 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003008/0.185, allocations: 173.1 kB / 0.6033 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.185, allocations: 4 kB / 0.6033 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006445/0.1856, allocations: 377.8 kB / 0.6037 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.1857, allocations: 136.5 kB / 0.6038 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.186, allocations: 286.6 kB / 0.6041 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.186, allocations: 33.7 kB / 0.6041 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.1861, allocations: 164.1 kB / 0.6042 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.01e-05/0.1862, allocations: 47.36 kB / 0.6043 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.277e-06/0.1862, allocations: 3.938 kB / 0.6043 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1863, allocations: 338.8 kB / 0.6046 GB, free: 176 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.1865, allocations: 84.16 kB / 0.6047 GB, free: 92 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3948/0.5812, allocations: 133.9 kB / 0.6048 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.5816, allocations: 117.6 kB / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5816, allocations: 0 / 0.6049 GB, free: 40.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005948/0.5822, allocations: 340.4 kB / 0.6053 GB, free: 40.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.599e-05/0.5823, allocations: 42.09 kB / 0.6053 GB, free: 40.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.5823, allocations: 2.547 kB / 0.6053 GB, free: 40.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.5823, allocations: 3.125 kB / 0.6053 GB, free: 40.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.5824, allocations: 23.81 kB / 0.6053 GB, free: 40.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.5825, allocations: 4.859 kB / 0.6053 GB, free: 40.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.5826, allocations: 27.2 kB / 0.6054 GB, free: 40.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.5826, allocations: 9.125 kB / 0.6054 GB, free: 40.61 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.0001811/0.5828, allocations: 191.3 kB / 0.6056 GB, free: 40.47 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.5829, allocations: 30.2 kB / 0.6056 GB, free: 40.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.752e-05/0.5829, allocations: 29.58 kB / 0.6056 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.5829, allocations: 2.297 kB / 0.6056 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.583, allocations: 0 / 0.6056 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.583, allocations: 3.734 kB / 0.6056 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.5832, allocations: 288 kB / 0.6059 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.5832, allocations: 1.188 kB / 0.6059 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.983e-05/0.5833, allocations: 17.94 kB / 0.6059 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.5833, allocations: 1.094 kB / 0.6059 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.5833, allocations: 5.5 kB / 0.6059 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.5833, allocations: 0 / 0.6059 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5833, allocations: 7.062 kB / 0.6059 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/0.584, allocations: 481 kB / 0.6064 GB, free: 40.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.5841, allocations: 96.17 kB / 0.6065 GB, free: 40.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.55e-05/0.5841, allocations: 12.83 kB / 0.6065 GB, free: 40.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.5842, allocations: 17.58 kB / 0.6065 GB, free: 40.08 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.661e-05/0.5843, allocations: 30.95 kB / 0.6065 GB, free: 40.08 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.5843, allocations: 3.375 kB / 0.6065 GB, free: 40.08 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001708/0.5845, allocations: 205.8 kB / 0.6067 GB, free: 40.01 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5845, allocations: 3.844 kB / 0.6067 GB, free: 40.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002957/0.5848, allocations: 57.55 kB / 0.6068 GB, free: 40.01 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.0008912/0.5857, allocations: 1.041 MB / 0.6078 GB, free: 39.38 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004414/0.5862, allocations: 301.4 kB / 0.6081 GB, free: 39.31 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5862, allocations: 0 / 0.6081 GB, free: 39.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.5864, allocations: 190.8 kB / 0.6083 GB, free: 39.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.5867, allocations: 39.33 kB / 0.6083 GB, free: 39.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.589, allocations: 1.638 MB / 0.6099 GB, free: 38.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.5892, allocations: 0.7544 MB / 0.6106 GB, free: 38.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.106e-05/0.5893, allocations: 21.47 kB / 0.6107 GB, free: 38.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.842e-05/0.5894, allocations: 70.12 kB / 0.6107 GB, free: 38.01 MB / 0.4981 GB Notification: Performance of SimCode: time 1.954e-06/0.5894, allocations: 0 / 0.6107 GB, free: 38.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.6057, allocations: 4.903 MB / 0.6155 GB, free: 37.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002463/0.606, allocations: 193 kB / 0.6157 GB, free: 37.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/2.62, allocations: 0 / 0.6157 GB, free: 37.48 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: