Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001042/0.001042, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.303/1.303, allocations: 194.3 MB / 208.4 MB, free: 6.707 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.001706/0.001706, allocations: 116.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.62e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07716/0.0772, allocations: 44.51 MB / 349.5 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.305/0.3823, allocations: 90.18 MB / 439.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.3825, allocations: 86.88 kB / 439.7 MB, free: 5.379 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1113/0.4938, allocations: 44.56 MB / 484.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4938, allocations: 0 / 484.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.764e-05/0.4939, allocations: 39.94 kB / 484.3 MB, free: 15.62 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002457/0.4964, allocations: 1.589 MB / 485.9 MB, free: 13.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.4964, allocations: 12.03 kB / 485.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008408/0.4973, allocations: 289.5 kB / 486.2 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.4994, allocations: 1.2 MB / 487.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.638e-05/0.4995, allocations: 115.1 kB / 487.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.4997, allocations: 163.8 kB / 487.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002305/0.502, allocations: 1.434 MB / 489.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.343e-05/0.5021, allocations: 4.344 kB / 489.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.5022, allocations: 67.95 kB / 489.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.859e-05/0.5022, allocations: 43.94 kB / 489.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.5039, allocations: 0.9597 MB / 490.2 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007529/0.5115, allocations: 6.408 MB / 496.6 MB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.5127, allocations: 0.5686 MB / 497.2 MB, free: 2.285 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007049/0.5134, allocations: 419 kB / 497.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.5135, allocations: 12.7 kB / 497.6 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.5135, allocations: 43.12 kB / 497.6 MB, free: 1.809 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 3.035e-06/0.5136, allocations: 0 / 497.6 MB, free: 1.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.003124/0.5167, allocations: 1.795 MB / 499.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/0.5168, allocations: 115.5 kB / 499.5 MB, free: 15.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.5182, allocations: 1.086 MB / 0.4889 GB, free: 14.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.5182, allocations: 41.7 kB / 0.4889 GB, free: 14.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005778/0.5188, allocations: 0.8568 MB / 0.4898 GB, free: 13.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.519, allocations: 264.4 kB / 0.49 GB, free: 13.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.5191, allocations: 28 kB / 0.49 GB, free: 13.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.5192, allocations: 345.9 kB / 0.4904 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004041/0.5196, allocations: 246.6 kB / 0.4906 GB, free: 12.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006975/0.5203, allocations: 0.7032 MB / 0.4913 GB, free: 12.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005576/0.5209, allocations: 377.9 kB / 0.4917 GB, free: 11.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.5209, allocations: 4 kB / 0.4917 GB, free: 11.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001877/0.5228, allocations: 1.22 MB / 0.4928 GB, free: 10.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.5228, allocations: 12 kB / 0.4929 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.5228, allocations: 12 kB / 0.4929 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/0.5232, allocations: 123 kB / 0.493 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008399/0.5241, allocations: 259.6 kB / 0.4932 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003055/0.5272, allocations: 4.216 MB / 0.4973 GB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008716/0.5281, allocations: 68 kB / 0.4974 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-05/0.5281, allocations: 52 kB / 0.4975 GB, free: 5.258 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.5283, allocations: 177.4 kB / 0.4976 GB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.5285, allocations: 142.3 kB / 0.4978 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.5299, allocations: 0.7896 MB / 0.4985 GB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.5299, allocations: 8 kB / 0.4985 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.5299, allocations: 0 / 0.4985 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.53, allocations: 7.984 kB / 0.4986 GB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/0.5334, allocations: 2.268 MB / 0.5008 GB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5334, allocations: 4 kB / 0.5008 GB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005733/0.534, allocations: 131.8 kB / 0.5009 GB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003353/0.5343, allocations: 115 kB / 0.501 GB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.5344, allocations: 16 kB / 0.501 GB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003201/0.5376, allocations: 4.329 MB / 0.5053 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/0.5376, allocations: 11.89 kB / 0.5053 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.5395, allocations: 1.434 MB / 0.5067 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004892/0.54, allocations: 283.3 kB / 0.5069 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.5401, allocations: 16 kB / 0.5069 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006073/0.5408, allocations: 43.97 kB / 0.507 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.5409, allocations: 64.38 kB / 0.5071 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-05/0.5409, allocations: 24 kB / 0.5071 GB, free: 10.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001157/0.5421, allocations: 0.8179 MB / 0.5079 GB, free: 9.828 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5421, allocations: 0 / 0.5079 GB, free: 9.828 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001278/0.5434, allocations: 383.9 kB / 0.5082 GB, free: 9.453 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005569/0.5439, allocations: 376.1 kB / 0.5086 GB, free: 9.082 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.5455, allocations: 1.063 MB / 0.5096 GB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5455, allocations: 4 kB / 0.5096 GB, free: 7.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007958/0.5463, allocations: 0.6726 MB / 0.5103 GB, free: 7.262 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.5476, allocations: 330.2 kB / 0.5106 GB, free: 6.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.5521, allocations: 2.316 MB / 0.5129 GB, free: 4.551 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009406/0.5531, allocations: 1.249 MB / 0.5141 GB, free: 3.273 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007293/0.5538, allocations: 167.8 kB / 0.5143 GB, free: 3.105 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000228/0.5541, allocations: 95.42 kB / 0.5143 GB, free: 3.012 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5541, allocations: 4 kB / 0.5143 GB, free: 3.008 MB / 378.7 MB Notification: Performance of Templates: time 0.03508/0.5891, allocations: 19.6 MB / 0.5335 GB, free: 15.38 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)