Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00146/0.00146, allocations: 97.33 kB / 16.5 MB, free: 6.641 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.001485/0.001485, allocations: 194.3 kB / 17.42 MB, free: 6.066 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.879/1.879, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001346/0.001346, allocations: 55.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1336, allocations: 46.64 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01768/0.1513, allocations: 13.84 MB / 339.8 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.1659, allocations: 5.038 MB / 344.8 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005768/0.1718, allocations: 59.75 kB / 344.9 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005146/0.1771, allocations: 0.7692 MB / 345.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00404/0.1811, allocations: 472.7 kB / 346.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.1828, allocations: 451.6 kB / 346.6 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004233/0.1871, allocations: 2.038 MB / 348.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001861/0.189, allocations: 0.9965 MB / 349.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002041/0.191, allocations: 0.6882 MB / 350.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.1923, allocations: 0.8163 MB / 351.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002518/0.1926, allocations: 132 kB / 351.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005261/0.1931, allocations: 176 kB / 351.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003984/0.1935, allocations: 346.5 kB / 351.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.1947, allocations: 0.8859 MB / 352.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003093/0.1978, allocations: 2.636 MB / 355.3 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1978, allocations: 0 / 355.3 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1978, allocations: 4 kB / 355.3 MB, free: 7.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.622e-05/0.1979, allocations: 0 / 355.3 MB, free: 7.387 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004865/0.2028, allocations: 2.027 MB / 357.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.916e-05/0.2029, allocations: 12.03 kB / 357.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000815/0.2037, allocations: 246.5 kB / 357.6 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.2056, allocations: 1.024 MB / 358.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.2057, allocations: 111.4 kB / 358.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002493/0.2059, allocations: 160.3 kB / 358.9 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003046/0.209, allocations: 1.435 MB / 360.3 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.593e-05/0.2091, allocations: 11.91 kB / 360.3 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.2092, allocations: 60 kB / 360.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.44e-05/0.2093, allocations: 39.94 kB / 360.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002023/0.2113, allocations: 0.9556 MB / 361.3 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.2215, allocations: 6.14 MB / 367.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.2229, allocations: 0.6518 MB / 368.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004376/0.2234, allocations: 238.1 kB / 368.4 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.2234, allocations: 8.438 kB / 368.4 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/0.2235, allocations: 38.98 kB / 368.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 3.576e-06/0.2235, allocations: 0 / 368.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.003784/0.2273, allocations: 1.715 MB / 370.1 MB, free: 7.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.2274, allocations: 81.55 kB / 370.2 MB, free: 7.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/0.2292, allocations: 1.131 MB / 371.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.2293, allocations: 37.7 kB / 371.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007311/0.23, allocations: 0.8054 MB / 372.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.2302, allocations: 201.1 kB / 372.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002849/0.2305, allocations: 178.5 kB / 372.6 MB, free: 5.449 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.2307, allocations: 341.9 kB / 372.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000494/0.2312, allocations: 252.7 kB / 373.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008173/0.232, allocations: 0.6251 MB / 373.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.2334, allocations: 0.9029 MB / 374.7 MB, free: 2.965 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.2335, allocations: 7.984 kB / 374.7 MB, free: 2.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002023/0.2355, allocations: 1.006 MB / 375.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.2356, allocations: 12 kB / 375.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.2356, allocations: 12 kB / 375.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002254/0.2358, allocations: 37.3 kB / 375.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007646/0.2366, allocations: 231.6 kB / 376 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.2379, allocations: 1.292 MB / 377.3 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009446/0.2388, allocations: 51.89 kB / 377.3 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.855e-05/0.2389, allocations: 51.98 kB / 377.4 MB, free: 128 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.2958/0.5347, allocations: 463 kB / 377.8 MB, free: 52.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009655/0.5358, allocations: 0.6018 MB / 378.4 MB, free: 51.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001626/0.5374, allocations: 0.8623 MB / 379.3 MB, free: 51.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.614e-05/0.5374, allocations: 7.938 kB / 379.3 MB, free: 51.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.003234/0.5407, allocations: 0.9428 MB / 380.2 MB, free: 50.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.796e-05/0.5408, allocations: 10.5 kB / 380.2 MB, free: 50.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-05/0.5408, allocations: 14.17 kB / 380.3 MB, free: 50.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001933/0.541, allocations: 46.45 kB / 380.3 MB, free: 50.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000887/0.5419, allocations: 217.6 kB / 380.5 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.5432, allocations: 1.293 MB / 381.8 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.5444, allocations: 43.02 kB / 381.8 MB, free: 49.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.568e-05/0.5445, allocations: 44.91 kB / 381.9 MB, free: 49.61 MB / 318.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.0003397/0.5448, allocations: 252.5 kB / 382.1 MB, free: 49.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.545, allocations: 115.5 kB / 382.2 MB, free: 49.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.5465, allocations: 0.5624 MB / 382.8 MB, free: 49.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.5466, allocations: 13.81 kB / 382.8 MB, free: 49.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5466, allocations: 0 / 382.8 MB, free: 49.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.5466, allocations: 2.859 kB / 382.8 MB, free: 49.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004159/0.5508, allocations: 1.865 MB / 384.7 MB, free: 48.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.5508, allocations: 3.438 kB / 384.7 MB, free: 48.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/0.5514, allocations: 108.3 kB / 384.8 MB, free: 48.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.5515, allocations: 21.73 kB / 384.8 MB, free: 48.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/0.5516, allocations: 14.27 kB / 384.8 MB, free: 48.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009004/0.5525, allocations: 1.275 MB / 386.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.5525, allocations: 2.375 kB / 386.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.5543, allocations: 0.9103 MB / 387 MB, free: 46.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005022/0.5548, allocations: 244.6 kB / 387.3 MB, free: 46.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002639/0.5551, allocations: 15.12 kB / 387.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006521/0.5558, allocations: 37.7 kB / 387.3 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.5559, allocations: 41.03 kB / 387.4 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.5559, allocations: 12.64 kB / 387.4 MB, free: 46.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001897/0.5578, allocations: 0.7627 MB / 388.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5578, allocations: 0 / 388.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00255/0.5604, allocations: 466 kB / 388.6 MB, free: 45.86 MB / 318.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.0003506/0.5608, allocations: 131.2 kB / 388.7 MB, free: 45.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002859/0.5636, allocations: 1.249 MB / 390 MB, free: 45.19 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.5636, allocations: 1 kB / 390 MB, free: 45.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006696/0.5643, allocations: 346.9 kB / 390.3 MB, free: 45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.5662, allocations: 278.1 kB / 390.6 MB, free: 44.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006271/0.5725, allocations: 3.136 MB / 393.7 MB, free: 42.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.5739, allocations: 1.171 MB / 394.9 MB, free: 42.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.5751, allocations: 162.4 kB / 395 MB, free: 42.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003105/0.5754, allocations: 76.06 kB / 395.1 MB, free: 42.12 MB / 318.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5754, allocations: 4 kB / 395.1 MB, free: 42.12 MB / 318.1 MB Notification: Performance of Templates: time 0.02675/0.6022, allocations: 12.51 MB / 407.6 MB, free: 33.66 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)