Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [: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 trunk/package.mo): time 0.00181/0.00181, allocations: 196 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000832/0.000832, allocations: 95.14 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.963e-06/7.004e-06, allocations: 0 / 343.1 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1025, allocations: 51.47 MB / 394.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2984/0.4009, allocations: 79.14 MB / 473.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.4012, allocations: 65.91 kB / 473.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01332/0.4146, allocations: 5.035 MB / 478.9 MB, free: 9.953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.4146, allocations: 7.938 kB / 478.9 MB, free: 9.945 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0005607/0.4152, allocations: 471 kB / 479.3 MB, free: 9.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4153, allocations: 12.03 kB / 479.3 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.745e-05/0.4153, allocations: 31.56 kB / 479.4 MB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.4156, allocations: 241.7 kB / 479.6 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.4156, allocations: 11.94 kB / 479.6 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/0.4157, allocations: 15.69 kB / 479.6 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002066/0.4159, allocations: 107.2 kB / 479.7 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.4162, allocations: 198.3 kB / 479.9 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.4162, allocations: 8.656 kB / 479.9 MB, free: 8.879 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.4162, allocations: 3.984 kB / 479.9 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4162, allocations: 4 kB / 479.9 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.4173, allocations: 1.016 MB / 481 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.4176, allocations: 173.3 kB / 481.1 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.607e-05/0.4176, allocations: 54.94 kB / 481.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.4177, allocations: 7.938 kB / 481.2 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.4177, allocations: 38.44 kB / 481.2 MB, free: 7.613 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.4177, allocations: 2.812 kB / 481.2 MB, free: 7.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003172/0.418, allocations: 128.9 kB / 481.4 MB, free: 7.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.4181, allocations: 132.5 kB / 481.5 MB, free: 7.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.4182, allocations: 162.7 kB / 481.6 MB, free: 7.191 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.4182, allocations: 33.7 kB / 481.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.927e-05/0.4183, allocations: 150 kB / 481.8 MB, free: 7.012 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.308e-05/0.4183, allocations: 61.98 kB / 481.9 MB, free: 6.961 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.4184, allocations: 0 / 481.9 MB, free: 6.961 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.993e-05/0.4184, allocations: 331.9 kB / 482.2 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.995e-05/0.4185, allocations: 50.8 kB / 482.3 MB, free: 6.605 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.4186, allocations: 145.6 kB / 482.4 MB, free: 6.438 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.263e-05/0.4187, allocations: 66.84 kB / 482.5 MB, free: 6.395 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.4187, allocations: 4 kB / 482.5 MB, free: 6.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002717/0.419, allocations: 207.2 kB / 482.7 MB, free: 6.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.419, allocations: 4 kB / 482.7 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.419, allocations: 7.984 kB / 482.7 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.419, allocations: 4 kB / 482.7 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.4193, allocations: 71.66 kB / 482.8 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.4193, allocations: 7.938 kB / 482.8 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.4195, allocations: 32.02 kB / 482.8 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.4195, allocations: 14.84 kB / 482.8 MB, free: 6.09 MB / 346.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 (32): * Single equations (assignments): 32 * 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 6.545e-05/0.4196, allocations: 116.8 kB / 482.9 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.069e-05/0.4197, allocations: 15.81 kB / 482.9 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.284e-05/0.4198, allocations: 27.36 kB / 483 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.4198, allocations: 0.9375 kB / 483 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4198, allocations: 4 kB / 483 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4198, allocations: 0 / 483 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003215/0.4201, allocations: 230.6 kB / 483.2 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4201, allocations: 4 kB / 483.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/0.4204, allocations: 55.91 kB / 483.3 MB, free: 5.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.4204, allocations: 1.781 kB / 483.3 MB, free: 5.645 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.4205, allocations: 9.047 kB / 483.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.4205, allocations: 0 / 483.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4205, allocations: 4 kB / 483.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003114/0.4208, allocations: 0.5236 MB / 483.8 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.4208, allocations: 88.92 kB / 483.9 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.4209, allocations: 7.984 kB / 483.9 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.4211, allocations: 8 kB / 483.9 MB, free: 4.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/0.4212, allocations: 20.08 kB / 483.9 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.4212, allocations: 4 kB / 483.9 MB, free: 4.973 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.386e-05/0.4213, allocations: 140.1 kB / 484.1 MB, free: 4.855 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004098/0.4217, allocations: 59.92 kB / 484.1 MB, free: 4.797 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001147/0.4218, allocations: 96.28 kB / 484.2 MB, free: 4.695 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.422, allocations: 132.4 kB / 484.3 MB, free: 4.598 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.422, allocations: 0 / 484.3 MB, free: 4.598 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.917e-05/0.4221, allocations: 53.55 kB / 484.4 MB, free: 4.559 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.4226, allocations: 44.94 kB / 484.4 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.4237, allocations: 0.7311 MB / 485.2 MB, free: 3.797 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.424, allocations: 0.7823 MB / 485.9 MB, free: 2.988 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.424, allocations: 0 / 485.9 MB, free: 2.988 MB / 346.7 MB Notification: Performance of Templates: time 0.004658/0.4286, allocations: 2.162 MB / 488.1 MB, free: 0.9023 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)