Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002056/0.002056, allocations: 194 kB / 16.25 MB, free: 6.625 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.869/1.869, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001484/0.001484, allocations: 43.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3605, allocations: 46.63 MB / 324.9 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01292/0.3736, allocations: 8.107 MB / 333 MB, free: 11.53 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007661/0.3813, allocations: 2.712 MB / 335.7 MB, free: 9.238 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001871/0.3833, allocations: 31.88 kB / 335.7 MB, free: 9.207 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002097/0.3854, allocations: 473.4 kB / 336.2 MB, free: 8.742 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001824/0.3873, allocations: 377.3 kB / 336.5 MB, free: 8.371 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008982/0.3882, allocations: 323.7 kB / 336.8 MB, free: 8.055 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00195/0.3901, allocations: 1.495 MB / 338.3 MB, free: 6.551 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000948/0.3911, allocations: 0.6088 MB / 339 MB, free: 5.922 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008542/0.392, allocations: 0.5523 MB / 339.5 MB, free: 5.367 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006989/0.3927, allocations: 0.6142 MB / 340.1 MB, free: 4.75 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000171/0.3929, allocations: 144 kB / 340.3 MB, free: 4.609 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003784/0.3932, allocations: 176 kB / 340.4 MB, free: 4.438 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002416/0.3935, allocations: 286.9 kB / 340.7 MB, free: 4.156 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006707/0.3942, allocations: 0.6647 MB / 341.4 MB, free: 3.488 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001825/0.396, allocations: 1.693 MB / 343.1 MB, free: 1.789 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.396, allocations: 0 / 343.1 MB, free: 1.789 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.396, allocations: 0 / 343.1 MB, free: 1.789 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.3961, allocations: 0 / 343.1 MB, free: 1.789 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.00268/0.3987, allocations: 1.515 MB / 344.6 MB, free: 224 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.3988, allocations: 8.031 kB / 344.6 MB, free: 216 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000672/0.3995, allocations: 191.2 kB / 344.8 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001296/0.4008, allocations: 0.7783 MB / 345.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.389e-05/0.4009, allocations: 82.12 kB / 345.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.401, allocations: 103.9 kB / 345.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.4028, allocations: 0.9497 MB / 346.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.184e-05/0.4028, allocations: 3.906 kB / 346.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.793e-05/0.4029, allocations: 47.94 kB / 346.7 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.4029, allocations: 24 kB / 346.8 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/0.4042, allocations: 0.6286 MB / 347.4 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006135/0.4103, allocations: 4.127 MB / 351.5 MB, free: 8.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.4114, allocations: 423.9 kB / 351.9 MB, free: 8.551 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.4117, allocations: 165.4 kB / 352.1 MB, free: 8.387 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.832e-05/0.4117, allocations: 7.75 kB / 352.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.4118, allocations: 38.56 kB / 352.1 MB, free: 8.332 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.364e-06/0.4118, allocations: 0 / 352.1 MB, free: 8.332 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002522/0.4143, allocations: 1.321 MB / 353.5 MB, free: 6.938 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.4144, allocations: 106.8 kB / 353.6 MB, free: 6.809 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.4156, allocations: 0.9018 MB / 354.5 MB, free: 5.883 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.4157, allocations: 33.7 kB / 354.5 MB, free: 5.844 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004827/0.4162, allocations: 0.5914 MB / 355.1 MB, free: 5.242 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.4163, allocations: 150 kB / 355.2 MB, free: 5.094 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.4165, allocations: 130.5 kB / 355.4 MB, free: 4.961 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003511/0.4169, allocations: 337.9 kB / 355.7 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.4172, allocations: 176.8 kB / 355.9 MB, free: 4.449 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006273/0.4179, allocations: 489.7 kB / 356.3 MB, free: 3.824 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000924/0.4188, allocations: 0.683 MB / 357 MB, free: 2.996 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.4188, allocations: 8 kB / 357 MB, free: 2.988 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001236/0.4201, allocations: 0.747 MB / 357.8 MB, free: 2.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.4201, allocations: 12.06 kB / 357.8 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.4201, allocations: 12 kB / 357.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001963/0.4203, allocations: 36.78 kB / 357.8 MB, free: 2.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005892/0.4209, allocations: 171.7 kB / 358 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.4224, allocations: 1.394 MB / 359.4 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.423, allocations: 43.98 kB / 359.4 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/0.4231, allocations: 36 kB / 359.5 MB, free: 400 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006962/0.4238, allocations: 350.1 kB / 359.8 MB, free: 44 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006472/0.4245, allocations: 481.6 kB / 360.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001012/0.4255, allocations: 0.6597 MB / 361 MB, free: 14.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.396e-06/0.4255, allocations: 4 kB / 361 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00128/0.4268, allocations: 0.7242 MB / 361.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.4268, allocations: 8 kB / 361.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.4268, allocations: 12 kB / 361.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001033/0.427, allocations: 32.88 kB / 361.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005504/0.4275, allocations: 167.7 kB / 361.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.4288, allocations: 1.39 MB / 363.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005261/0.4294, allocations: 35.89 kB / 363.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.4294, allocations: 36 kB / 363.4 MB, free: 12.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0003274/0.4298, allocations: 244 kB / 363.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.4299, allocations: 90.88 kB / 363.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.4309, allocations: 435.1 kB / 364.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.431, allocations: 4 kB / 364.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.431, allocations: 12 kB / 364.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.431, allocations: 3.984 kB / 364.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.4332, allocations: 1.378 MB / 365.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4332, allocations: 0 / 365.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.4335, allocations: 83.83 kB / 365.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.895e-05/0.4336, allocations: 16.86 kB / 365.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.4337, allocations: 12 kB / 365.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.4348, allocations: 1.375 MB / 367 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4349, allocations: 0 / 367 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.436, allocations: 0.7133 MB / 367.7 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002845/0.4363, allocations: 207.9 kB / 367.9 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.768e-05/0.4364, allocations: 12 kB / 367.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.4368, allocations: 27.97 kB / 367.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.518e-05/0.4369, allocations: 27.97 kB / 368 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.4369, allocations: 12 kB / 368 MB, free: 7.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.438, allocations: 0.6094 MB / 368.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.438, allocations: 0 / 368.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001294/0.4393, allocations: 348 kB / 368.9 MB, free: 6.172 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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.0002849/0.4396, allocations: 127.1 kB / 369.1 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002027/0.4416, allocations: 0.9876 MB / 370 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4416, allocations: 5.938 kB / 370.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.4421, allocations: 290.8 kB / 370.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.4435, allocations: 242 kB / 370.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004058/0.4476, allocations: 2.253 MB / 372.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008202/0.4484, allocations: 1.029 MB / 373.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006171/0.4491, allocations: 127.4 kB / 374 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.4492, allocations: 55.44 kB / 374 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of SimCode: time 2.144e-06/0.4492, allocations: 0 / 374 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of Templates: time 0.0233/0.4725, allocations: 10.59 MB / 384.6 MB, free: 6.344 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)