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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [: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.00154/0.00154, allocations: 197.9 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009906/0.0009905, allocations: 94.89 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1182/0.1192, allocations: 56.9 MB / 343.2 MB, free: 8.637 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.2214, allocations: 51.47 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2584/0.4799, allocations: 79.15 MB / 473.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001441/0.4801, allocations: 64.66 kB / 473.9 MB, free: 12.75 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.0137/0.4938, allocations: 5.508 MB / 479.4 MB, free: 9.391 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4938, allocations: 12 kB / 479.4 MB, free: 9.379 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.455e-05/0.494, allocations: 27.62 kB / 479.5 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.4943, allocations: 247.2 kB / 479.7 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.4944, allocations: 12 kB / 479.7 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.4944, allocations: 15.94 kB / 479.7 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002362/0.4947, allocations: 114.6 kB / 479.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/0.4949, allocations: 186.7 kB / 480 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.495, allocations: 7.906 kB / 480 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.495, allocations: 0 / 480 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.495, allocations: 4 kB / 480 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.4962, allocations: 1.023 MB / 481.1 MB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.4964, allocations: 177.2 kB / 481.2 MB, free: 7.648 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.228e-05/0.4965, allocations: 55.48 kB / 481.3 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.4965, allocations: 0 / 481.3 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.4966, allocations: 41.69 kB / 481.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.4966, allocations: 0 / 481.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003278/0.4969, allocations: 127.7 kB / 481.4 MB, free: 7.434 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/0.4969, allocations: 132.5 kB / 481.6 MB, free: 7.273 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.4971, allocations: 165.5 kB / 481.7 MB, free: 7.125 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.4971, allocations: 29.7 kB / 481.8 MB, free: 7.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.173e-05/0.4971, allocations: 150 kB / 481.9 MB, free: 6.949 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.474e-05/0.4972, allocations: 61.48 kB / 482 MB, free: 6.898 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.864e-06/0.4972, allocations: 0 / 482 MB, free: 6.898 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.255e-05/0.4973, allocations: 337.4 kB / 482.3 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.721e-05/0.4973, allocations: 46.17 kB / 482.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.851e-05/0.4974, allocations: 143.9 kB / 482.5 MB, free: 6.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.862e-05/0.4976, allocations: 72.19 kB / 482.6 MB, free: 6.328 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4976, allocations: 4 kB / 482.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002925/0.4979, allocations: 207.3 kB / 482.8 MB, free: 6.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.4979, allocations: 4 kB / 482.8 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4979, allocations: 5.438 kB / 482.8 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.4979, allocations: 8.375 kB / 482.8 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00027/0.4982, allocations: 71.89 kB / 482.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.4982, allocations: 4 kB / 482.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.4984, allocations: 23.75 kB / 482.9 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.4984, allocations: 23.8 kB / 482.9 MB, free: 6.023 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.23e-05/0.4985, allocations: 108.9 kB / 483 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.933e-05/0.4986, allocations: 19.81 kB / 483 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.089e-05/0.4986, allocations: 24.5 kB / 483.1 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.4986, allocations: 7.922 kB / 483.1 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4987, allocations: 4 kB / 483.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.4987, allocations: 0 / 483.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003312/0.499, allocations: 227.7 kB / 483.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.499, allocations: 2.062 kB / 483.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.4993, allocations: 55.59 kB / 483.3 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.4993, allocations: 0 / 483.3 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.4993, allocations: 7.984 kB / 483.4 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.4994, allocations: 7.938 kB / 483.4 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4994, allocations: 6.969 kB / 483.4 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003348/0.4997, allocations: 0.5255 MB / 483.9 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003859/0.5001, allocations: 0.9399 MB / 484.8 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.006e-05/0.5002, allocations: 99.84 kB / 484.9 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.5002, allocations: 0 / 484.9 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.5004, allocations: 4 kB / 484.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.072e-05/0.5005, allocations: 12.17 kB / 484.9 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.5005, allocations: 11.05 kB / 485 MB, free: 3.988 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.337e-05/0.5006, allocations: 130.2 kB / 485.1 MB, free: 3.879 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001048/0.5016, allocations: 60.03 kB / 485.1 MB, free: 3.82 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.000119/0.5018, allocations: 122.4 kB / 485.3 MB, free: 3.695 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001924/0.502, allocations: 118.6 kB / 485.4 MB, free: 3.609 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.502, allocations: 0 / 485.4 MB, free: 3.609 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.296e-05/0.5021, allocations: 58.73 kB / 485.4 MB, free: 3.566 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.5025, allocations: 40.73 kB / 485.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.5037, allocations: 0.7357 MB / 486.2 MB, free: 2.809 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.5039, allocations: 0.8033 MB / 487 MB, free: 1.98 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.504, allocations: 0 / 487 MB, free: 1.98 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)