Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003266/0.003267, allocations: 173.5 kB / 7.447 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.52/1.52, allocations: 170.6 MB / 178.4 MB, free: 15.41 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001781/0.001781, allocations: 112.4 kB / 217.7 MB, free: 8.164 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.358e-06/9.689e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09891, allocations: 38.77 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3073/0.4063, allocations: 82.74 MB / 383.2 MB, free: 2.004 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.4067, allocations: 83.67 kB / 383.3 MB, free: 1.961 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.06438/0.471, allocations: 22.62 MB / 405.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.587e-05/0.4712, allocations: 16 kB / 406 MB, free: 15.46 MB / 298.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.002061/0.4732, allocations: 0.9848 MB / 406.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.4733, allocations: 8.031 kB / 407 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006966/0.474, allocations: 146.6 kB / 407.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.4755, allocations: 0.6879 MB / 407.8 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.4755, allocations: 28 kB / 407.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.4757, allocations: 51.89 kB / 407.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009245/0.4766, allocations: 426.8 kB / 408.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.4778, allocations: 0.633 MB / 408.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.66e-05/0.4778, allocations: 4 kB / 408.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.301e-05/0.4779, allocations: 3.938 kB / 408.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.4779, allocations: 20 kB / 408.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00504/0.483, allocations: 3.311 MB / 412.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.4832, allocations: 127.9 kB / 412.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.4834, allocations: 98.56 kB / 412.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.4834, allocations: 11.92 kB / 412.5 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.4835, allocations: 34.5 kB / 412.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 3.456e-06/0.4835, allocations: 0 / 412.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001635/0.4851, allocations: 0.7447 MB / 413.3 MB, free: 9.125 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/0.4852, allocations: 85.25 kB / 413.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007865/0.486, allocations: 0.5221 MB / 413.9 MB, free: 8.625 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.4861, allocations: 25.7 kB / 413.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.4864, allocations: 424.2 kB / 414.3 MB, free: 8.223 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.811e-05/0.4865, allocations: 104.4 kB / 414.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.4865, allocations: 0 / 414.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.4867, allocations: 373.6 kB / 414.8 MB, free: 7.785 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.4868, allocations: 93.44 kB / 414.9 MB, free: 7.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.4872, allocations: 380.9 kB / 415.2 MB, free: 7.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.4875, allocations: 168.8 kB / 415.4 MB, free: 7.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4875, allocations: 0 / 415.4 MB, free: 7.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008281/0.4883, allocations: 499.8 kB / 415.9 MB, free: 6.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4883, allocations: 4 kB / 415.9 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.4884, allocations: 12 kB / 415.9 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001564/0.4885, allocations: 35.75 kB / 415.9 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.489, allocations: 149 kB / 416.1 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.4901, allocations: 1.232 MB / 417.3 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005314/0.4907, allocations: 32.05 kB / 417.4 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.4907, allocations: 28.88 kB / 417.4 MB, free: 5.191 MB / 298.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.0001568/0.4909, allocations: 135.5 kB / 417.5 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.491, allocations: 63.16 kB / 417.6 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000537/0.4916, allocations: 260.9 kB / 417.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.4916, allocations: 4 kB / 417.8 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4916, allocations: 11.84 kB / 417.8 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4916, allocations: 0 / 417.8 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001528/0.4932, allocations: 0.9134 MB / 418.8 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4932, allocations: 7.938 kB / 418.8 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.4935, allocations: 64.19 kB / 418.8 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.262e-05/0.4936, allocations: 24.84 kB / 418.9 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.4936, allocations: 4 kB / 418.9 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009662/0.4946, allocations: 1.221 MB / 420.1 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.4946, allocations: 0 / 420.1 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007228/0.4954, allocations: 0.5684 MB / 420.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.4956, allocations: 160.3 kB / 420.8 MB, free: 1.551 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.4958, allocations: 4 kB / 420.8 MB, free: 1.547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003481/0.4961, allocations: 19.98 kB / 420.8 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.278e-05/0.4962, allocations: 27.88 kB / 420.9 MB, free: 1.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.4962, allocations: 4 kB / 420.9 MB, free: 1.496 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0006629/0.4969, allocations: 395.2 kB / 421.2 MB, free: 1.117 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008439/0.4977, allocations: 152 kB / 421.4 MB, free: 0.9688 MB / 298.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.0005301/0.4983, allocations: 266.4 kB / 421.7 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007895/0.4991, allocations: 386.9 kB / 422 MB, free: 320 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4991, allocations: 1 kB / 422 MB, free: 320 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003069/0.4994, allocations: 206.1 kB / 422.2 MB, free: 104 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000854/0.5003, allocations: 138.9 kB / 422.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.5027, allocations: 1.004 MB / 423.4 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000982/0.5037, allocations: 1.002 MB / 424.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5037, allocations: 0 / 424.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of Templates: time 0.0171/0.5208, allocations: 7.106 MB / 431.5 MB, free: 6.766 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)