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/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.1_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.1_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.007378/0.007378, allocations: 95.61 kB / 15.73 MB, free: 6.055 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.00142/0.00142, allocations: 197.8 kB / 16.67 MB, free: 5.977 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.853/1.853, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.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.001427/0.001427, allocations: 45.39 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1646, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01924/0.1839, allocations: 12.1 MB / 385.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1952, allocations: 3.308 MB / 388.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003484/0.1989, allocations: 35.94 kB / 388.6 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003603/0.2025, allocations: 0.6946 MB / 389.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005428/0.208, allocations: 0.7794 MB / 390.1 MB, free: 328 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.2102, allocations: 403.6 kB / 390.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005379/0.2156, allocations: 2.405 MB / 392.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002341/0.218, allocations: 1.005 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002171/0.2202, allocations: 0.9144 MB / 394.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002636/0.2228, allocations: 0.9839 MB / 395.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.224, allocations: 228 kB / 396 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.2255, allocations: 276 kB / 396.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008385/0.2264, allocations: 450.3 kB / 396.7 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002749/0.2291, allocations: 1.081 MB / 397.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005712/0.2349, allocations: 2.844 MB / 400.7 MB, free: 5.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.2349, allocations: 4 kB / 400.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2349, allocations: 0 / 400.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.969e-05/0.235, allocations: 0 / 400.7 MB, free: 5.668 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.004803/0.2398, allocations: 2.201 MB / 402.9 MB, free: 3.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.744e-05/0.2399, allocations: 15.97 kB / 402.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009851/0.2409, allocations: 291.5 kB / 403.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/0.2431, allocations: 1.131 MB / 404.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.2432, allocations: 119.5 kB / 404.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.2435, allocations: 159.9 kB / 404.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.2464, allocations: 1.504 MB / 406.1 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.618e-05/0.2465, allocations: 11.94 kB / 406.1 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.2466, allocations: 68 kB / 406.2 MB, free: 0 / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-05/0.2467, allocations: 36.05 kB / 406.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002201/0.2489, allocations: 1.049 MB / 407.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009419/0.2583, allocations: 6.251 MB / 413.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.26, allocations: 0.6153 MB / 414.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.261, allocations: 466.2 kB / 414.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.588e-05/0.2611, allocations: 8.719 kB / 414.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.2612, allocations: 43.12 kB / 414.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 3.346e-06/0.2612, allocations: 0 / 414.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005877/0.2671, allocations: 2.395 MB / 417 MB, free: 4.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.2672, allocations: 111.5 kB / 417.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002066/0.2693, allocations: 1.302 MB / 418.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.351e-05/0.2694, allocations: 41.7 kB / 418.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007485/0.2701, allocations: 0.8748 MB / 419.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000218/0.2703, allocations: 273.7 kB / 419.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003326/0.2707, allocations: 206.8 kB / 419.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002443/0.2709, allocations: 353.9 kB / 420.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000592/0.2715, allocations: 278.5 kB / 420.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.2728, allocations: 0.7459 MB / 421.2 MB, free: 296 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.2744, allocations: 1.076 MB / 422.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.958e-06/0.2745, allocations: 4 kB / 422.2 MB, free: 15 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002649/0.2771, allocations: 1.276 MB / 423.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.2772, allocations: 12 kB / 423.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/0.2772, allocations: 16 kB / 423.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005912/0.2778, allocations: 134.9 kB / 423.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008554/0.2786, allocations: 259.6 kB / 423.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005395/0.2841, allocations: 4.638 MB / 428.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.2855, allocations: 63.86 kB / 428.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.107e-05/0.2856, allocations: 52 kB / 428.7 MB, free: 8.113 MB / 366.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.00106/0.2867, allocations: 361.4 kB / 429 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000265/0.2869, allocations: 143.1 kB / 429.2 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002193/0.2891, allocations: 0.8257 MB / 430 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.2892, allocations: 11.92 kB / 430 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.2892, allocations: 4 kB / 430 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.2892, allocations: 0 / 430 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004486/0.2937, allocations: 2.334 MB / 432.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.2937, allocations: 8 kB / 432.4 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005789/0.2943, allocations: 123.9 kB / 432.5 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004983/0.2948, allocations: 146.9 kB / 432.6 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.093e-05/0.2949, allocations: 23.98 kB / 432.6 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00554/0.3004, allocations: 4.779 MB / 437.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.3004, allocations: 4 kB / 437.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002678/0.3031, allocations: 1.305 MB / 438.7 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006988/0.3038, allocations: 296 kB / 439 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/0.304, allocations: 16 kB / 439 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000641/0.3046, allocations: 35.97 kB / 439.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.3048, allocations: 72.3 kB / 439.1 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.047e-05/0.3049, allocations: 27.98 kB / 439.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001439/0.3064, allocations: 0.8742 MB / 440 MB, free: 12.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3064, allocations: 0 / 440 MB, free: 12.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001572/0.308, allocations: 324 kB / 440.4 MB, free: 11.76 MB / 382.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.0003822/0.3083, allocations: 135.1 kB / 440.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.3107, allocations: 1.124 MB / 441.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3107, allocations: 0 / 441.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.3118, allocations: 0.7191 MB / 442.3 MB, free: 9.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.3135, allocations: 357 kB / 442.7 MB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006288/0.3198, allocations: 2.949 MB / 445.6 MB, free: 6.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.3214, allocations: 1.217 MB / 446.9 MB, free: 5.074 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008101/0.3223, allocations: 175.6 kB / 447 MB, free: 4.898 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002441/0.3225, allocations: 87.42 kB / 447.1 MB, free: 4.812 MB / 382.1 MB Notification: Performance of SimCode: time 1.904e-06/0.3225, allocations: 0 / 447.1 MB, free: 4.812 MB / 382.1 MB Notification: Performance of Templates: time 0.4009/0.7234, allocations: 17.97 MB / 465.1 MB, free: 65.08 MB / 382.1 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)