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.006279/0.006279, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001251/0.001251, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.935/1.935, allocations: 205.1 MB / 222.6 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.002468/0.002468, allocations: 49.52 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1471, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.0164/0.1636, allocations: 13.97 MB / 387.2 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01165/0.1753, allocations: 5.147 MB / 392.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004057/0.1794, allocations: 59.75 kB / 392.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00444/0.1839, allocations: 0.9126 MB / 393.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004153/0.1881, allocations: 0.601 MB / 393.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002134/0.1903, allocations: 0.5072 MB / 394.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004745/0.1951, allocations: 2.163 MB / 396.6 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002702/0.1978, allocations: 1.123 MB / 397.7 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.1997, allocations: 0.7977 MB / 398.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001823/0.2016, allocations: 0.8748 MB / 399.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008399/0.2024, allocations: 232 kB / 399.6 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001211/0.2037, allocations: 272 kB / 399.8 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007299/0.2044, allocations: 450.4 kB / 400.3 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002221/0.2066, allocations: 0.9797 MB / 401.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003657/0.2103, allocations: 2.76 MB / 404 MB, free: 2.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.2103, allocations: 0 / 404 MB, free: 2.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2104, allocations: 0 / 404 MB, free: 2.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.388e-05/0.2104, allocations: 4 kB / 404 MB, free: 2.305 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.003842/0.2142, allocations: 2.031 MB / 406.1 MB, free: 220 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.2143, allocations: 11.89 kB / 406.1 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007234/0.215, allocations: 242.5 kB / 406.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/0.2169, allocations: 1.055 MB / 407.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.523e-05/0.217, allocations: 111.4 kB / 407.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001955/0.2172, allocations: 156.3 kB / 407.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.2195, allocations: 1.435 MB / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.036e-05/0.2196, allocations: 4 kB / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.2197, allocations: 60 kB / 409.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.665e-05/0.2198, allocations: 36 kB / 409.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.2215, allocations: 0.9595 MB / 410.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007988/0.2295, allocations: 6.085 MB / 416.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.2307, allocations: 0.6443 MB / 416.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003969/0.2311, allocations: 246 kB / 417.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.325e-05/0.2312, allocations: 8.438 kB / 417.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.2312, allocations: 39 kB / 417.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.515e-06/0.2312, allocations: 0 / 417.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.003282/0.2345, allocations: 1.718 MB / 418.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.2346, allocations: 85.55 kB / 418.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/0.2362, allocations: 1.132 MB / 420.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.203e-05/0.2362, allocations: 37.7 kB / 420.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006037/0.2368, allocations: 0.8014 MB / 420.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.237, allocations: 201.2 kB / 421.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002484/0.2373, allocations: 178.4 kB / 421.3 MB, free: 400 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2374, allocations: 341.9 kB / 421.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004874/0.2379, allocations: 252.7 kB / 421.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.2387, allocations: 0.629 MB / 422.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.2399, allocations: 0.9107 MB / 423.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2399, allocations: 0 / 423.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001662/0.2415, allocations: 0.9944 MB / 424.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.2416, allocations: 12 kB / 424.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.2416, allocations: 16.61 kB / 424.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001888/0.2418, allocations: 40.86 kB / 424.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007169/0.2425, allocations: 227.6 kB / 424.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.2437, allocations: 1.394 MB / 426.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008299/0.2445, allocations: 51.91 kB / 426.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/0.2446, allocations: 40 kB / 426.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009398/0.2455, allocations: 470.1 kB / 426.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006347/0.2462, allocations: 0.6057 MB / 427.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001018/0.2472, allocations: 0.86 MB / 428.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.222e-06/0.2472, allocations: 4 kB / 428.1 MB, free: 8.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001484/0.2487, allocations: 0.9518 MB / 429 MB, free: 7.711 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.2488, allocations: 15.94 kB / 429.1 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.2488, allocations: 16.19 kB / 429.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001175/0.2489, allocations: 44.83 kB / 429.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.2496, allocations: 219.6 kB / 429.3 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.2506, allocations: 1.386 MB / 430.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007215/0.2513, allocations: 43.83 kB / 430.8 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.262e-05/0.2514, allocations: 48 kB / 430.8 MB, free: 5.805 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.0003662/0.2517, allocations: 251.9 kB / 431.1 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.2519, allocations: 114.6 kB / 431.2 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.2531, allocations: 0.5634 MB / 431.7 MB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2531, allocations: 4 kB / 431.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2531, allocations: 0 / 431.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.2531, allocations: 7.984 kB / 431.7 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003213/0.2564, allocations: 1.855 MB / 433.6 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.2564, allocations: 0 / 433.6 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.2569, allocations: 111.8 kB / 433.7 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001095/0.257, allocations: 24.84 kB / 433.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.44e-05/0.2571, allocations: 12.22 kB / 433.7 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.2582, allocations: 1.378 MB / 435.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.2583, allocations: 4 kB / 435.1 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.2599, allocations: 0.9159 MB / 436 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005227/0.2604, allocations: 239.6 kB / 436.3 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.2606, allocations: 16 kB / 436.3 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006059/0.2613, allocations: 35.97 kB / 436.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.8e-05/0.2614, allocations: 40.36 kB / 436.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.2614, allocations: 16 kB / 436.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00128/0.2627, allocations: 0.7557 MB / 437.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2627, allocations: 0 / 437.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001927/0.2646, allocations: 476 kB / 437.6 MB, free: 14.7 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.0003067/0.265, allocations: 123.1 kB / 437.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002425/0.2674, allocations: 1.257 MB / 439 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.2674, allocations: 3.938 kB / 439 MB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.268, allocations: 350.4 kB / 439.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.2695, allocations: 296.7 kB / 439.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005014/0.2745, allocations: 2.484 MB / 442.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.2756, allocations: 1.173 MB / 443.3 MB, free: 8.895 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007534/0.2763, allocations: 161.2 kB / 443.4 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/0.2766, allocations: 71.44 kB / 443.5 MB, free: 8.668 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.2766, allocations: 0 / 443.5 MB, free: 8.668 MB / 382.1 MB Notification: Performance of Templates: time 0.3091/0.5856, allocations: 13.33 MB / 456.8 MB, free: 65.96 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)