Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.001504/0.001504, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.09/1.09, allocations: 194.2 MB / 202.8 MB, free: 8.742 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.001744/0.001744, allocations: 121.3 kB / 247.7 MB, free: 6.254 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.755e-06/7.775e-06, allocations: 0 / 297.6 MB, free: 7.918 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07415/0.07417, allocations: 44.48 MB / 342.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.2844, allocations: 87.87 MB / 429.9 MB, free: 7.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.2847, allocations: 85.81 kB / 430 MB, free: 7.363 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.05961/0.3443, allocations: 22.53 MB / 452.5 MB, free: 5.121 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.331e-05/0.3444, allocations: 19.98 kB / 452.6 MB, free: 5.102 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001597/0.346, allocations: 0.9902 MB / 453.5 MB, free: 4.125 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.346, allocations: 12.03 kB / 453.6 MB, free: 4.113 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005901/0.3466, allocations: 150.6 kB / 453.7 MB, free: 3.965 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.3479, allocations: 0.6821 MB / 454.4 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.348, allocations: 24 kB / 454.4 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3481, allocations: 55.84 kB / 454.5 MB, free: 3.309 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008138/0.3489, allocations: 426.6 kB / 454.9 MB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.35, allocations: 0.6389 MB / 455.5 MB, free: 2.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.35, allocations: 3.906 kB / 455.5 MB, free: 2.566 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-05/0.3501, allocations: 0 / 455.5 MB, free: 2.566 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.3501, allocations: 23.98 kB / 455.6 MB, free: 2.543 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004089/0.3542, allocations: 3.3 MB / 458.9 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.3544, allocations: 127.5 kB / 459 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.3546, allocations: 92.12 kB / 459.1 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.3546, allocations: 11.88 kB / 459.1 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.3547, allocations: 38.06 kB / 459.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.3547, allocations: 0 / 459.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001251/0.3559, allocations: 0.7542 MB / 459.9 MB, free: 14.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.356, allocations: 81.34 kB / 459.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006483/0.3566, allocations: 0.5252 MB / 460.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.3567, allocations: 29.7 kB / 460.5 MB, free: 14.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.3569, allocations: 423.8 kB / 460.9 MB, free: 13.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.718e-05/0.357, allocations: 100.9 kB / 461 MB, free: 13.78 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.513e-05/0.357, allocations: 0 / 461 MB, free: 13.78 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3571, allocations: 367.6 kB / 461.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.3573, allocations: 97.94 kB / 461.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.3576, allocations: 380.4 kB / 461.8 MB, free: 12.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.3579, allocations: 177.8 kB / 462 MB, free: 12.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3579, allocations: 4 kB / 462 MB, free: 12.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008056/0.3588, allocations: 488.2 kB / 462.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3588, allocations: 12.77 kB / 462.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.3588, allocations: 8 kB / 462.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.359, allocations: 32.23 kB / 462.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005185/0.3595, allocations: 147 kB / 462.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.3606, allocations: 1.234 MB / 463.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000506/0.3611, allocations: 28.14 kB / 464 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.3612, allocations: 26.62 kB / 464 MB, free: 10.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.3613, allocations: 135.7 kB / 464.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-05/0.3614, allocations: 67.25 kB / 464.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004662/0.3619, allocations: 261.4 kB / 464.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3619, allocations: 4 kB / 464.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3619, allocations: 0 / 464.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.3619, allocations: 4 kB / 464.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.3632, allocations: 0.9111 MB / 465.3 MB, free: 9.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3632, allocations: 0 / 465.3 MB, free: 9.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003034/0.3635, allocations: 66.12 kB / 465.4 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.59e-05/0.3636, allocations: 23.83 kB / 465.4 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.3637, allocations: 12.39 kB / 465.4 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008083/0.3645, allocations: 1.224 MB / 466.7 MB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.3645, allocations: 7.969 kB / 466.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006401/0.3652, allocations: 0.5668 MB / 467.2 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.3654, allocations: 160.7 kB / 467.4 MB, free: 7.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.105e-05/0.3655, allocations: 7.25 kB / 467.4 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.3658, allocations: 23.98 kB / 467.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.3659, allocations: 23.16 kB / 467.5 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.3659, allocations: 8 kB / 467.5 MB, free: 7.488 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004595/0.3664, allocations: 400 kB / 467.9 MB, free: 7.211 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006246/0.367, allocations: 147.4 kB / 468 MB, free: 7.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003463/0.3674, allocations: 253.2 kB / 468.2 MB, free: 6.824 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006092/0.368, allocations: 383.4 kB / 468.6 MB, free: 6.516 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.368, allocations: 1 kB / 468.6 MB, free: 6.516 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.3683, allocations: 207.9 kB / 468.8 MB, free: 6.332 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.369, allocations: 151.6 kB / 469 MB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.3711, allocations: 1.009 MB / 470 MB, free: 5.238 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006482/0.3717, allocations: 1.003 MB / 471 MB, free: 4.203 MB / 346.7 MB Notification: Performance of SimCode: time 3.4e-07/0.3717, allocations: 0 / 471 MB, free: 4.203 MB / 346.7 MB Notification: Performance of Templates: time 0.01467/0.3864, allocations: 7.104 MB / 478.1 MB, free: 13.14 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)