Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [: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.001435/0.001435, allocations: 190 kB / 8.137 MB, free: 2.125 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.111/1.111, allocations: 194.2 MB / 202.8 MB, free: 8.676 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.001789/0.001789, allocations: 123.2 kB / 247.7 MB, free: 6.426 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.183e-06/7.203e-06, allocations: 4 kB / 297.6 MB, free: 8.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07263/0.07265, allocations: 44.49 MB / 342.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2134/0.2861, allocations: 93.16 MB / 435.2 MB, free: 2.566 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.2863, allocations: 79.16 kB / 435.3 MB, free: 2.527 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.07768/0.364, allocations: 28.08 MB / 463.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.18e-05/0.3641, allocations: 27.98 kB / 463.4 MB, free: 11.72 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001943/0.366, allocations: 1.158 MB / 464.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.3661, allocations: 8.031 kB / 464.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007773/0.3669, allocations: 199 kB / 464.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.3684, allocations: 0.8105 MB / 465.6 MB, free: 9.707 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.3684, allocations: 28 kB / 465.6 MB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.3686, allocations: 71.41 kB / 465.7 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001022/0.3696, allocations: 0.5385 MB / 466.2 MB, free: 9.293 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.3709, allocations: 0.7546 MB / 467 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.454e-05/0.371, allocations: 6.5 kB / 467 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.525e-05/0.371, allocations: 0 / 467 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.3711, allocations: 27.91 kB / 467 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005355/0.3764, allocations: 3.77 MB / 470.8 MB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.3767, allocations: 180.2 kB / 470.9 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005269/0.3773, allocations: 264.1 kB / 471.2 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.3773, allocations: 7.984 kB / 471.2 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.3774, allocations: 38.12 kB / 471.3 MB, free: 5.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.753e-06/0.3774, allocations: 0 / 471.3 MB, free: 5.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.002361/0.3797, allocations: 1.143 MB / 472.4 MB, free: 4.152 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.3798, allocations: 81.55 kB / 472.5 MB, free: 4.055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008794/0.3807, allocations: 0.595 MB / 473.1 MB, free: 3.605 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.505e-05/0.3807, allocations: 25.7 kB / 473.1 MB, free: 3.574 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002957/0.381, allocations: 477.6 kB / 473.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.3812, allocations: 165.5 kB / 473.7 MB, free: 2.934 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.36e-05/0.3812, allocations: 4 kB / 473.7 MB, free: 2.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3814, allocations: 382.8 kB / 474.1 MB, free: 2.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.3817, allocations: 141.6 kB / 474.2 MB, free: 2.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004523/0.3821, allocations: 428.4 kB / 474.7 MB, free: 1.855 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.3826, allocations: 220.6 kB / 474.9 MB, free: 1.637 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3826, allocations: 8 kB / 474.9 MB, free: 1.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001265/0.3839, allocations: 0.6758 MB / 475.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.3839, allocations: 4 kB / 475.6 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.3839, allocations: 12 kB / 475.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003415/0.3843, allocations: 101.9 kB / 475.7 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006275/0.3849, allocations: 163.7 kB / 475.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002748/0.3877, allocations: 2.905 MB / 478.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006052/0.3883, allocations: 27.89 kB / 478.8 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.3884, allocations: 39.98 kB / 478.8 MB, free: 13.45 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 (85): * Single equations (assignments): 83 * 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.0001524/0.3885, allocations: 136.5 kB / 478.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3887, allocations: 82.97 kB / 479 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000904/0.3896, allocations: 457.2 kB / 479.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3896, allocations: 4 kB / 479.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3896, allocations: 4 kB / 479.5 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.3896, allocations: 3.984 kB / 479.5 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.3918, allocations: 1.283 MB / 480.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3918, allocations: 4.219 kB / 480.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.3922, allocations: 79.91 kB / 480.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002708/0.3925, allocations: 89.84 kB / 480.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.3926, allocations: 8 kB / 480.9 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/0.3951, allocations: 2.89 MB / 483.8 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3951, allocations: 0 / 483.8 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001171/0.3963, allocations: 0.8362 MB / 484.7 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.3966, allocations: 192 kB / 484.9 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.3967, allocations: 4 kB / 484.9 MB, free: 6.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.3972, allocations: 27.98 kB / 484.9 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.311e-05/0.3973, allocations: 27.95 kB / 484.9 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.3974, allocations: 16 kB / 484.9 MB, free: 6.883 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006017/0.398, allocations: 455.2 kB / 485.4 MB, free: 6.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000889/0.3989, allocations: 192 kB / 485.6 MB, free: 6.258 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 (39): * Single equations (assignments): 37 * 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.0004073/0.3993, allocations: 267.8 kB / 485.8 MB, free: 5.992 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.4004, allocations: 0.6386 MB / 486.5 MB, free: 5.336 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4004, allocations: 0 / 486.5 MB, free: 5.336 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.401, allocations: 417.6 kB / 486.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008645/0.4019, allocations: 171.3 kB / 487 MB, free: 4.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.4045, allocations: 1.25 MB / 488.3 MB, free: 3.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007953/0.4053, allocations: 1.09 MB / 489.4 MB, free: 2.324 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4053, allocations: 0 / 489.4 MB, free: 2.324 MB / 362.7 MB Notification: Performance of Templates: time 0.01891/0.4242, allocations: 9.493 MB / 498.9 MB, free: 8.859 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)