Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction") [: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.1+maint.om/package.mo): time 0.005981/0.005981, allocations: 174.3 kB / 7.447 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.416/1.416, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001431/0.001431, allocations: 112.4 kB / 217.7 MB, free: 8.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1533/0.1533, allocations: 37.97 MB / 294.8 MB, free: 9.633 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.755e-06/7.785e-06, allocations: 1.688 kB / 349.5 MB, free: 37.11 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09284/0.09287, allocations: 48.71 MB / 398.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.286/0.3789, allocations: 81.61 MB / 479.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.3791, allocations: 68.48 kB / 479.9 MB, free: 13.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03724/0.4164, allocations: 13.77 MB / 493.7 MB, free: 12.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.888e-05/0.4165, allocations: 11.56 kB / 493.7 MB, free: 12.64 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001687/0.4182, allocations: 0.8364 MB / 494.5 MB, free: 12.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.4182, allocations: 7.75 kB / 494.5 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.4185, allocations: 82.45 kB / 494.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009365/0.4194, allocations: 494 kB / 495.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.351e-05/0.4195, allocations: 15 kB / 495.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.4196, allocations: 38.95 kB / 495.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000584/0.4202, allocations: 261.8 kB / 495.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006957/0.4209, allocations: 391.6 kB / 495.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.4209, allocations: 8.453 kB / 495.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.764e-05/0.421, allocations: 0 / 495.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.421, allocations: 11.56 kB / 495.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003169/0.4242, allocations: 1.663 MB / 497.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000519/0.4247, allocations: 323.8 kB / 497.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.4249, allocations: 129.6 kB / 497.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.269e-05/0.425, allocations: 3.719 kB / 497.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.425, allocations: 40.94 kB / 497.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 3.106e-06/0.425, allocations: 0 / 497.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.0006311/0.4256, allocations: 320 kB / 498.2 MB, free: 10.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.4257, allocations: 136 kB / 498.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004068/0.4261, allocations: 365.1 kB / 498.7 MB, free: 10.42 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.4262, allocations: 25.7 kB / 498.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.457e-05/0.4263, allocations: 240.7 kB / 499 MB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.725e-05/0.4264, allocations: 141.3 kB / 499.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.072e-05/0.4264, allocations: 0 / 499.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.983e-05/0.4265, allocations: 369.9 kB / 499.5 MB, free: 9.773 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.4267, allocations: 120.9 kB / 499.6 MB, free: 9.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/0.427, allocations: 253.6 kB / 499.9 MB, free: 9.605 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.4272, allocations: 157.6 kB / 0.4883 GB, free: 9.574 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.4272, allocations: 0 / 0.4883 GB, free: 9.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0006289/0.4279, allocations: 431.6 kB / 0.4887 GB, free: 9.469 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.4279, allocations: 7.812 kB / 0.4887 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4279, allocations: 3.875 kB / 0.4887 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.4279, allocations: 7.625 kB / 0.4887 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005063/0.4284, allocations: 127.9 kB / 0.4888 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.4285, allocations: 11.62 kB / 0.4889 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/0.4289, allocations: 57.09 kB / 0.4889 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.823e-05/0.4289, allocations: 19.38 kB / 0.4889 GB, free: 9.402 MB / 330.7 MB 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 (63): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * 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.0001094/0.429, allocations: 120.1 kB / 0.489 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.4292, allocations: 54.41 kB / 0.4891 GB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.4293, allocations: 56.55 kB / 0.4891 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.4293, allocations: 7.781 kB / 0.4892 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4293, allocations: 0 / 0.4892 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.4293, allocations: 3.984 kB / 0.4892 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006838/0.43, allocations: 489.4 kB / 0.4896 GB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.43, allocations: 3.906 kB / 0.4896 GB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005107/0.4305, allocations: 89.58 kB / 0.4897 GB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.4305, allocations: 3.938 kB / 0.4897 GB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.4306, allocations: 3.844 kB / 0.4897 GB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.4306, allocations: 11.83 kB / 0.4897 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4306, allocations: 0 / 0.4897 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006773/0.4313, allocations: 0.6503 MB / 0.4904 GB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/0.4315, allocations: 169.2 kB / 0.4905 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.722e-05/0.4316, allocations: 7.75 kB / 0.4905 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.432, allocations: 31.22 kB / 0.4906 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.942e-05/0.4321, allocations: 31.33 kB / 0.4906 GB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.4321, allocations: 10.47 kB / 0.4906 GB, free: 8.461 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002598/0.4324, allocations: 280.4 kB / 0.4909 GB, free: 8.355 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004869/0.4329, allocations: 112.5 kB / 0.491 GB, free: 8.336 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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.0001303/0.433, allocations: 103.4 kB / 0.4911 GB, free: 8.242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005124/0.4335, allocations: 319.6 kB / 0.4914 GB, free: 8.215 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4336, allocations: 3.938 kB / 0.4914 GB, free: 8.211 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.4338, allocations: 153.4 kB / 0.4915 GB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007645/0.4345, allocations: 139.5 kB / 0.4917 GB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.4362, allocations: 0.9281 MB / 0.4926 GB, free: 7.645 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004893/0.4367, allocations: 0.9401 MB / 0.4935 GB, free: 22.84 MB / 346.7 MB Notification: Performance of SimCode: time 8.82e-07/0.4367, allocations: 0 / 0.4935 GB, free: 22.84 MB / 346.7 MB Notification: Performance of Templates: time 0.01005/0.4467, allocations: 5.654 MB / 0.499 GB, free: 20.07 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)