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.0009425/0.0009426, allocations: 100.1 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.0009271/0.0009271, allocations: 177.3 kB / 15.94 MB, free: 228 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.387/1.387, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.028/1.028, allocations: 143.3 MB / 434.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004538/0.0004539, allocations: 12 kB / 0.5159 GB, free: 11.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1923, allocations: 83.41 MB / 0.5974 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002097/0.1944, allocations: 1.602 MB / 0.5989 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1955, allocations: 0.655 MB / 0.5996 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.455e-05/0.1956, allocations: 0 / 0.5996 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.1958, allocations: 71.77 kB / 0.5996 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.1959, allocations: 83.8 kB / 0.5997 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.1964, allocations: 135.1 kB / 0.5998 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000244/0.1966, allocations: 147.7 kB / 0.6 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.1968, allocations: 57.92 kB / 0.6 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.1969, allocations: 91.66 kB / 0.6001 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.1971, allocations: 107.6 kB / 0.6002 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.1971, allocations: 4 kB / 0.6002 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.1972, allocations: 63.94 kB / 0.6003 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.637e-05/0.1973, allocations: 47.81 kB / 0.6003 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.76e-05/0.1974, allocations: 65.52 kB / 0.6004 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.1976, allocations: 227.4 kB / 0.6006 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.1977, allocations: 0 / 0.6006 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1977, allocations: 0 / 0.6006 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.1977, allocations: 0 / 0.6006 GB, free: 4.449 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.0007458/0.1984, allocations: 0.5429 MB / 0.6011 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1985, allocations: 12.03 kB / 0.6012 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.644e-05/0.1985, allocations: 46.55 kB / 0.6012 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.695e-05/0.1986, allocations: 39.58 kB / 0.6012 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.199, allocations: 297.6 kB / 0.6015 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.1991, allocations: 12 kB / 0.6015 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.1991, allocations: 12 kB / 0.6015 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003628/0.1995, allocations: 223.7 kB / 0.6018 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1995, allocations: 7.984 kB / 0.6018 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.1995, allocations: 8 kB / 0.6018 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.1995, allocations: 3.953 kB / 0.6018 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003674/0.1999, allocations: 140.3 kB / 0.6019 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008362/0.2007, allocations: 0.6846 MB / 0.6026 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.2012, allocations: 178.5 kB / 0.6028 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.417e-06/0.2012, allocations: 3.938 kB / 0.6028 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.2015, allocations: 176.1 kB / 0.6029 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.2015, allocations: 0 / 0.6029 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.000693/0.2022, allocations: 464.1 kB / 0.6034 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/0.2023, allocations: 144.4 kB / 0.6035 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.2026, allocations: 282.6 kB / 0.6038 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.2027, allocations: 33.7 kB / 0.6038 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.2028, allocations: 152.2 kB / 0.604 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.2028, allocations: 47.36 kB / 0.604 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-06/0.2028, allocations: 0 / 0.604 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.203, allocations: 338.8 kB / 0.6043 GB, free: 368 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.2031, allocations: 88.14 kB / 0.6044 GB, free: 280 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.2033, allocations: 134.7 kB / 0.6045 GB, free: 128 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.2035, allocations: 117.6 kB / 0.6046 GB, free: 4 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2035, allocations: 0 / 0.6046 GB, free: 4 kB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.3234/0.5269, allocations: 331.6 kB / 0.605 GB, free: 40.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.398e-05/0.527, allocations: 37.41 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.5271, allocations: 8.141 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.5271, allocations: 0.5938 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.5272, allocations: 30.84 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.5273, allocations: 0 / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.5274, allocations: 31.25 kB / 0.6051 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.5274, allocations: 10.44 kB / 0.6051 GB, free: 40.77 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.0002211/0.5277, allocations: 191.3 kB / 0.6053 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.5277, allocations: 28.95 kB / 0.6053 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.204e-05/0.5278, allocations: 27.14 kB / 0.6053 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.5278, allocations: 3.125 kB / 0.6053 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.5278, allocations: 0.5625 kB / 0.6053 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.5278, allocations: 4.875 kB / 0.6053 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.528, allocations: 289.3 kB / 0.6056 GB, free: 40.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.528, allocations: 1.062 kB / 0.6056 GB, free: 40.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.5281, allocations: 16.44 kB / 0.6056 GB, free: 40.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.5281, allocations: 2.969 kB / 0.6056 GB, free: 40.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.5282, allocations: 7.219 kB / 0.6056 GB, free: 40.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.5282, allocations: 1.594 kB / 0.6056 GB, free: 40.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5282, allocations: 6 kB / 0.6056 GB, free: 40.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006381/0.5288, allocations: 480.7 kB / 0.6061 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.5289, allocations: 100.1 kB / 0.6062 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/0.5289, allocations: 8.469 kB / 0.6062 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.5291, allocations: 14.81 kB / 0.6062 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.5291, allocations: 31.81 kB / 0.6062 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.5292, allocations: 5.812 kB / 0.6062 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001648/0.5293, allocations: 200.9 kB / 0.6064 GB, free: 40.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5294, allocations: 0 / 0.6064 GB, free: 40.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002927/0.5297, allocations: 61.27 kB / 0.6065 GB, free: 40.16 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.0009018/0.5306, allocations: 1.042 MB / 0.6075 GB, free: 39.53 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004115/0.531, allocations: 298.8 kB / 0.6078 GB, free: 39.46 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.531, allocations: 0 / 0.6078 GB, free: 39.46 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.5312, allocations: 190.2 kB / 0.608 GB, free: 39.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.5315, allocations: 34.36 kB / 0.608 GB, free: 39.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/0.5338, allocations: 2.067 MB / 0.61 GB, free: 38.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.534, allocations: 0.7591 MB / 0.6108 GB, free: 37.72 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.783e-05/0.5341, allocations: 19.61 kB / 0.6108 GB, free: 37.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.99e-05/0.5342, allocations: 69.3 kB / 0.6109 GB, free: 37.71 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.5342, allocations: 3.5 kB / 0.6109 GB, free: 37.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.5491, allocations: 4.883 MB / 0.6156 GB, free: 37.42 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/0.5493, allocations: 191.6 kB / 0.6158 GB, free: 37.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/2.39, allocations: 0 / 0.6158 GB, free: 37.18 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: