Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [: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.1+maint.om/package.mo): time 0.001416/0.001416, allocations: 180.3 kB / 7.453 MB, free: 1.555 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.33/1.33, allocations: 170.6 MB / 178.4 MB, free: 4 MB / 146.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001757/0.001756, allocations: 107.9 kB / 217.7 MB, free: 12.74 MB / 194.8 MB Notification: Performance of FrontEnd - loaded program: time 8.997e-06/9.027e-06, allocations: 0 / 261.8 MB, free: 17.12 MB / 194.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06751/0.06753, allocations: 38.75 MB / 300.5 MB, free: 10.32 MB / 226.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2385/0.3061, allocations: 84.14 MB / 384.6 MB, free: 480 kB / 274.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.3064, allocations: 82.14 kB / 384.7 MB, free: 436 kB / 274.8 MB Notification: Performance of FrontEnd: time 0.1098/0.4161, allocations: 40.23 MB / 425 MB, free: 13.88 MB / 322.8 MB Notification: Performance of Transformations before backend: time 0.0001328/0.4163, allocations: 36 kB / 425 MB, free: 13.84 MB / 322.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003473/0.4198, allocations: 1.592 MB / 426.6 MB, free: 12.19 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.4199, allocations: 8.031 kB / 426.6 MB, free: 12.18 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001299/0.4212, allocations: 265.6 kB / 426.8 MB, free: 11.92 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002747/0.4239, allocations: 1.117 MB / 428 MB, free: 10.76 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.006e-05/0.424, allocations: 48 kB / 428 MB, free: 10.71 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003635/0.4244, allocations: 99.91 kB / 428.1 MB, free: 10.62 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00211/0.4265, allocations: 0.8106 MB / 428.9 MB, free: 9.805 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002806/0.4294, allocations: 1.216 MB / 430.1 MB, free: 8.516 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.244e-05/0.4294, allocations: 0 / 430.1 MB, free: 8.516 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.4296, allocations: 4 kB / 430.1 MB, free: 8.512 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.841e-05/0.4296, allocations: 43.91 kB / 430.2 MB, free: 8.469 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009247/0.4389, allocations: 6.365 MB / 436.5 MB, free: 1.754 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.4393, allocations: 230.5 kB / 436.8 MB, free: 1.523 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003389/0.4396, allocations: 191.3 kB / 437 MB, free: 1.336 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-05/0.4397, allocations: 4.438 kB / 437 MB, free: 1.332 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003538/0.4401, allocations: 232.8 kB / 437.2 MB, free: 1.078 MB / 322.8 MB Notification: Performance of pre-optimization done (n=50): time 2.966e-06/0.4401, allocations: 0 / 437.2 MB, free: 1.078 MB / 322.8 MB Notification: Performance of matching and sorting (n=56): time 0.002863/0.4429, allocations: 1.499 MB / 438.7 MB, free: 15.51 MB / 338.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.1e-05/0.443, allocations: 188.5 kB / 438.9 MB, free: 15.28 MB / 338.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.4444, allocations: 0.8477 MB / 439.7 MB, free: 14.42 MB / 338.8 MB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/0.4444, allocations: 29.7 kB / 439.8 MB, free: 14.39 MB / 338.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006047/0.445, allocations: 0.7335 MB / 440.5 MB, free: 13.64 MB / 338.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.4452, allocations: 205.1 kB / 440.7 MB, free: 13.44 MB / 338.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.4453, allocations: 0 / 440.7 MB, free: 13.44 MB / 338.8 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4454, allocations: 349.9 kB / 441 MB, free: 13.09 MB / 338.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.4458, allocations: 186.6 kB / 441.2 MB, free: 12.91 MB / 338.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007405/0.4465, allocations: 0.7501 MB / 442 MB, free: 11.88 MB / 338.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005357/0.447, allocations: 321.1 kB / 442.3 MB, free: 11.57 MB / 338.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.4471, allocations: 8 kB / 442.3 MB, free: 11.56 MB / 338.8 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001697/0.4488, allocations: 0.947 MB / 443.2 MB, free: 10.6 MB / 338.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.4488, allocations: 4 kB / 443.2 MB, free: 10.6 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.168e-05/0.4488, allocations: 20 kB / 443.3 MB, free: 10.58 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.4491, allocations: 65.61 kB / 443.3 MB, free: 10.51 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008975/0.45, allocations: 279.7 kB / 443.6 MB, free: 10.23 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.4522, allocations: 2.465 MB / 446.1 MB, free: 7.543 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.4535, allocations: 55.88 kB / 446.1 MB, free: 7.488 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4536, allocations: 64 kB / 446.2 MB, free: 7.426 MB / 338.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002294/0.4538, allocations: 148.5 kB / 446.3 MB, free: 7.273 MB / 338.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.454, allocations: 114.6 kB / 446.4 MB, free: 7.16 MB / 338.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009899/0.455, allocations: 457.7 kB / 446.9 MB, free: 6.688 MB / 338.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.455, allocations: 8.047 kB / 446.9 MB, free: 6.68 MB / 338.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.4551, allocations: 7.984 kB / 446.9 MB, free: 6.672 MB / 338.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.4551, allocations: 3.984 kB / 446.9 MB, free: 6.668 MB / 338.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.4578, allocations: 1.646 MB / 448.5 MB, free: 4.922 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.335e-06/0.4579, allocations: 4 kB / 448.5 MB, free: 4.918 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004616/0.4583, allocations: 103.9 kB / 448.6 MB, free: 4.816 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001656/0.4585, allocations: 61.8 kB / 448.7 MB, free: 4.75 MB / 338.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.4586, allocations: 11.94 kB / 448.7 MB, free: 4.738 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/0.4604, allocations: 2.445 MB / 451.2 MB, free: 2.066 MB / 338.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.83e-05/0.4604, allocations: 4 kB / 451.2 MB, free: 2.062 MB / 338.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001349/0.4618, allocations: 0.9977 MB / 452.2 MB, free: 0.9258 MB / 338.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004237/0.4622, allocations: 227.6 kB / 452.4 MB, free: 0.6836 MB / 338.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.4624, allocations: 11.98 kB / 452.4 MB, free: 0.6719 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005299/0.4629, allocations: 31.89 kB / 452.4 MB, free: 0.6406 MB / 338.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.683e-05/0.463, allocations: 47.88 kB / 452.5 MB, free: 0.5938 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.4631, allocations: 20 kB / 452.5 MB, free: 0.5742 MB / 338.8 MB Notification: Performance of sort global known variables: time 0.0008769/0.464, allocations: 0.6149 MB / 453.1 MB, free: 15.95 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.00122/0.4652, allocations: 279.9 kB / 453.4 MB, free: 15.68 MB / 354.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004789/0.4657, allocations: 275 kB / 453.7 MB, free: 15.4 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.4669, allocations: 0.7827 MB / 454.4 MB, free: 14.6 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4669, allocations: 0 / 454.4 MB, free: 14.6 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005613/0.4675, allocations: 421.4 kB / 454.8 MB, free: 14.17 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.4688, allocations: 272.2 kB / 455.1 MB, free: 13.9 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.4724, allocations: 1.852 MB / 457 MB, free: 11.96 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/0.4735, allocations: 1.289 MB / 458.3 MB, free: 10.64 MB / 354.8 MB Notification: Performance of SimCode: time 1.112e-06/0.4735, allocations: 0 / 458.3 MB, free: 10.64 MB / 354.8 MB Notification: Performance of Templates: time 0.1236/0.5971, allocations: 12.47 MB / 470.7 MB, free: 134.4 MB / 354.8 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)