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.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.001647/0.001647, allocations: 106.9 kB / 16.41 MB, free: 6.508 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.001949/0.001949, allocations: 187 kB / 17.34 MB, free: 5.742 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.859/0.859, allocations: 143.1 MB / 434.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.36 kB / 0.5962 GB, free: 12.27 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1805, allocations: 82.03 MB / 0.6763 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003688/0.1842, allocations: 1.951 MB / 0.6782 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001504/0.1857, allocations: 0.713 MB / 0.6789 GB, free: 7.641 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.186, allocations: 7.938 kB / 0.6789 GB, free: 7.633 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.1863, allocations: 71.72 kB / 0.679 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.1865, allocations: 103.5 kB / 0.6791 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007207/0.1873, allocations: 182.7 kB / 0.6792 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.1877, allocations: 267.4 kB / 0.6795 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.1879, allocations: 69.83 kB / 0.6796 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/0.1881, allocations: 119.6 kB / 0.6797 GB, free: 6.84 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002573/0.1884, allocations: 143.5 kB / 0.6798 GB, free: 6.699 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 4.977e-05/0.1885, allocations: 20 kB / 0.6798 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.1886, allocations: 99.91 kB / 0.6799 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 9.732e-05/0.1887, allocations: 59.7 kB / 0.68 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.1889, allocations: 115.3 kB / 0.6801 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004002/0.1893, allocations: 311 kB / 0.6804 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1893, allocations: 0 / 0.6804 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.803e-06/0.1893, allocations: 0 / 0.6804 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.1893, allocations: 0 / 0.6804 GB, free: 6.105 MB / 0.5137 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.000886/0.1902, allocations: 0.578 MB / 0.681 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.1902, allocations: 16.03 kB / 0.681 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.415e-05/0.1903, allocations: 28.56 kB / 0.681 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005695/0.1909, allocations: 306.9 kB / 0.6813 GB, free: 5.086 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.1909, allocations: 12.38 kB / 0.6813 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.191, allocations: 12.38 kB / 0.6813 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004031/0.1914, allocations: 232 kB / 0.6815 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1914, allocations: 0 / 0.6815 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.1914, allocations: 4 kB / 0.6815 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1914, allocations: 7.984 kB / 0.6815 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002443/0.1917, allocations: 124.4 kB / 0.6817 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008592/0.1926, allocations: 0.6885 MB / 0.6823 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.1929, allocations: 166.5 kB / 0.6825 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.1931, allocations: 104.9 kB / 0.6826 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.1931, allocations: 4.031 kB / 0.6826 GB, free: 3.652 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.1934, allocations: 172.6 kB / 0.6828 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.1934, allocations: 0 / 0.6828 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006783/0.1941, allocations: 374.9 kB / 0.6831 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.1942, allocations: 140.5 kB / 0.6833 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.1945, allocations: 278.6 kB / 0.6835 GB, free: 2.641 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/0.1945, allocations: 33.7 kB / 0.6836 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1946, allocations: 148.3 kB / 0.6837 GB, free: 2.453 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.1947, allocations: 43.45 kB / 0.6837 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.276e-05/0.1948, allocations: 45.61 kB / 0.6838 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1949, allocations: 342.8 kB / 0.6841 GB, free: 2.016 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.1951, allocations: 87.89 kB / 0.6842 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.1953, allocations: 127.5 kB / 0.6843 GB, free: 1.789 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003299/0.1956, allocations: 240.5 kB / 0.6845 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1957, allocations: 0 / 0.6845 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005191/0.1962, allocations: 340.9 kB / 0.6849 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.511e-05/0.1962, allocations: 41.64 kB / 0.6849 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.1962, allocations: 0 / 0.6849 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.1963, allocations: 4.094 kB / 0.6849 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.1964, allocations: 23.98 kB / 0.6849 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1964, allocations: 3.984 kB / 0.6849 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.1965, allocations: 27.83 kB / 0.685 GB, free: 1.082 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.1966, allocations: 4 kB / 0.685 GB, free: 1.078 MB / 0.5137 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.0001872/0.1968, allocations: 196.2 kB / 0.6852 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.1968, allocations: 23.72 kB / 0.6852 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.122e-05/0.1969, allocations: 37.83 kB / 0.6852 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1969, allocations: 3.938 kB / 0.6852 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1969, allocations: 0 / 0.6852 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1969, allocations: 3.984 kB / 0.6852 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.1972, allocations: 289.3 kB / 0.6855 GB, free: 480 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1972, allocations: 0 / 0.6855 GB, free: 480 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.1973, allocations: 15.98 kB / 0.6855 GB, free: 464 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.1973, allocations: 4 kB / 0.6855 GB, free: 460 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1973, allocations: 7.984 kB / 0.6855 GB, free: 452 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1973, allocations: 0 / 0.6855 GB, free: 452 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1973, allocations: 8 kB / 0.6855 GB, free: 444 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007163/0.1981, allocations: 462.4 kB / 0.686 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 7.055e-05/0.1981, allocations: 105 kB / 0.6861 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.783e-05/0.1982, allocations: 8 kB / 0.6861 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.1983, allocations: 15.92 kB / 0.6861 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.1984, allocations: 24.03 kB / 0.6861 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.1984, allocations: 8 kB / 0.6861 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002182/0.1987, allocations: 205.9 kB / 0.6863 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1987, allocations: 0 / 0.6863 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002971/0.199, allocations: 51.91 kB / 0.6864 GB, free: 15.53 MB / 0.5294 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.0002245/0.1992, allocations: 143 kB / 0.6865 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004999/0.1997, allocations: 291.2 kB / 0.6868 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1997, allocations: 0 / 0.6868 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.2, allocations: 187.3 kB / 0.687 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003309/0.2003, allocations: 30.56 kB / 0.687 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.2014, allocations: 0.503 MB / 0.6875 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.2017, allocations: 0.7484 MB / 0.6882 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.471e-05/0.2018, allocations: 23.44 kB / 0.6882 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of SimCode: time 2.2e-07/0.2018, allocations: 0 / 0.6882 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of Templates: time 0.006077/0.2079, allocations: 3.026 MB / 0.6912 GB, free: 10.51 MB / 0.5294 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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)