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.001566/0.001572, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001671/0.001671, allocations: 193.8 kB / 16.14 MB, free: 6.715 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.847/1.847, allocations: 205.1 MB / 222 MB, free: 4.973 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.001231/0.001231, allocations: 47.94 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3214, allocations: 46.63 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01714/0.3386, allocations: 13.84 MB / 338.5 MB, free: 6.289 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.351, allocations: 5.042 MB / 343.6 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005003/0.356, allocations: 55.81 kB / 343.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004274/0.3604, allocations: 0.7615 MB / 344.4 MB, free: 424 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003645/0.3641, allocations: 476.6 kB / 344.8 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.3657, allocations: 455.7 kB / 345.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004001/0.3697, allocations: 2.038 MB / 347.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001742/0.3714, allocations: 0.9926 MB / 348.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001526/0.373, allocations: 0.6883 MB / 349 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009756/0.374, allocations: 0.8201 MB / 349.8 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002387/0.3742, allocations: 136 kB / 350 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000502/0.3747, allocations: 168 kB / 350.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000317/0.3751, allocations: 346.5 kB / 350.5 MB, free: 10.26 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.3761, allocations: 0.8782 MB / 351.3 MB, free: 9.375 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002889/0.379, allocations: 2.647 MB / 354 MB, free: 6.719 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.3791, allocations: 0 / 354 MB, free: 6.719 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3791, allocations: 0 / 354 MB, free: 6.719 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.106e-05/0.3792, allocations: 0 / 354 MB, free: 6.719 MB / 286.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.004685/0.3838, allocations: 2.031 MB / 356 MB, free: 4.629 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.629e-05/0.3839, allocations: 12.03 kB / 356 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008336/0.3848, allocations: 246.5 kB / 356.3 MB, free: 4.375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.3866, allocations: 1.024 MB / 357.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.462e-05/0.3867, allocations: 111.4 kB / 357.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002101/0.3869, allocations: 160.3 kB / 357.6 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.3896, allocations: 1.431 MB / 359 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.671e-05/0.3897, allocations: 7.906 kB / 359 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.3898, allocations: 60 kB / 359.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.763e-05/0.3898, allocations: 40 kB / 359.1 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.3917, allocations: 0.9556 MB / 360.1 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.4019, allocations: 6.152 MB / 366.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.4033, allocations: 0.6452 MB / 366.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004383/0.4038, allocations: 238.1 kB / 367.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.4038, allocations: 16.36 kB / 367.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.4039, allocations: 35 kB / 367.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.294e-05/0.4039, allocations: 0 / 367.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003582/0.4075, allocations: 1.711 MB / 368.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.4076, allocations: 85.55 kB / 368.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.4093, allocations: 1.128 MB / 370.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.4094, allocations: 37.7 kB / 370.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007832/0.4102, allocations: 0.8054 MB / 370.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.4104, allocations: 209 kB / 371.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.4107, allocations: 174.5 kB / 371.3 MB, free: 4.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.4109, allocations: 345.9 kB / 371.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005336/0.4115, allocations: 252.7 kB / 371.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000809/0.4123, allocations: 0.6251 MB / 372.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.4136, allocations: 0.9184 MB / 373.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.4136, allocations: 4 kB / 373.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001721/0.4153, allocations: 0.9982 MB / 374.4 MB, free: 1.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.4154, allocations: 12 kB / 374.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.4154, allocations: 12.66 kB / 374.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002051/0.4156, allocations: 44.84 kB / 374.5 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007644/0.4164, allocations: 219.7 kB / 374.7 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.4176, allocations: 1.295 MB / 376 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000758/0.4183, allocations: 51.88 kB / 376 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.924e-05/0.4184, allocations: 44 kB / 376.1 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009583/0.4194, allocations: 470 kB / 376.5 MB, free: 14.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007397/0.4201, allocations: 0.5979 MB / 377.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001078/0.4212, allocations: 0.8717 MB / 378 MB, free: 13.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.073e-06/0.4212, allocations: 4 kB / 378 MB, free: 13.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001552/0.4228, allocations: 0.9397 MB / 378.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.4228, allocations: 11.94 kB / 379 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.4228, allocations: 16.75 kB / 379 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001203/0.423, allocations: 48.72 kB / 379 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006661/0.4236, allocations: 215.7 kB / 379.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.4248, allocations: 1.307 MB / 380.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007289/0.4255, allocations: 39.98 kB / 380.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/0.4256, allocations: 44 kB / 380.6 MB, free: 10.39 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.0002959/0.4259, allocations: 255.8 kB / 380.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.4261, allocations: 110.6 kB / 381 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.4273, allocations: 0.5597 MB / 381.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.4273, allocations: 8 kB / 381.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.4273, allocations: 0 / 381.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.4273, allocations: 3.984 kB / 381.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.4306, allocations: 1.871 MB / 383.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4306, allocations: 0 / 383.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004935/0.4311, allocations: 107.8 kB / 383.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.4313, allocations: 20.86 kB / 383.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.4313, allocations: 19.98 kB / 383.6 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.4325, allocations: 1.272 MB / 384.8 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4325, allocations: 0 / 384.8 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.434, allocations: 0.911 MB / 385.8 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004928/0.4345, allocations: 251.6 kB / 386 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.4347, allocations: 15.98 kB / 386 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005431/0.4352, allocations: 31.92 kB / 386 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.4354, allocations: 44.41 kB / 386.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.694e-05/0.4354, allocations: 24 kB / 386.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001321/0.4367, allocations: 0.7557 MB / 386.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4367, allocations: 0 / 386.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002067/0.4388, allocations: 464 kB / 387.3 MB, free: 3.395 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.0005347/0.4394, allocations: 135 kB / 387.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002826/0.4422, allocations: 1.242 MB / 388.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.4422, allocations: 7.938 kB / 388.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006227/0.4429, allocations: 349.2 kB / 389 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.4445, allocations: 261 kB / 389.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006179/0.4507, allocations: 3.145 MB / 392.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.4519, allocations: 1.169 MB / 393.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001071/0.453, allocations: 161.2 kB / 393.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.4532, allocations: 75.44 kB / 393.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of SimCode: time 2.264e-06/0.4533, allocations: 4.125 kB / 393.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of Templates: time 0.03106/0.4843, allocations: 12.51 MB / 406.4 MB, free: 208 kB / 334.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)