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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009895/0.0009895, allocations: 170.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.189/1.189, allocations: 170.6 MB / 183.8 MB, free: 11.48 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.001359/0.001358, allocations: 99.47 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.122e-05/3.125e-05, allocations: 8 kB / 268.9 MB, free: 20.91 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09786, allocations: 38.76 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2639/0.3618, allocations: 84.74 MB / 392.4 MB, free: 7.793 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.3621, allocations: 86.94 kB / 392.5 MB, free: 7.746 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1003/0.4624, allocations: 40.8 MB / 433.3 MB, free: 4.457 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.4625, allocations: 4 kB / 433.3 MB, free: 4.453 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.259e-05/0.4626, allocations: 32 kB / 433.3 MB, free: 4.422 MB / 314.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.00238/0.4649, allocations: 1.554 MB / 434.8 MB, free: 2.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.465, allocations: 8.031 kB / 434.9 MB, free: 2.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007263/0.4657, allocations: 261.6 kB / 435.1 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.4675, allocations: 1.105 MB / 436.2 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.437e-05/0.4675, allocations: 115 kB / 436.3 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.4677, allocations: 159.9 kB / 436.5 MB, free: 1.121 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.47, allocations: 1.421 MB / 437.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/0.4701, allocations: 7.906 kB / 437.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.4702, allocations: 68 kB / 438 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.4703, allocations: 40 kB / 438 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.4718, allocations: 0.9125 MB / 438.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007196/0.479, allocations: 6.652 MB / 445.6 MB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006759/0.4797, allocations: 377.6 kB / 445.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/0.48, allocations: 214 kB / 446.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.467e-05/0.4801, allocations: 4.438 kB / 446.2 MB, free: 6.988 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004228/0.4805, allocations: 253.7 kB / 446.4 MB, free: 6.715 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 3.096e-06/0.4805, allocations: 0 / 446.4 MB, free: 6.715 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.002331/0.4829, allocations: 1.612 MB / 448 MB, free: 5.035 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.154e-05/0.483, allocations: 192.5 kB / 448.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.4842, allocations: 1.065 MB / 449.3 MB, free: 3.727 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.4843, allocations: 37.7 kB / 449.3 MB, free: 3.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005149/0.4848, allocations: 0.8672 MB / 450.2 MB, free: 2.805 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.4849, allocations: 209.2 kB / 450.4 MB, free: 2.598 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-05/0.485, allocations: 24 kB / 450.4 MB, free: 2.574 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4851, allocations: 349.9 kB / 450.7 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/0.4854, allocations: 210.6 kB / 451 MB, free: 2.023 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006806/0.4861, allocations: 0.784 MB / 451.7 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000524/0.4866, allocations: 388.6 kB / 452.1 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.4867, allocations: 4 kB / 452.1 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001648/0.4883, allocations: 1.142 MB / 453.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.195e-05/0.4884, allocations: 49.83 kB / 453.3 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.4884, allocations: 16 kB / 453.3 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002369/0.4886, allocations: 65.7 kB / 453.4 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007826/0.4894, allocations: 275.5 kB / 453.7 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/0.4912, allocations: 2.576 MB / 456.2 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008409/0.492, allocations: 71.91 kB / 456.3 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.436e-05/0.4921, allocations: 64 kB / 456.4 MB, free: 12.02 MB / 346.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.000171/0.4923, allocations: 192.4 kB / 456.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.4924, allocations: 130.4 kB / 456.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008691/0.4933, allocations: 0.5136 MB / 457.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.4933, allocations: 8 kB / 457.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4933, allocations: 3.953 kB / 457.2 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4934, allocations: 3.984 kB / 457.2 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.4959, allocations: 1.889 MB / 459.1 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.4959, allocations: 4 kB / 459.1 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004341/0.4963, allocations: 111.8 kB / 459.2 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001385/0.4965, allocations: 45.7 kB / 459.3 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.4965, allocations: 20.27 kB / 459.3 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001579/0.4981, allocations: 2.552 MB / 461.8 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.4981, allocations: 8 kB / 461.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.4992, allocations: 1.082 MB / 462.9 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.4996, allocations: 247.5 kB / 463.2 MB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.4998, allocations: 23.94 kB / 463.2 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005007/0.5003, allocations: 31.98 kB / 463.2 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5004, allocations: 51.88 kB / 463.3 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.5004, allocations: 27.94 kB / 463.3 MB, free: 4.465 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001018/0.5014, allocations: 0.7819 MB / 464.1 MB, free: 3.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5015, allocations: 0 / 464.1 MB, free: 3.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001147/0.5026, allocations: 348 kB / 464.4 MB, free: 3.34 MB / 346.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.0004718/0.5031, allocations: 310.6 kB / 464.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.5043, allocations: 0.8891 MB / 465.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.5043, allocations: 0 / 465.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000546/0.5049, allocations: 459.4 kB / 466.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.5061, allocations: 298.1 kB / 466.3 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1661/0.6722, allocations: 1.889 MB / 468.2 MB, free: 87.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000839/0.6731, allocations: 1.213 MB / 469.4 MB, free: 86.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008468/0.674, allocations: 171.7 kB / 469.6 MB, free: 86.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.6741, allocations: 88.48 kB / 469.7 MB, free: 86.46 MB / 346.7 MB Notification: Performance of SimCode: time 6.42e-07/0.6742, allocations: 0 / 469.7 MB, free: 86.46 MB / 346.7 MB Notification: Performance of Templates: time 0.03196/0.7061, allocations: 16.19 MB / 485.9 MB, free: 85.69 MB / 346.7 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)