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.01118/0.01118, allocations: 101.7 kB / 15.73 MB, free: 6.484 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.002045/0.002044, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.708/1.708, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001222/0.001222, allocations: 51.17 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1409, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01484/0.1558, allocations: 12.09 MB / 385.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008303/0.1642, allocations: 3.312 MB / 388.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.1663, allocations: 39.88 kB / 388.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002121/0.1685, allocations: 0.6634 MB / 389.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002999/0.1715, allocations: 0.7247 MB / 390 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.1727, allocations: 407.6 kB / 390.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003901/0.1766, allocations: 2.413 MB / 392.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.1781, allocations: 0.9967 MB / 393.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.1799, allocations: 0.9105 MB / 394.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.1812, allocations: 0.9839 MB / 395.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002989/0.1815, allocations: 228 kB / 395.9 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005124/0.182, allocations: 272 kB / 396.2 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003851/0.1824, allocations: 462.3 kB / 396.7 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.1835, allocations: 1.077 MB / 397.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003491/0.187, allocations: 2.83 MB / 400.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.707e-06/0.1871, allocations: 0 / 400.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1871, allocations: 0 / 400.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.667e-05/0.1871, allocations: 0 / 400.6 MB, free: 5.758 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.004515/0.1917, allocations: 2.156 MB / 402.7 MB, free: 3.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.1917, allocations: 8.031 kB / 402.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009289/0.1927, allocations: 282.3 kB / 403 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.1947, allocations: 1.123 MB / 404.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.1948, allocations: 111.5 kB / 404.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000239/0.1951, allocations: 167.8 kB / 404.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002874/0.198, allocations: 1.5 MB / 405.9 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.282e-05/0.198, allocations: 11.89 kB / 405.9 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.1981, allocations: 64 kB / 406 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.051e-05/0.1982, allocations: 36 kB / 406 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002107/0.2003, allocations: 1.049 MB / 407.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01034/0.2107, allocations: 6.237 MB / 413.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/0.2127, allocations: 0.6192 MB / 413.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.2138, allocations: 466.3 kB / 414.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.942e-05/0.2139, allocations: 12.56 kB / 414.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.316e-05/0.2139, allocations: 43.11 kB / 414.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 4.158e-06/0.214, allocations: 0 / 414.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.006512/0.2205, allocations: 2.356 MB / 416.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/0.2207, allocations: 115.5 kB / 416.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002238/0.2229, allocations: 1.306 MB / 418.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.098e-05/0.223, allocations: 37.7 kB / 418.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009432/0.2239, allocations: 0.8531 MB / 419.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002978/0.2243, allocations: 260.2 kB / 419.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000437/0.2247, allocations: 206.7 kB / 419.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0004262/0.2251, allocations: 353.9 kB / 419.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006769/0.2258, allocations: 286.4 kB / 420.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.2269, allocations: 0.7304 MB / 420.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.2287, allocations: 1.088 MB / 422 MB, free: 15.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.2287, allocations: 4 kB / 422 MB, free: 15.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003141/0.2319, allocations: 1.264 MB / 423.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.757e-05/0.2319, allocations: 13.09 kB / 423.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.59e-05/0.232, allocations: 16 kB / 423.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007487/0.2327, allocations: 134.8 kB / 423.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009512/0.2337, allocations: 255.5 kB / 423.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006041/0.2398, allocations: 4.642 MB / 428.3 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.2416, allocations: 59.91 kB / 428.4 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.2418, allocations: 56.12 kB / 428.4 MB, free: 8.355 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.001018/0.2428, allocations: 361.4 kB / 428.8 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005189/0.2433, allocations: 142.2 kB / 428.9 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002468/0.2458, allocations: 0.8295 MB / 429.7 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-05/0.2458, allocations: 11.94 kB / 429.7 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.2459, allocations: 0 / 429.7 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.2459, allocations: 3.984 kB / 429.8 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006914/0.2528, allocations: 2.327 MB / 432.1 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/0.2528, allocations: 4 kB / 432.1 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006024/0.2535, allocations: 127.8 kB / 432.2 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005357/0.254, allocations: 138.8 kB / 432.3 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.429e-05/0.2541, allocations: 19.98 kB / 432.4 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00577/0.2599, allocations: 4.779 MB / 437.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.23e-05/0.2599, allocations: 15.92 kB / 437.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.2632, allocations: 1.292 MB / 438.4 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.2642, allocations: 283.3 kB / 438.7 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005222/0.2648, allocations: 20 kB / 438.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.2659, allocations: 39.97 kB / 438.8 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.2661, allocations: 60.36 kB / 438.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.657e-05/0.2662, allocations: 35.92 kB / 438.9 MB, free: 13.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002201/0.2684, allocations: 0.8781 MB / 439.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2684, allocations: 0 / 439.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002415/0.2708, allocations: 332 kB / 440.1 MB, free: 12.02 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.0003581/0.2712, allocations: 131.1 kB / 440.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.2738, allocations: 1.125 MB / 441.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/0.2738, allocations: 4.375 kB / 441.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.2751, allocations: 0.7108 MB / 442 MB, free: 9.961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002501/0.2776, allocations: 364.9 kB / 442.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007148/0.2848, allocations: 2.89 MB / 445.3 MB, free: 6.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001643/0.2864, allocations: 1.217 MB / 446.5 MB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001152/0.2876, allocations: 171.6 kB / 446.7 MB, free: 5.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/0.288, allocations: 91.42 kB / 446.8 MB, free: 5.129 MB / 382.1 MB Notification: Performance of SimCode: time 2.244e-06/0.288, allocations: 0 / 446.8 MB, free: 5.129 MB / 382.1 MB Notification: Performance of Templates: time 0.3826/0.6706, allocations: 18.34 MB / 465.1 MB, free: 65.15 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)