Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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) Running command: translateModel(ThermoPower.Test.GasComponents.TestCompressorInertia,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia") translateModel(ThermoPower.Test.GasComponents.TestCompressorInertia,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia") [: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/Complex 3.2.3+maint.om/package.mo): time 0.000948/0.000948, allocations: 191.1 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.048/1.048, allocations: 205.2 MB / 213.7 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008981/0.0008981, allocations: 91.36 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2963/0.2963, allocations: 48.76 MB / 358.5 MB, free: 53.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/7.965e-06, allocations: 224 / 424.7 MB, free: 8.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1114, allocations: 60.26 MB / 485 MB, free: 11.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.221/1.333, allocations: 0.7175 GB / 1.191 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/1.333, allocations: 79.95 kB / 1.191 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.5288/1.862, allocations: 195.3 MB / 1.382 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001301/1.862, allocations: 24.19 kB / 1.382 GB, free: 112.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002362/1.864, allocations: 1.111 MB / 1.383 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/1.864, allocations: 9.344 kB / 1.383 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/1.865, allocations: 176 kB / 1.383 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/1.867, allocations: 0.8875 MB / 1.384 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/1.867, allocations: 16.5 kB / 1.384 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.687e-05/1.867, allocations: 32.94 kB / 1.384 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007843/1.868, allocations: 459.8 kB / 1.385 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008654/1.869, allocations: 0.5358 MB / 1.385 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/1.869, allocations: 1.094 kB / 1.385 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.6e-05/1.869, allocations: 4.984 kB / 1.385 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/1.869, allocations: 13.41 kB / 1.385 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004026/1.873, allocations: 2.439 MB / 1.387 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/1.873, allocations: 152.8 kB / 1.388 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/1.873, allocations: 80.23 kB / 1.388 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002497/1.874, allocations: 104.4 kB / 1.388 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/1.874, allocations: 37.06 kB / 1.388 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=20): time 2.295e-06/1.874, allocations: 5.312 kB / 1.388 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=20): time 0.0005866/1.874, allocations: 262.6 kB / 1.388 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/1.874, allocations: 53.41 kB / 1.388 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/1.876, allocations: 1.441 MB / 1.39 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/1.876, allocations: 28.11 kB / 1.39 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/1.876, allocations: 373.2 kB / 1.39 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.401e-05/1.876, allocations: 73.25 kB / 1.39 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-05/1.876, allocations: 0 / 1.39 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.851e-05/1.876, allocations: 321.8 kB / 1.39 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/1.877, allocations: 131.6 kB / 1.39 GB, free: 107 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/1.877, allocations: 221 kB / 1.391 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002455/1.877, allocations: 149.5 kB / 1.391 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/1.877, allocations: 1.188 kB / 1.391 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007179/1.878, allocations: 450.9 kB / 1.391 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/1.878, allocations: 6.688 kB / 1.391 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/1.878, allocations: 7.734 kB / 1.391 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/1.878, allocations: 9.359 kB / 1.391 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006265/1.879, allocations: 113.3 kB / 1.391 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006744/1.879, allocations: 1.809 MB / 1.393 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/1.88, allocations: 42.8 kB / 1.393 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.041e-05/1.88, allocations: 19.53 kB / 1.393 GB, free: 104.7 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: Compressor.phi:VARIABLE(unit = "rad" ) "shaft rotation angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001456/1.88, allocations: 118.7 kB / 1.393 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/1.88, allocations: 105.2 kB / 1.393 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005925/1.881, allocations: 329.7 kB / 1.394 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/1.881, allocations: 10.42 kB / 1.394 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/1.881, allocations: 1.156 kB / 1.394 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/1.881, allocations: 0 / 1.394 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008084/1.882, allocations: 0.6757 MB / 1.394 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/1.882, allocations: 7.984 kB / 1.394 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00038/1.882, allocations: 68.61 kB / 1.394 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/1.882, allocations: 1.094 kB / 1.394 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/1.882, allocations: 6.438 kB / 1.394 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005769/1.883, allocations: 1.8 MB / 1.396 GB, free: 102 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.883, allocations: 3.938 kB / 1.396 GB, free: 102 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004996/1.883, allocations: 464.6 kB / 1.397 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/1.883, allocations: 267.7 kB / 1.397 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/1.884, allocations: 4 kB / 1.397 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/1.884, allocations: 11.98 kB / 1.397 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.88e-05/1.884, allocations: 15.97 kB / 1.397 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/1.884, allocations: 15.98 kB / 1.397 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001047/1.885, allocations: 1.103 MB / 1.398 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009442/1.886, allocations: 299.3 kB / 1.398 GB, free: 99.77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia1.w,Compressor.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00158/1.888, allocations: 1.035 MB / 1.399 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006631/1.888, allocations: 276 kB / 1.4 GB, free: 98.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.888, allocations: 0 / 1.4 GB, free: 98.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002767/1.889, allocations: 107.9 kB / 1.4 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009092/1.89, allocations: 185.2 kB / 1.4 GB, free: 98.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/1.892, allocations: 1.569 MB / 1.401 GB, free: 96.72 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007003/1.893, allocations: 1.22 MB / 1.403 GB, free: 95.48 MB / 0.5105 GB Notification: Performance of SimCode: time 5.91e-07/1.893, allocations: 0 / 1.403 GB, free: 95.48 MB / 0.5105 GB Notification: Performance of Templates: time 0.02216/1.915, allocations: 14.8 MB / 1.417 GB, free: 80.76 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.makefile (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.sim & ./ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe 2>&1)