Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0074/0.007399, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001668/0.001668, allocations: 190.5 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.949/1.949, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001355/0.001355, allocations: 50.59 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1583, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01877/0.1771, allocations: 13.98 MB / 387.2 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.1908, allocations: 5.143 MB / 392.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004716/0.1955, allocations: 63.75 kB / 392.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003823/0.1995, allocations: 0.8696 MB / 393.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003003/0.2025, allocations: 0.558 MB / 393.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.2039, allocations: 0.5111 MB / 394.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003864/0.2078, allocations: 2.159 MB / 396.5 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001895/0.2097, allocations: 1.123 MB / 397.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001597/0.2113, allocations: 0.786 MB / 398.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.2124, allocations: 0.8827 MB / 399.3 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002951/0.2127, allocations: 231.9 kB / 399.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005377/0.2133, allocations: 272 kB / 399.8 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000372/0.2137, allocations: 442.5 kB / 400.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.2147, allocations: 0.9875 MB / 401.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003246/0.218, allocations: 2.756 MB / 403.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.218, allocations: 0 / 403.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.218, allocations: 4 kB / 403.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.203e-05/0.2181, allocations: 0 / 403.9 MB, free: 2.371 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004024/0.2221, allocations: 2.031 MB / 406 MB, free: 288 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.2222, allocations: 11.89 kB / 406 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007422/0.2229, allocations: 246.5 kB / 406.2 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00192/0.2248, allocations: 1.052 MB / 407.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.225, allocations: 111.4 kB / 407.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002219/0.2252, allocations: 156.3 kB / 407.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002523/0.2277, allocations: 1.435 MB / 409 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.87e-05/0.2278, allocations: 0 / 409 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.2279, allocations: 64 kB / 409 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.794e-05/0.228, allocations: 36 kB / 409.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00189/0.2299, allocations: 0.9556 MB / 410 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01043/0.2403, allocations: 6.093 MB / 416.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.2418, allocations: 0.6443 MB / 416.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004687/0.2424, allocations: 242 kB / 417 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.067e-05/0.2424, allocations: 8.422 kB / 417 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.2425, allocations: 43 kB / 417 MB, free: 4.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 3.386e-06/0.2425, allocations: 0 / 417 MB, free: 4.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00438/0.2469, allocations: 1.707 MB / 418.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.305e-05/0.247, allocations: 89.55 kB / 418.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.2492, allocations: 1.12 MB / 420 MB, free: 1.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.2492, allocations: 37.7 kB / 420 MB, free: 1.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006888/0.2499, allocations: 0.8054 MB / 420.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.2502, allocations: 201.2 kB / 421 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003154/0.2505, allocations: 178.4 kB / 421.2 MB, free: 480 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.2507, allocations: 341.9 kB / 421.5 MB, free: 132 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005821/0.2513, allocations: 248.7 kB / 421.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007999/0.2521, allocations: 0.629 MB / 422.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.2535, allocations: 0.9146 MB / 423.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/0.2536, allocations: 8 kB / 423.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002118/0.2557, allocations: 0.9903 MB / 424.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.2557, allocations: 12.72 kB / 424.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/0.2558, allocations: 16 kB / 424.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002209/0.256, allocations: 44.84 kB / 424.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007688/0.2568, allocations: 223.6 kB / 424.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.2583, allocations: 1.402 MB / 426 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.2595, allocations: 43.98 kB / 426 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.2596, allocations: 48 kB / 426.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001107/0.2607, allocations: 474.1 kB / 426.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00073/0.2615, allocations: 0.5978 MB / 427.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001248/0.2627, allocations: 0.8639 MB / 428 MB, free: 8.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.266e-05/0.2628, allocations: 4 kB / 428 MB, free: 8.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001723/0.2645, allocations: 0.948 MB / 429 MB, free: 7.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.2645, allocations: 19.97 kB / 429 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.2645, allocations: 15.98 kB / 429 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001197/0.2647, allocations: 36.86 kB / 429 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/0.2653, allocations: 219.6 kB / 429.2 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/0.2664, allocations: 1.386 MB / 430.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008544/0.2672, allocations: 43.83 kB / 430.7 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.634e-05/0.2673, allocations: 48 kB / 430.7 MB, free: 5.879 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003106/0.2676, allocations: 248 kB / 431 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.2678, allocations: 114.6 kB / 431.1 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001265/0.2691, allocations: 0.5673 MB / 431.6 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.2691, allocations: 4 kB / 431.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2691, allocations: 8 kB / 431.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.2691, allocations: 4 kB / 431.7 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.2721, allocations: 1.851 MB / 433.5 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.2721, allocations: 4 kB / 433.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005105/0.2726, allocations: 107.8 kB / 433.6 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.2728, allocations: 29.06 kB / 433.6 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/0.2728, allocations: 12 kB / 433.7 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.2741, allocations: 1.382 MB / 435 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2741, allocations: 4.031 kB / 435 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.2758, allocations: 0.9081 MB / 435.9 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004281/0.2762, allocations: 247.6 kB / 436.2 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.2763, allocations: 16 kB / 436.2 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.2768, allocations: 27.97 kB / 436.2 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.277, allocations: 44.36 kB / 436.3 MB, free: 8 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.507e-05/0.2771, allocations: 12.05 kB / 436.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001343/0.2784, allocations: 0.7712 MB / 437.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.2785, allocations: 0 / 437.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001885/0.2803, allocations: 464.2 kB / 437.5 MB, free: 14.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000337/0.2807, allocations: 123.1 kB / 437.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002474/0.2832, allocations: 1.256 MB / 438.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.2832, allocations: 7.938 kB / 438.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005512/0.2838, allocations: 346.6 kB / 439.2 MB, free: 13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.2851, allocations: 304.8 kB / 439.5 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005032/0.2902, allocations: 2.477 MB / 442 MB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009155/0.2911, allocations: 1.177 MB / 443.2 MB, free: 8.961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007847/0.2919, allocations: 153.2 kB / 443.3 MB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.2921, allocations: 75.44 kB / 443.4 MB, free: 8.738 MB / 382.1 MB Notification: Performance of SimCode: time 1.453e-06/0.2922, allocations: 0 / 443.4 MB, free: 8.738 MB / 382.1 MB Notification: Performance of Templates: time 0.3238/0.616, allocations: 13.32 MB / 456.7 MB, free: 65.87 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)