Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [: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.2+maint.om/package.mo): time 0.001577/0.001577, allocations: 192.1 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.083/1.083, allocations: 194.2 MB / 202.8 MB, free: 8.758 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001835/0.001835, allocations: 116.7 kB / 247.7 MB, free: 6.293 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.911e-06/5.951e-06, allocations: 0 / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07194/0.07196, allocations: 44.48 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2133/0.2853, allocations: 92.37 MB / 434.4 MB, free: 3.281 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.2855, allocations: 79.83 kB / 434.5 MB, free: 3.238 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.07515/0.3607, allocations: 27.62 MB / 462.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.902e-05/0.3608, allocations: 20 kB / 462.2 MB, free: 12.82 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002036/0.3628, allocations: 1.124 MB / 463.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.3629, allocations: 8.031 kB / 463.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008477/0.3637, allocations: 198.3 kB / 463.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.3654, allocations: 0.8013 MB / 464.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.3655, allocations: 32 kB / 464.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.3656, allocations: 59.98 kB / 464.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001115/0.3668, allocations: 0.5358 MB / 464.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.3681, allocations: 0.7572 MB / 465.7 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.3682, allocations: 0 / 465.7 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.952e-05/0.3683, allocations: 0 / 465.7 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.571e-05/0.3683, allocations: 28 kB / 465.7 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00541/0.3737, allocations: 3.736 MB / 469.4 MB, free: 6.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.3741, allocations: 190.8 kB / 469.6 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006039/0.3747, allocations: 257.4 kB / 469.9 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.3747, allocations: 4 kB / 469.9 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.3748, allocations: 46.33 kB / 469.9 MB, free: 6.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 2.815e-06/0.3748, allocations: 7.984 kB / 469.9 MB, free: 6.277 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.002205/0.377, allocations: 1.093 MB / 471 MB, free: 5.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.3771, allocations: 89.53 kB / 471.1 MB, free: 5.215 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008106/0.3779, allocations: 0.5784 MB / 471.7 MB, free: 4.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.3779, allocations: 25.7 kB / 471.7 MB, free: 4.758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.3782, allocations: 471 kB / 472.2 MB, free: 4.344 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.3783, allocations: 158 kB / 472.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.209e-05/0.3783, allocations: 0 / 472.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3785, allocations: 382.5 kB / 472.7 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.3787, allocations: 140.3 kB / 472.8 MB, free: 3.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004356/0.3792, allocations: 428.4 kB / 473.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003646/0.3796, allocations: 220.6 kB / 473.5 MB, free: 3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3796, allocations: 4 kB / 473.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00117/0.3808, allocations: 0.6603 MB / 474.1 MB, free: 2.324 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.3808, allocations: 9 kB / 474.1 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.3808, allocations: 8 kB / 474.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003173/0.3811, allocations: 97.95 kB / 474.2 MB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005823/0.3817, allocations: 163.7 kB / 474.4 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002513/0.3842, allocations: 2.902 MB / 477.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.3848, allocations: 23.89 kB / 477.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.334e-05/0.3849, allocations: 36 kB / 477.4 MB, free: 14.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.3851, allocations: 136.7 kB / 477.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.3852, allocations: 79.05 kB / 477.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008157/0.386, allocations: 444.8 kB / 478 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.386, allocations: 8 kB / 478 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.386, allocations: 0 / 478 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.386, allocations: 3.984 kB / 478 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00192/0.388, allocations: 1.264 MB / 479.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.388, allocations: 224 / 479.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.3884, allocations: 75.91 kB / 479.4 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002618/0.3886, allocations: 93.78 kB / 479.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.3887, allocations: 11.91 kB / 479.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002243/0.3909, allocations: 2.882 MB / 482.3 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3909, allocations: 0 / 482.3 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001053/0.392, allocations: 0.8213 MB / 483.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.3923, allocations: 188.1 kB / 483.3 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.3924, allocations: 4 kB / 483.3 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004453/0.3929, allocations: 19.98 kB / 483.4 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.711e-05/0.3929, allocations: 35.86 kB / 483.4 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.393, allocations: 16 kB / 483.4 MB, free: 8.352 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005315/0.3935, allocations: 435.2 kB / 483.8 MB, free: 7.934 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008201/0.3943, allocations: 192 kB / 484 MB, free: 7.746 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003938/0.3947, allocations: 268.6 kB / 484.3 MB, free: 7.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3958, allocations: 0.6284 MB / 484.9 MB, free: 6.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3958, allocations: 8.062 kB / 484.9 MB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005665/0.3964, allocations: 391.7 kB / 485.3 MB, free: 6.422 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009336/0.3973, allocations: 174.8 kB / 485.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.3999, allocations: 1.238 MB / 486.7 MB, free: 4.965 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.4007, allocations: 1.089 MB / 487.8 MB, free: 3.852 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4007, allocations: 0 / 487.8 MB, free: 3.852 MB / 362.7 MB Notification: Performance of Templates: time 0.01849/0.4192, allocations: 9.298 MB / 497.1 MB, free: 10.58 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)