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.001565/0.001565, allocations: 102.8 kB / 16.62 MB, free: 6.809 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.001696/0.001696, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.78/1.78, allocations: 205.1 MB / 223.4 MB, free: 12.42 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.00175/0.00175, allocations: 47.92 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1823, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.02029/0.2027, allocations: 12.01 MB / 338.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01206/0.2149, allocations: 3.266 MB / 341.4 MB, free: 5.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004583/0.2197, allocations: 35.94 kB / 341.4 MB, free: 5.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004018/0.2237, allocations: 0.5788 MB / 342 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005673/0.2295, allocations: 0.6323 MB / 342.7 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002086/0.2316, allocations: 355.6 kB / 343 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006488/0.2381, allocations: 2.413 MB / 345.4 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002232/0.2404, allocations: 0.9892 MB / 346.4 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002623/0.243, allocations: 0.9065 MB / 347.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001954/0.245, allocations: 0.9762 MB / 348.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004544/0.2455, allocations: 228 kB / 348.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.2466, allocations: 271.9 kB / 348.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005244/0.2471, allocations: 462.4 kB / 349.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.2489, allocations: 1.077 MB / 350.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.253, allocations: 2.792 MB / 353.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.456e-05/0.2531, allocations: 0 / 353.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.459e-06/0.2531, allocations: 4 kB / 353.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.854e-05/0.2532, allocations: 0 / 353.1 MB, free: 9.668 MB / 302.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.005873/0.259, allocations: 2.16 MB / 355.3 MB, free: 7.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.755e-05/0.2592, allocations: 8.031 kB / 355.3 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.2602, allocations: 278.4 kB / 355.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002217/0.2625, allocations: 1.103 MB / 356.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.2626, allocations: 111.5 kB / 356.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002381/0.2628, allocations: 167.8 kB / 356.9 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003214/0.2661, allocations: 1.508 MB / 358.4 MB, free: 4.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.417e-05/0.2662, allocations: 7.906 kB / 358.4 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/0.2663, allocations: 64 kB / 358.5 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.2664, allocations: 40 kB / 358.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.2689, allocations: 1.045 MB / 359.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.2802, allocations: 6.3 MB / 365.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.2821, allocations: 0.6073 MB / 366.5 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009472/0.283, allocations: 478.2 kB / 367 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.188e-05/0.2831, allocations: 8.562 kB / 367 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.043e-05/0.2832, allocations: 39.12 kB / 367 MB, free: 11.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 4.649e-06/0.2832, allocations: 0 / 367 MB, free: 11.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.006261/0.2894, allocations: 2.364 MB / 369.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.984e-05/0.2896, allocations: 111.5 kB / 369.5 MB, free: 8.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/0.2922, allocations: 1.31 MB / 370.8 MB, free: 7.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.693e-05/0.2923, allocations: 41.7 kB / 370.8 MB, free: 7.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007433/0.293, allocations: 0.8414 MB / 371.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002976/0.2933, allocations: 260.2 kB / 371.9 MB, free: 6.191 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003563/0.2937, allocations: 210.6 kB / 372.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.2939, allocations: 349.9 kB / 372.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006407/0.2946, allocations: 286.4 kB / 372.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009813/0.2956, allocations: 0.7382 MB / 373.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.2973, allocations: 1.084 MB / 374.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.2973, allocations: 11.94 kB / 374.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00287/0.3002, allocations: 1.26 MB / 375.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.3003, allocations: 16.06 kB / 375.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.3003, allocations: 16 kB / 375.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000617/0.301, allocations: 138.5 kB / 376 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000925/0.3019, allocations: 255.6 kB / 376.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3611/0.6631, allocations: 4.635 MB / 380.9 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002188/0.6653, allocations: 60.03 kB / 380.9 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001963/0.6656, allocations: 52.09 kB / 381 MB, free: 47.82 MB / 318.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.001247/0.6668, allocations: 353.9 kB / 381.3 MB, free: 47.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005307/0.6674, allocations: 138.9 kB / 381.5 MB, free: 47.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002994/0.6704, allocations: 0.8322 MB / 382.3 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-05/0.6704, allocations: 7.594 kB / 382.3 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.6704, allocations: 2.562 kB / 382.3 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.161e-05/0.6705, allocations: 4.297 kB / 382.3 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006497/0.677, allocations: 2.334 MB / 384.7 MB, free: 46.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.677, allocations: 3.672 kB / 384.7 MB, free: 46.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007084/0.6778, allocations: 131.2 kB / 384.8 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006083/0.6784, allocations: 134.5 kB / 384.9 MB, free: 46.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.246e-05/0.6785, allocations: 22.03 kB / 384.9 MB, free: 46.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00607/0.6845, allocations: 4.778 MB / 389.7 MB, free: 41.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.952e-05/0.6846, allocations: 8.344 kB / 389.7 MB, free: 41.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00444/0.6891, allocations: 1.297 MB / 391 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.6903, allocations: 281.4 kB / 391.3 MB, free: 41.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000645/0.691, allocations: 20.16 kB / 391.3 MB, free: 41.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.6921, allocations: 43.81 kB / 391.4 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.6924, allocations: 60.44 kB / 391.4 MB, free: 41.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.513e-05/0.6925, allocations: 24.44 kB / 391.4 MB, free: 41.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002541/0.6951, allocations: 0.8752 MB / 392.3 MB, free: 40.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6951, allocations: 4 kB / 392.3 MB, free: 40.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002707/0.6978, allocations: 331 kB / 392.7 MB, free: 40.69 MB / 318.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.0005687/0.6984, allocations: 133.4 kB / 392.8 MB, free: 40.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003711/0.7021, allocations: 1.145 MB / 393.9 MB, free: 39.96 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.431e-05/0.7022, allocations: 1.781 kB / 393.9 MB, free: 39.96 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.7037, allocations: 0.7058 MB / 394.6 MB, free: 39.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004006/0.7078, allocations: 378.5 kB / 395 MB, free: 39.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009836/0.7176, allocations: 3.586 MB / 398.6 MB, free: 37.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.7187, allocations: 1.214 MB / 399.8 MB, free: 36.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001239/0.7199, allocations: 177.3 kB / 400 MB, free: 36.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/0.7203, allocations: 88.23 kB / 400.1 MB, free: 36.29 MB / 318.1 MB Notification: Performance of SimCode: time 2.865e-06/0.7203, allocations: 1.375 kB / 400.1 MB, free: 36.29 MB / 318.1 MB Notification: Performance of Templates: time 0.0408/0.7611, allocations: 17.53 MB / 417.6 MB, free: 22.97 MB / 318.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)