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.002126/0.002125, allocations: 112.2 kB / 16.51 MB, free: 6.715 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.002152/0.002152, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.806/1.806, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001727/0.001727, allocations: 55.92 kB / 279.3 MB, free: 3.551 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1311, allocations: 46.62 MB / 326 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01647/0.1477, allocations: 12 MB / 338 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009667/0.1574, allocations: 3.278 MB / 341.2 MB, free: 5.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002961/0.1605, allocations: 39.88 kB / 341.3 MB, free: 5.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002315/0.1628, allocations: 0.5826 MB / 341.9 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003471/0.1663, allocations: 0.6206 MB / 342.5 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009892/0.1673, allocations: 359.7 kB / 342.8 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003366/0.1707, allocations: 2.273 MB / 345.1 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001543/0.1722, allocations: 0.8582 MB / 346 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001743/0.174, allocations: 0.8088 MB / 346.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.175, allocations: 0.9137 MB / 347.7 MB, free: 15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002137/0.1752, allocations: 140 kB / 347.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004773/0.1757, allocations: 188 kB / 348 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003146/0.1761, allocations: 374.3 kB / 348.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.1771, allocations: 0.9794 MB / 349.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002452/0.1796, allocations: 2.725 MB / 352.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.1796, allocations: 7.984 kB / 352.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1796, allocations: 0 / 352.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.198e-05/0.1796, allocations: 0 / 352.1 MB, free: 10.59 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.004025/0.1837, allocations: 2.16 MB / 354.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.1837, allocations: 8.031 kB / 354.3 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009706/0.1847, allocations: 278.4 kB / 354.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.1865, allocations: 1.111 MB / 355.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.185e-05/0.1866, allocations: 111.5 kB / 355.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.1868, allocations: 167.8 kB / 355.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/0.1895, allocations: 1.504 MB / 357.4 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.501e-05/0.1896, allocations: 11.91 kB / 357.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.1897, allocations: 64 kB / 357.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.318e-05/0.1898, allocations: 36 kB / 357.5 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00212/0.1919, allocations: 1.045 MB / 358.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008836/0.2007, allocations: 6.304 MB / 364.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.2024, allocations: 0.6034 MB / 365.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000924/0.2033, allocations: 474.3 kB / 365.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.505e-05/0.2034, allocations: 12.5 kB / 365.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.2034, allocations: 39.12 kB / 366 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 5.02e-06/0.2034, allocations: 7.984 kB / 366 MB, free: 12.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005692/0.2091, allocations: 2.364 MB / 368.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.2092, allocations: 111.5 kB / 368.5 MB, free: 9.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001874/0.2111, allocations: 1.306 MB / 369.8 MB, free: 8.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.2112, allocations: 41.7 kB / 369.8 MB, free: 8.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006405/0.2118, allocations: 0.8414 MB / 370.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.212, allocations: 260.2 kB / 370.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002956/0.2123, allocations: 214.7 kB / 371.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2125, allocations: 345.9 kB / 371.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.2131, allocations: 278.5 kB / 371.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008995/0.214, allocations: 0.746 MB / 372.5 MB, free: 5.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.2155, allocations: 1.08 MB / 373.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.2156, allocations: 4 kB / 373.6 MB, free: 4.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002463/0.218, allocations: 1.264 MB / 374.8 MB, free: 2.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.2181, allocations: 12 kB / 374.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.2181, allocations: 16 kB / 374.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005666/0.2187, allocations: 143 kB / 375 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008118/0.2195, allocations: 251.6 kB / 375.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2549/0.4744, allocations: 4.261 MB / 379.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.4762, allocations: 64.3 kB / 379.6 MB, free: 48.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.4764, allocations: 58.39 kB / 379.6 MB, free: 48.57 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.001037/0.4774, allocations: 351.2 kB / 380 MB, free: 48.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003196/0.4778, allocations: 139.2 kB / 380.1 MB, free: 48.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002285/0.4801, allocations: 0.8297 MB / 380.9 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.4801, allocations: 14.53 kB / 380.9 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.4801, allocations: 2.266 kB / 380.9 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.4801, allocations: 3.328 kB / 380.9 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005518/0.4857, allocations: 2.333 MB / 383.3 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.4857, allocations: 4.578 kB / 383.3 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006314/0.4863, allocations: 129.3 kB / 383.4 MB, free: 47.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005258/0.4869, allocations: 138 kB / 383.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.049e-05/0.4869, allocations: 24.08 kB / 383.6 MB, free: 47.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004457/0.4914, allocations: 4.387 MB / 388 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/0.4914, allocations: 7.375 kB / 388 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003293/0.4947, allocations: 1.297 MB / 389.3 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008484/0.4956, allocations: 281.4 kB / 389.5 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.4958, allocations: 18.14 kB / 389.6 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007223/0.4965, allocations: 38.58 kB / 389.6 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.4968, allocations: 70.75 kB / 389.7 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-05/0.4968, allocations: 24.33 kB / 389.7 MB, free: 42.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002073/0.4989, allocations: 0.8807 MB / 390.6 MB, free: 42.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4989, allocations: 0 / 390.6 MB, free: 42.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002033/0.501, allocations: 335.1 kB / 390.9 MB, free: 42 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.0003588/0.5013, allocations: 133.5 kB / 391 MB, free: 41.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002633/0.504, allocations: 1.117 MB / 392.1 MB, free: 41.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.504, allocations: 0 / 392.1 MB, free: 41.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.5052, allocations: 0.7088 MB / 392.8 MB, free: 40.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002361/0.5076, allocations: 338.4 kB / 393.2 MB, free: 40.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007489/0.5151, allocations: 3.585 MB / 396.8 MB, free: 38.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.5163, allocations: 1.221 MB / 398 MB, free: 37.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001239/0.5175, allocations: 176.1 kB / 398.2 MB, free: 37.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.5178, allocations: 89.66 kB / 398.2 MB, free: 37.65 MB / 318.1 MB Notification: Performance of SimCode: time 2.675e-06/0.5179, allocations: 0 / 398.2 MB, free: 37.65 MB / 318.1 MB Notification: Performance of Templates: time 0.03637/0.5542, allocations: 16.77 MB / 415 MB, free: 25.31 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)