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.001173/0.001173, allocations: 114.4 kB / 17.07 MB, free: 5.965 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.001067/0.001068, allocations: 200 kB / 18 MB, free: 5.051 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.808/1.808, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001249/0.001249, allocations: 47.94 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1397, allocations: 46.62 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.3658/0.5056, allocations: 13.99 MB / 388.5 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.5197, allocations: 5.155 MB / 393.6 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00549/0.5252, allocations: 59.31 kB / 393.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003955/0.5293, allocations: 0.861 MB / 394.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003673/0.533, allocations: 0.5497 MB / 395.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.535, allocations: 0.5129 MB / 395.6 MB, free: 376 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005471/0.5405, allocations: 2.17 MB / 397.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003043/0.5436, allocations: 1.125 MB / 398.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002532/0.5461, allocations: 0.7917 MB / 399.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003169/0.5493, allocations: 0.8761 MB / 400.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000599/0.5499, allocations: 230.9 kB / 400.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.5511, allocations: 270.8 kB / 401.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006364/0.5517, allocations: 447.9 kB / 401.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001485/0.5532, allocations: 0.9773 MB / 402.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004926/0.5581, allocations: 2.762 MB / 405.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.808e-06/0.5582, allocations: 5.125 kB / 405.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.508e-06/0.5582, allocations: 0 / 405.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.199e-05/0.5583, allocations: 0 / 405.3 MB, free: 11.39 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.00492/0.5632, allocations: 2.029 MB / 407.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.5633, allocations: 13.27 kB / 407.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008303/0.5641, allocations: 243.1 kB / 407.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.5663, allocations: 1.056 MB / 408.6 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.5664, allocations: 115.9 kB / 408.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003127/0.5668, allocations: 157.1 kB / 408.9 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003084/0.5699, allocations: 1.433 MB / 410.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.116e-05/0.5699, allocations: 6.25 kB / 410.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/0.5701, allocations: 61.62 kB / 410.4 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.521e-05/0.5702, allocations: 36.06 kB / 410.4 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.5723, allocations: 0.9539 MB / 411.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009363/0.5817, allocations: 6.087 MB / 417.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.5829, allocations: 0.6443 MB / 418.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005097/0.5835, allocations: 241.3 kB / 418.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.436e-05/0.5835, allocations: 5.75 kB / 418.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.5836, allocations: 37.69 kB / 418.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=51): time 3.276e-06/0.5836, allocations: 5.375 kB / 418.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.00379/0.5874, allocations: 1.708 MB / 420.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.888e-05/0.5875, allocations: 87.23 kB / 420.2 MB, free: 444 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.5894, allocations: 1.126 MB / 421.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.808e-05/0.5895, allocations: 36.45 kB / 421.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007191/0.5902, allocations: 0.8108 MB / 422.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002114/0.5904, allocations: 203.3 kB / 422.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.5907, allocations: 176.9 kB / 422.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.5909, allocations: 345.6 kB / 422.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005514/0.5915, allocations: 249.9 kB / 423.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008397/0.5923, allocations: 0.6224 MB / 423.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.5936, allocations: 0.9145 MB / 424.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.5936, allocations: 4 kB / 424.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001731/0.5953, allocations: 0.9949 MB / 425.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.5954, allocations: 16.16 kB / 425.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.5954, allocations: 12 kB / 425.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/0.5957, allocations: 40.84 kB / 425.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007528/0.5964, allocations: 223.6 kB / 425.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/0.5977, allocations: 1.394 MB / 427.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009732/0.5987, allocations: 47.92 kB / 427.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/0.5988, allocations: 52.11 kB / 427.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001007/0.5998, allocations: 470.1 kB / 427.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006776/0.6005, allocations: 0.6017 MB / 428.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00117/0.6017, allocations: 0.86 MB / 429.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.312e-06/0.6017, allocations: 4 kB / 429.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001483/0.6032, allocations: 0.9597 MB / 430.3 MB, free: 6.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.6032, allocations: 12 kB / 430.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.6032, allocations: 16 kB / 430.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001153/0.6033, allocations: 40.84 kB / 430.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006618/0.604, allocations: 207.7 kB / 430.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.6052, allocations: 1.398 MB / 432 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008175/0.606, allocations: 47.83 kB / 432 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.044e-05/0.6061, allocations: 52.16 kB / 432 MB, free: 4.359 MB / 350.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.0003039/0.6064, allocations: 243.9 kB / 432.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.6066, allocations: 114.6 kB / 432.4 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.6079, allocations: 0.5634 MB / 433 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.6079, allocations: 8 kB / 433 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.6079, allocations: 0 / 433 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.6079, allocations: 3.984 kB / 433 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003227/0.6111, allocations: 1.863 MB / 434.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.6111, allocations: 0 / 434.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004813/0.6116, allocations: 103.9 kB / 434.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001029/0.6117, allocations: 25.06 kB / 435 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/0.6118, allocations: 16 kB / 435 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.6129, allocations: 1.378 MB / 436.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.6129, allocations: 7.938 kB / 436.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.6144, allocations: 0.912 MB / 437.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004594/0.6149, allocations: 247.6 kB / 437.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.615, allocations: 12 kB / 437.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005241/0.6155, allocations: 35.97 kB / 437.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.6156, allocations: 40.31 kB / 437.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.412e-05/0.6157, allocations: 16 kB / 437.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001189/0.6169, allocations: 0.7596 MB / 438.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6169, allocations: 0 / 438.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002064/0.619, allocations: 468 kB / 438.8 MB, free: 13.25 MB / 366.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.0003571/0.6193, allocations: 127.2 kB / 439 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002519/0.6219, allocations: 1.257 MB / 440.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6219, allocations: 0 / 440.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005527/0.6224, allocations: 351.2 kB / 440.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.6238, allocations: 293.1 kB / 440.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004818/0.6287, allocations: 2.484 MB / 443.3 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009439/0.6296, allocations: 1.177 MB / 444.5 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006725/0.6303, allocations: 157.2 kB / 444.7 MB, free: 7.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/0.6305, allocations: 71.44 kB / 444.7 MB, free: 7.238 MB / 366.1 MB Notification: Performance of SimCode: time 1.653e-06/0.6305, allocations: 0 / 444.7 MB, free: 7.238 MB / 366.1 MB Notification: Performance of Templates: time 0.02812/0.6587, allocations: 13.35 MB / 458.1 MB, free: 9.871 MB / 382.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)