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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 111.6 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.848/1.848, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 55.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1579, allocations: 46.62 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.4066/0.5646, allocations: 12.09 MB / 386.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008965/0.5736, allocations: 3.313 MB / 389.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003024/0.5768, allocations: 36.31 kB / 389.9 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002476/0.5793, allocations: 0.6614 MB / 390.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003318/0.5826, allocations: 0.7242 MB / 391.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.5838, allocations: 408.4 kB / 391.7 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003754/0.5875, allocations: 2.414 MB / 394.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.5892, allocations: 0.9995 MB / 395.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.5912, allocations: 0.8992 MB / 396 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.5925, allocations: 0.9813 MB / 397 MB, free: 472 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003427/0.5929, allocations: 228.9 kB / 397.2 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000624/0.5935, allocations: 270 kB / 397.5 MB, free: 460 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003492/0.5938, allocations: 463.7 kB / 398 MB, free: 112 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.5951, allocations: 1.079 MB / 399 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004813/0.5999, allocations: 2.824 MB / 401.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.6, allocations: 0 / 401.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6, allocations: 0 / 401.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.971e-05/0.6001, allocations: 0 / 401.9 MB, free: 14.35 MB / 334.1 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.005215/0.6053, allocations: 2.161 MB / 404 MB, free: 12.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/0.6054, allocations: 13.61 kB / 404 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.6065, allocations: 277.9 kB / 404.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00253/0.6091, allocations: 1.121 MB / 405.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.6092, allocations: 113.2 kB / 405.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003121/0.6095, allocations: 165.7 kB / 405.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00304/0.6126, allocations: 1.503 MB / 407.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.536e-05/0.6126, allocations: 15.38 kB / 407.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.6128, allocations: 62.03 kB / 407.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.911e-05/0.6129, allocations: 38.88 kB / 407.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.6151, allocations: 1.045 MB / 408.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.6258, allocations: 6.237 MB / 414.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.6278, allocations: 0.6169 MB / 415.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.6289, allocations: 471.9 kB / 415.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.447e-05/0.6289, allocations: 8.906 kB / 415.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/0.629, allocations: 37.75 kB / 415.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.825e-06/0.629, allocations: 1.125 kB / 415.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.005988/0.635, allocations: 2.366 MB / 418.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.682e-05/0.6351, allocations: 115.7 kB / 418.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00209/0.6372, allocations: 1.312 MB / 419.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.908e-05/0.6372, allocations: 37.83 kB / 419.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006723/0.6379, allocations: 0.8489 MB / 420.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.6381, allocations: 260.2 kB / 420.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.6384, allocations: 206.7 kB / 420.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.6385, allocations: 353.9 kB / 421.2 MB, free: 300 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005677/0.6391, allocations: 282.5 kB / 421.5 MB, free: 16 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009056/0.64, allocations: 0.7342 MB / 422.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.6415, allocations: 1.084 MB / 423.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.802e-06/0.6415, allocations: 4 kB / 423.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002394/0.6439, allocations: 1.268 MB / 424.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.644, allocations: 12 kB / 424.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.644, allocations: 12 kB / 424.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005497/0.6446, allocations: 138.8 kB / 424.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008435/0.6454, allocations: 255.6 kB / 425 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004214/0.6497, allocations: 4.634 MB / 429.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.6509, allocations: 55.91 kB / 429.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.519e-05/0.651, allocations: 52 kB / 429.7 MB, free: 6.906 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000766/0.6517, allocations: 361.5 kB / 430.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/0.652, allocations: 146.2 kB / 430.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.6538, allocations: 0.8334 MB / 431 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.6538, allocations: 11.94 kB / 431.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.6538, allocations: 0 / 431.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6538, allocations: 4.125 kB / 431.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003922/0.6577, allocations: 2.334 MB / 433.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.6578, allocations: 4 kB / 433.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.6583, allocations: 131.8 kB / 433.5 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000436/0.6588, allocations: 130.9 kB / 433.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/0.6588, allocations: 23.94 kB / 433.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004201/0.663, allocations: 4.787 MB / 438.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6631, allocations: 4 kB / 438.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.6655, allocations: 1.296 MB / 439.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005823/0.666, allocations: 287.2 kB / 440 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.6662, allocations: 23.98 kB / 440.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006427/0.6669, allocations: 39.97 kB / 440.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.667, allocations: 56.42 kB / 440.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.6671, allocations: 27.94 kB / 440.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00133/0.6684, allocations: 0.8781 MB / 441.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6684, allocations: 0 / 441.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001454/0.6699, allocations: 328 kB / 441.4 MB, free: 10.56 MB / 366.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002687/0.6701, allocations: 139 kB / 441.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.6722, allocations: 1.122 MB / 442.6 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.6722, allocations: 4.125 kB / 442.6 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.6733, allocations: 0.6952 MB / 443.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.675, allocations: 362.4 kB / 443.7 MB, free: 8.172 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005737/0.6807, allocations: 2.906 MB / 446.6 MB, free: 5.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009798/0.6817, allocations: 1.214 MB / 447.8 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007433/0.6825, allocations: 179.6 kB / 448 MB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.6827, allocations: 91.42 kB / 448.1 MB, free: 3.672 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6827, allocations: 0 / 448.1 MB, free: 3.672 MB / 366.1 MB Notification: Performance of Templates: time 0.03654/0.7193, allocations: 17.95 MB / 466 MB, free: 1.688 MB / 382.1 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)