Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008702/0.008702, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001943/0.001943, allocations: 190.4 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.887/1.887, allocations: 205.1 MB / 222.5 MB, free: 4.387 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.001275/0.001275, allocations: 50.58 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1859, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01774/0.2037, allocations: 12.09 MB / 385.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.2142, allocations: 3.312 MB / 388.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003643/0.2179, allocations: 35.94 kB / 388.6 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004358/0.2223, allocations: 0.6946 MB / 389.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005694/0.2281, allocations: 0.7833 MB / 390.1 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002787/0.2309, allocations: 399.6 kB / 390.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006968/0.2379, allocations: 2.413 MB / 392.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003052/0.241, allocations: 1.005 MB / 393.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002807/0.2438, allocations: 0.9067 MB / 394.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002511/0.2463, allocations: 0.9839 MB / 395.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009514/0.2473, allocations: 228 kB / 396 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.2485, allocations: 272 kB / 396.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004053/0.2489, allocations: 458.3 kB / 396.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.2503, allocations: 1.081 MB / 397.8 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004102/0.2544, allocations: 2.83 MB / 400.6 MB, free: 5.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.2544, allocations: 4 kB / 400.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2545, allocations: 0 / 400.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.92e-05/0.2545, allocations: 0 / 400.6 MB, free: 5.656 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.00451/0.259, allocations: 2.148 MB / 402.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.694e-05/0.2591, allocations: 12.03 kB / 402.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/0.2601, allocations: 286.3 kB / 403.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002116/0.2623, allocations: 1.127 MB / 404.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.543e-05/0.2624, allocations: 111.5 kB / 404.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.2626, allocations: 159.8 kB / 404.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002946/0.2656, allocations: 1.504 MB / 406 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.899e-05/0.2657, allocations: 11.84 kB / 406 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.2658, allocations: 64 kB / 406.1 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.026e-05/0.2659, allocations: 36 kB / 406.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.268, allocations: 1.049 MB / 407.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00895/0.277, allocations: 6.241 MB / 413.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.2786, allocations: 0.6153 MB / 414 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009795/0.2795, allocations: 462.2 kB / 414.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.264e-05/0.2796, allocations: 16.69 kB / 414.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.2797, allocations: 47.12 kB / 414.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.935e-06/0.2797, allocations: 0 / 414.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005893/0.2856, allocations: 2.353 MB / 416.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.2857, allocations: 111.5 kB / 417 MB, free: 4.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.2878, allocations: 1.313 MB / 418.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.63e-05/0.2878, allocations: 41.64 kB / 418.3 MB, free: 3.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000708/0.2885, allocations: 0.8492 MB / 419.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.2888, allocations: 260.3 kB / 419.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/0.2891, allocations: 206.7 kB / 419.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.2893, allocations: 353.9 kB / 420 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006605/0.29, allocations: 278.5 kB / 420.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.291, allocations: 0.7381 MB / 421 MB, free: 436 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.2927, allocations: 1.084 MB / 422.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.2927, allocations: 4 kB / 422.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002829/0.2956, allocations: 1.264 MB / 423.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/0.2956, allocations: 12 kB / 423.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.185e-05/0.2957, allocations: 16 kB / 423.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007313/0.2964, allocations: 135.1 kB / 423.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008833/0.2973, allocations: 259.5 kB / 423.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005026/0.3023, allocations: 4.634 MB / 428.4 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.3038, allocations: 59.91 kB / 428.4 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/0.304, allocations: 52 kB / 428.5 MB, free: 8.258 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.001174/0.3052, allocations: 361.4 kB / 428.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006018/0.3058, allocations: 138.2 kB / 429 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.3083, allocations: 0.8334 MB / 429.8 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.3083, allocations: 8.062 kB / 429.8 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.3084, allocations: 8 kB / 429.8 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.3084, allocations: 3.984 kB / 429.8 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005915/0.3143, allocations: 2.326 MB / 432.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.3144, allocations: 4 kB / 432.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006407/0.315, allocations: 127.8 kB / 432.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005876/0.3156, allocations: 134.9 kB / 432.4 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.304e-05/0.3157, allocations: 19.98 kB / 432.4 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005717/0.3214, allocations: 4.787 MB / 437.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.3215, allocations: 8.062 kB / 437.2 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003791/0.3253, allocations: 1.296 MB / 438.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/0.3265, allocations: 283.3 kB / 438.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006213/0.3272, allocations: 20 kB / 438.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.3283, allocations: 43.78 kB / 438.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.3285, allocations: 60.38 kB / 438.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.219e-05/0.3286, allocations: 31.98 kB / 439 MB, free: 13.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002049/0.3307, allocations: 0.8742 MB / 439.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.3307, allocations: 0 / 439.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002257/0.3329, allocations: 332 kB / 440.2 MB, free: 11.92 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.0004362/0.3334, allocations: 139.1 kB / 440.3 MB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002614/0.336, allocations: 1.124 MB / 441.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/0.3361, allocations: 0 / 441.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.3375, allocations: 0.7115 MB / 442.1 MB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.34, allocations: 361 kB / 442.5 MB, free: 9.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007419/0.3475, allocations: 2.898 MB / 445.4 MB, free: 6.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/0.3489, allocations: 1.21 MB / 446.6 MB, free: 5.297 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000963/0.3498, allocations: 171.6 kB / 446.8 MB, free: 5.125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004411/0.3503, allocations: 91.42 kB / 446.9 MB, free: 5.035 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3503, allocations: 0 / 446.9 MB, free: 5.035 MB / 382.1 MB Notification: Performance of Templates: time 0.3648/0.7151, allocations: 17.95 MB / 464.8 MB, free: 65.13 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)