Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001387/0.001387, allocations: 156.2 kB / 7.633 MB, free: 1.445 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.173/1.173, allocations: 170.7 MB / 178.7 MB, free: 6.977 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.001908/0.001908, allocations: 104.1 kB / 218 MB, free: 15.33 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.579e-05/1.588e-05, allocations: 4 kB / 262.2 MB, free: 3.047 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2249, allocations: 38.76 MB / 301 MB, free: 39.11 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.3273, allocations: 84.4 MB / 385.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.3275, allocations: 75.95 kB / 385.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1114/0.4389, allocations: 42.27 MB / 427.7 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.439, allocations: 0 / 427.7 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001274/0.4391, allocations: 39.98 kB / 427.8 MB, free: 0.6953 MB / 330.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.1788/0.6179, allocations: 1.586 MB / 429.4 MB, free: 79.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.618, allocations: 11.55 kB / 429.4 MB, free: 79.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.6196, allocations: 289.8 kB / 429.6 MB, free: 79.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003693/0.6233, allocations: 1.199 MB / 430.8 MB, free: 79.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.894e-05/0.6234, allocations: 49.69 kB / 430.9 MB, free: 79.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004308/0.6238, allocations: 98.75 kB / 431 MB, free: 79.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002311/0.6261, allocations: 0.8804 MB / 431.9 MB, free: 79.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002301/0.6285, allocations: 1.219 MB / 433.1 MB, free: 79.06 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.341e-05/0.6285, allocations: 10.14 kB / 433.1 MB, free: 79.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-05/0.6286, allocations: 2.781 kB / 433.1 MB, free: 79.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.201e-05/0.6287, allocations: 39.2 kB / 433.1 MB, free: 79.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008727/0.6374, allocations: 6.131 MB / 439.3 MB, free: 76.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.6386, allocations: 0.5371 MB / 439.8 MB, free: 76.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006832/0.6393, allocations: 399.8 kB / 440.2 MB, free: 76.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.941e-05/0.6393, allocations: 15.95 kB / 440.2 MB, free: 76.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.6393, allocations: 37.34 kB / 440.3 MB, free: 76.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.226e-06/0.6394, allocations: 0 / 440.3 MB, free: 76.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.003343/0.6427, allocations: 1.673 MB / 441.9 MB, free: 75.81 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.6428, allocations: 113.9 kB / 442 MB, free: 75.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.6441, allocations: 0.8934 MB / 442.9 MB, free: 75.53 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.6441, allocations: 28.2 kB / 443 MB, free: 75.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004533/0.6446, allocations: 0.8622 MB / 443.8 MB, free: 75.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.6447, allocations: 260.2 kB / 444.1 MB, free: 74.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.6448, allocations: 0 / 444.1 MB, free: 74.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.032e-05/0.6449, allocations: 348.7 kB / 444.4 MB, free: 74.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003687/0.6452, allocations: 230.5 kB / 444.6 MB, free: 74.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005893/0.6458, allocations: 0.672 MB / 445.3 MB, free: 74.04 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005445/0.6465, allocations: 349 kB / 445.7 MB, free: 74.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.6465, allocations: 4.312 kB / 445.7 MB, free: 74.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001793/0.6483, allocations: 1.078 MB / 446.7 MB, free: 73.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.6483, allocations: 11.94 kB / 446.7 MB, free: 73.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.6483, allocations: 14.84 kB / 446.8 MB, free: 73.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003819/0.6487, allocations: 116.9 kB / 446.9 MB, free: 73.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008335/0.6496, allocations: 265.1 kB / 447.1 MB, free: 73.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/0.6521, allocations: 4.061 MB / 451.2 MB, free: 70.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000904/0.653, allocations: 47.7 kB / 451.2 MB, free: 70.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.557e-05/0.6531, allocations: 56.41 kB / 451.3 MB, free: 70.2 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 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.0002213/0.6533, allocations: 147.3 kB / 451.4 MB, free: 70.08 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.6535, allocations: 131.2 kB / 451.6 MB, free: 70.01 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.6548, allocations: 0.718 MB / 452.3 MB, free: 69.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.6549, allocations: 7.906 kB / 452.3 MB, free: 69.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.6549, allocations: 0 / 452.3 MB, free: 69.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.6549, allocations: 7.078 kB / 452.3 MB, free: 69.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002756/0.6577, allocations: 2.038 MB / 454.3 MB, free: 69.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.6577, allocations: 4.219 kB / 454.3 MB, free: 69.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/0.6582, allocations: 137 kB / 454.5 MB, free: 69.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002863/0.6585, allocations: 115.8 kB / 454.6 MB, free: 69.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.6586, allocations: 7.812 kB / 454.6 MB, free: 69.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002345/0.6609, allocations: 4.167 MB / 458.8 MB, free: 65.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.661, allocations: 3.969 kB / 458.8 MB, free: 65.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.6625, allocations: 1.368 MB / 460.1 MB, free: 64.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000427/0.663, allocations: 263.6 kB / 460.4 MB, free: 64.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.6631, allocations: 10.88 kB / 460.4 MB, free: 64.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005648/0.6637, allocations: 34.25 kB / 460.4 MB, free: 64.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.369e-05/0.6638, allocations: 58.02 kB / 460.5 MB, free: 64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.6638, allocations: 20.09 kB / 460.5 MB, free: 63.99 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008106/0.6646, allocations: 0.6639 MB / 461.2 MB, free: 63.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6646, allocations: 3.969 kB / 461.2 MB, free: 63.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001221/0.6659, allocations: 308.4 kB / 461.5 MB, free: 63.66 MB / 330.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.0003963/0.6663, allocations: 334.1 kB / 461.8 MB, free: 63.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.6674, allocations: 0.9865 MB / 462.8 MB, free: 62.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.6674, allocations: 3.938 kB / 462.8 MB, free: 62.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005503/0.668, allocations: 0.6254 MB / 463.4 MB, free: 62.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.6691, allocations: 291.7 kB / 463.7 MB, free: 62.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004032/0.6732, allocations: 2.257 MB / 466 MB, free: 61.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005973/0.6738, allocations: 1.253 MB / 467.2 MB, free: 60.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007126/0.6745, allocations: 167.3 kB / 467.4 MB, free: 60.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.6747, allocations: 81 kB / 467.5 MB, free: 60.53 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6747, allocations: 0 / 467.5 MB, free: 60.53 MB / 330.7 MB Notification: Performance of Templates: time 0.02399/0.6987, allocations: 15.15 MB / 482.6 MB, free: 59.41 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)