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.001039/0.001039, allocations: 92.39 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 180.2 kB / 16.92 MB, free: 6.652 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.386/1.386, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.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 1.045/1.045, allocations: 143.2 MB / 435.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003362, allocations: 8 kB / 0.5171 GB, free: 11.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1841, allocations: 83.41 MB / 0.5985 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002232/0.1864, allocations: 1.652 MB / 0.6001 GB, free: 6 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1877, allocations: 0.7015 MB / 0.6008 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1878, allocations: 7.938 kB / 0.6008 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.188, allocations: 75.75 kB / 0.6009 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.1882, allocations: 79.7 kB / 0.601 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005273/0.1887, allocations: 162 kB / 0.6011 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002673/0.189, allocations: 235.5 kB / 0.6013 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.1891, allocations: 58.12 kB / 0.6014 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.1893, allocations: 99.59 kB / 0.6015 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.1895, allocations: 127.5 kB / 0.6016 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.1895, allocations: 15.94 kB / 0.6016 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.1896, allocations: 71.88 kB / 0.6017 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.1897, allocations: 43.83 kB / 0.6017 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.1899, allocations: 117 kB / 0.6019 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.1901, allocations: 219.5 kB / 0.6021 GB, free: 4 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1901, allocations: 0 / 0.6021 GB, free: 4 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.595e-06/0.1901, allocations: 0 / 0.6021 GB, free: 4 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.1901, allocations: 0 / 0.6021 GB, free: 4 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.0008226/0.191, allocations: 0.5431 MB / 0.6026 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.191, allocations: 8.031 kB / 0.6026 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.365e-05/0.1911, allocations: 32.56 kB / 0.6026 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000455/0.1915, allocations: 310.9 kB / 0.6029 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.1916, allocations: 12.38 kB / 0.6029 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/0.1916, allocations: 16.31 kB / 0.603 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.192, allocations: 231.9 kB / 0.6032 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.1921, allocations: 0 / 0.6032 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.1921, allocations: 4 kB / 0.6032 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.1921, allocations: 4 kB / 0.6032 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.1924, allocations: 139.6 kB / 0.6033 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008876/0.1933, allocations: 0.6962 MB / 0.604 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003769/0.1937, allocations: 182.5 kB / 0.6042 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.1939, allocations: 104.8 kB / 0.6043 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.1939, allocations: 0 / 0.6043 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/0.1942, allocations: 177.1 kB / 0.6044 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.1942, allocations: 0 / 0.6044 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007093/0.1949, allocations: 385.2 kB / 0.6048 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.195, allocations: 132.5 kB / 0.6049 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002699/0.1953, allocations: 282.6 kB / 0.6052 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1953, allocations: 33.7 kB / 0.6052 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.1955, allocations: 164.2 kB / 0.6054 GB, free: 340 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.113e-05/0.1955, allocations: 43.34 kB / 0.6054 GB, free: 296 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-05/0.1956, allocations: 25.72 kB / 0.6055 GB, free: 264 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.3257/0.5212, allocations: 338.8 kB / 0.6058 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.5216, allocations: 89.05 kB / 0.6059 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.5218, allocations: 135.5 kB / 0.606 GB, free: 40.86 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.5221, allocations: 244.4 kB / 0.6062 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5221, allocations: 0.8438 kB / 0.6062 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005318/0.5227, allocations: 351.4 kB / 0.6066 GB, free: 40.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.5227, allocations: 39.69 kB / 0.6066 GB, free: 40.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.5227, allocations: 0.5625 kB / 0.6066 GB, free: 40.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.5228, allocations: 6.625 kB / 0.6066 GB, free: 40.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.5229, allocations: 25.41 kB / 0.6066 GB, free: 40.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.5229, allocations: 0 / 0.6066 GB, free: 40.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.5231, allocations: 29.25 kB / 0.6067 GB, free: 40.67 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.5231, allocations: 5.938 kB / 0.6067 GB, free: 40.67 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.0001587/0.5232, allocations: 194.6 kB / 0.6069 GB, free: 40.53 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.5233, allocations: 27.03 kB / 0.6069 GB, free: 40.53 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.299e-05/0.5233, allocations: 34.84 kB / 0.6069 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.5234, allocations: 3.375 kB / 0.6069 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5234, allocations: 4.109 kB / 0.6069 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.5234, allocations: 0.5 kB / 0.6069 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.5236, allocations: 285.6 kB / 0.6072 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.5236, allocations: 0 / 0.6072 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.916e-05/0.5237, allocations: 20.28 kB / 0.6072 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.5237, allocations: 0 / 0.6072 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.5237, allocations: 10.47 kB / 0.6072 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.5237, allocations: 0 / 0.6072 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.5237, allocations: 3.219 kB / 0.6072 GB, free: 40.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000591/0.5243, allocations: 475.6 kB / 0.6077 GB, free: 40.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.5244, allocations: 105 kB / 0.6078 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.5244, allocations: 19.06 kB / 0.6078 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.5245, allocations: 15.23 kB / 0.6078 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.838e-05/0.5246, allocations: 24.88 kB / 0.6078 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.5247, allocations: 10.69 kB / 0.6078 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001615/0.5248, allocations: 199 kB / 0.608 GB, free: 40.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5248, allocations: 2.781 kB / 0.608 GB, free: 40.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002697/0.5251, allocations: 54.09 kB / 0.6081 GB, free: 40.06 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.0001801/0.5253, allocations: 132.7 kB / 0.6082 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004402/0.5257, allocations: 313.1 kB / 0.6085 GB, free: 39.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5258, allocations: 0 / 0.6085 GB, free: 39.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.526, allocations: 191 kB / 0.6087 GB, free: 39.85 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.5263, allocations: 31.61 kB / 0.6087 GB, free: 39.85 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009091/0.5272, allocations: 0.5751 MB / 0.6093 GB, free: 39.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.5274, allocations: 0.7527 MB / 0.61 GB, free: 38.85 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.891e-05/0.5275, allocations: 16.66 kB / 0.61 GB, free: 38.85 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.5275, allocations: 4 kB / 0.61 GB, free: 38.84 MB / 0.4981 GB Notification: Performance of Templates: time 0.004588/0.5321, allocations: 2.965 MB / 0.6129 GB, free: 38.66 MB / 0.4981 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)