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/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.6864/0.6864, allocations: 127.4 MB / 134.6 MB, free: 4.102 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001525/0.001525, allocations: 177.3 kB / 164.4 MB, free: 6.898 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.1 MB / 399.1 MB, free: 6.09 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000951/0.000951, allocations: 90.36 kB / 476.3 MB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 8.776e-06/8.806e-06, allocations: 0 / 0.546 GB, free: 42.77 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1813, allocations: 76.75 MB / 0.6209 GB, free: 13.94 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.54/0.7214, allocations: 105 MB / 0.7235 GB, free: 7.426 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.7217, allocations: 83.94 kB / 0.7235 GB, free: 7.344 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.01664/0.7384, allocations: 5.483 MB / 0.7289 GB, free: 1.871 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.7384, allocations: 4 kB / 0.7289 GB, free: 1.867 MB / 490.7 MB 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.001051/0.7395, allocations: 0.558 MB / 0.7294 GB, free: 1.258 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.7396, allocations: 8.031 kB / 0.7294 GB, free: 1.25 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.7397, allocations: 31.62 kB / 0.7295 GB, free: 1.219 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006681/0.7404, allocations: 298.2 kB / 0.7298 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.7404, allocations: 8 kB / 0.7298 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.7405, allocations: 8 kB / 0.7298 GB, free: 0.8711 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003055/0.7408, allocations: 136.2 kB / 0.7299 GB, free: 0.7344 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.7412, allocations: 211.2 kB / 0.7301 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.7412, allocations: 0 / 0.7301 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.7413, allocations: 0 / 0.7301 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.7413, allocations: 4 kB / 0.7301 GB, free: 0.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.7425, allocations: 0.7059 MB / 0.7308 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.7427, allocations: 146.6 kB / 0.7309 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.7429, allocations: 104.9 kB / 0.731 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.7429, allocations: 0 / 0.731 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.7432, allocations: 177.1 kB / 0.7312 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.7432, allocations: 0.75 kB / 0.7312 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=15): time 0.0005231/0.7437, allocations: 233.3 kB / 0.7314 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/0.7438, allocations: 132.5 kB / 0.7316 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.744, allocations: 221.1 kB / 0.7318 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.7441, allocations: 37.7 kB / 0.7318 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.584e-05/0.7442, allocations: 128.1 kB / 0.7319 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.083e-05/0.7443, allocations: 39.45 kB / 0.732 GB, free: 14.47 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.345e-05/0.7443, allocations: 96 / 0.732 GB, free: 14.47 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.7444, allocations: 339.9 kB / 0.7323 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.7446, allocations: 96.09 kB / 0.7324 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.7448, allocations: 140.5 kB / 0.7325 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.745, allocations: 91.34 kB / 0.7326 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.7451, allocations: 0 / 0.7326 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004513/0.7455, allocations: 261.2 kB / 0.7328 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.7455, allocations: 4 kB / 0.7329 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.7456, allocations: 7.969 kB / 0.7329 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.7456, allocations: 12.06 kB / 0.7329 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.7458, allocations: 31.91 kB / 0.7329 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.7458, allocations: 4 kB / 0.7329 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.746, allocations: 39.83 kB / 0.7329 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/0.746, allocations: 16 kB / 0.733 GB, free: 13.42 MB / 0.4948 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 () * 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.000145/0.7462, allocations: 142.7 kB / 0.7331 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.7462, allocations: 27.72 kB / 0.7331 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.923e-05/0.7463, allocations: 25.77 kB / 0.7331 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.7463, allocations: 4 kB / 0.7331 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.7463, allocations: 3.938 kB / 0.7332 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.7463, allocations: 3.906 kB / 0.7332 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003031/0.7467, allocations: 262.1 kB / 0.7334 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.7467, allocations: 0 / 0.7334 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.7468, allocations: 23.98 kB / 0.7334 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.7468, allocations: 0 / 0.7334 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.7469, allocations: 7.906 kB / 0.7334 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.7469, allocations: 4 kB / 0.7334 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.7469, allocations: 0 / 0.7334 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006653/0.7476, allocations: 414.8 kB / 0.7338 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.7476, allocations: 92.83 kB / 0.7339 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.782e-05/0.7477, allocations: 8 kB / 0.7339 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.7479, allocations: 36.03 kB / 0.734 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.748, allocations: 27.95 kB / 0.734 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/0.748, allocations: 8 kB / 0.734 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0001807/0.7482, allocations: 181.1 kB / 0.7342 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003343/0.7486, allocations: 64.05 kB / 0.7342 GB, free: 12.02 MB / 0.4948 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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.000253/0.7488, allocations: 141 kB / 0.7344 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003342/0.7492, allocations: 213.7 kB / 0.7346 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7492, allocations: 0 / 0.7346 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.7494, allocations: 145.6 kB / 0.7347 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.7497, allocations: 32.89 kB / 0.7347 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009395/0.7506, allocations: 336.6 kB / 0.7351 GB, free: 11.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000411/0.751, allocations: 0.7784 MB / 0.7358 GB, free: 10.33 MB / 0.4948 GB Notification: Performance of SimCode: time 2.31e-07/0.751, allocations: 0 / 0.7358 GB, free: 10.33 MB / 0.4948 GB Notification: Performance of Templates: time 0.006011/0.7571, allocations: 2.518 MB / 0.7383 GB, free: 7.832 MB / 0.4948 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)