Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001612/0.001612, allocations: 193.9 kB / 8.138 MB, free: 2.078 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.095/1.095, allocations: 194.2 MB / 202.8 MB, free: 8.723 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.001764/0.001764, allocations: 124.2 kB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.287e-06/9.437e-06, allocations: 8 kB / 297.6 MB, free: 7.895 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06932/0.06935, allocations: 44.48 MB / 342.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2051/0.2745, allocations: 89.13 MB / 431.2 MB, free: 5.977 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.2747, allocations: 77.7 kB / 431.3 MB, free: 5.938 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1085/0.3833, allocations: 40.09 MB / 471.3 MB, free: 5.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001017/0.3834, allocations: 32 kB / 471.4 MB, free: 5.238 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003092/0.3865, allocations: 1.587 MB / 473 MB, free: 3.594 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.3865, allocations: 8.031 kB / 473 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.3876, allocations: 265.5 kB / 473.2 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002296/0.3899, allocations: 1.11 MB / 474.3 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.15e-05/0.39, allocations: 48 kB / 474.4 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002341/0.3902, allocations: 103.8 kB / 474.5 MB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001807/0.392, allocations: 0.8145 MB / 475.3 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002303/0.3943, allocations: 1.204 MB / 476.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.863e-05/0.3944, allocations: 7.906 kB / 476.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.3945, allocations: 8 kB / 476.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.313e-05/0.3945, allocations: 36 kB / 476.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008337/0.4029, allocations: 6.381 MB / 482.9 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.4033, allocations: 223.1 kB / 483.2 MB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003405/0.4037, allocations: 187.6 kB / 483.3 MB, free: 8.738 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.483e-05/0.4037, allocations: 4.438 kB / 483.3 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003648/0.4041, allocations: 236.8 kB / 483.6 MB, free: 8.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.795e-06/0.4041, allocations: 0 / 483.6 MB, free: 8.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.002878/0.407, allocations: 1.498 MB / 485.1 MB, free: 6.922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.4071, allocations: 184.4 kB / 485.3 MB, free: 6.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.4085, allocations: 0.8593 MB / 486.1 MB, free: 5.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.4086, allocations: 29.64 kB / 486.1 MB, free: 5.793 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/0.4091, allocations: 0.7259 MB / 486.9 MB, free: 5.055 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.4093, allocations: 201.1 kB / 487.1 MB, free: 4.855 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.4094, allocations: 0 / 487.1 MB, free: 4.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4095, allocations: 353.9 kB / 487.4 MB, free: 4.504 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003405/0.4098, allocations: 182.6 kB / 487.6 MB, free: 4.328 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006415/0.4105, allocations: 0.7579 MB / 488.3 MB, free: 3.293 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/0.411, allocations: 321.1 kB / 488.7 MB, free: 2.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/0.411, allocations: 8 kB / 488.7 MB, free: 2.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001623/0.4127, allocations: 0.9313 MB / 489.6 MB, free: 2.023 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.4127, allocations: 12.2 kB / 489.6 MB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/0.4127, allocations: 20 kB / 489.6 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002169/0.4129, allocations: 61.7 kB / 489.7 MB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008846/0.4138, allocations: 271.5 kB / 490 MB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.4156, allocations: 2.477 MB / 492.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009305/0.4166, allocations: 55.94 kB / 492.5 MB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-05/0.4167, allocations: 64 kB / 492.6 MB, free: 14.84 MB / 378.7 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.0001686/0.4169, allocations: 165.7 kB / 492.7 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.417, allocations: 118.5 kB / 492.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000838/0.4179, allocations: 453.8 kB / 493.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.4179, allocations: 4 kB / 493.3 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4179, allocations: 0 / 493.3 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4179, allocations: 11.98 kB / 493.3 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.4205, allocations: 1.642 MB / 494.9 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.4205, allocations: 12.03 kB / 494.9 MB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.421, allocations: 103.9 kB / 495 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000154/0.4212, allocations: 45.7 kB / 495.1 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.58e-05/0.4212, allocations: 11.98 kB / 495.1 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.423, allocations: 2.449 MB / 497.5 MB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.423, allocations: 16 kB / 497.6 MB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001192/0.4242, allocations: 0.9862 MB / 498.6 MB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.4246, allocations: 235.5 kB / 498.8 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/0.4248, allocations: 8 kB / 498.8 MB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006009/0.4254, allocations: 27.97 kB / 498.8 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.645e-05/0.4255, allocations: 51.78 kB / 498.9 MB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.4256, allocations: 20 kB / 498.9 MB, free: 7.984 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008997/0.4265, allocations: 0.611 MB / 499.5 MB, free: 7.367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001154/0.4276, allocations: 283.9 kB / 499.8 MB, free: 7.086 MB / 378.7 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.0004183/0.4281, allocations: 279.7 kB / 0.4883 GB, free: 6.809 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.4293, allocations: 0.784 MB / 0.4891 GB, free: 6.004 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4293, allocations: 0 / 0.4891 GB, free: 6.004 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005977/0.4299, allocations: 419.6 kB / 0.4895 GB, free: 5.574 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.4312, allocations: 263.4 kB / 0.4897 GB, free: 5.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.4349, allocations: 1.833 MB / 0.4915 GB, free: 3.398 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.436, allocations: 1.297 MB / 0.4928 GB, free: 2.074 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.436, allocations: 3.938 kB / 0.4928 GB, free: 2.07 MB / 378.7 MB Notification: Performance of Templates: time 0.02544/0.4615, allocations: 12.49 MB / 0.505 GB, free: 5.594 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)