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.001431/0.001431, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.008379/0.00838, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.994/1.994, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005546/0.0005549, allocations: 15.98 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.4175, allocations: 47.59 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01603/0.4336, allocations: 13.17 MB / 340.2 MB, free: 6.133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.4471, allocations: 4.995 MB / 345.2 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004547/0.4517, allocations: 55.81 kB / 345.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003897/0.4556, allocations: 0.7615 MB / 346 MB, free: 312 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004224/0.4599, allocations: 476.6 kB / 346.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002055/0.462, allocations: 451.7 kB / 346.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005635/0.4676, allocations: 2.026 MB / 349 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002394/0.47, allocations: 0.9731 MB / 349.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001851/0.4719, allocations: 0.6141 MB / 350.5 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002119/0.474, allocations: 0.7226 MB / 351.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006218/0.4747, allocations: 96 kB / 351.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.4758, allocations: 128 kB / 351.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000633/0.4764, allocations: 290.5 kB / 351.8 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.4779, allocations: 0.833 MB / 352.6 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002706/0.4806, allocations: 2.561 MB / 355.2 MB, free: 7.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4806, allocations: 0 / 355.2 MB, free: 7.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.709e-06/0.4806, allocations: 4 kB / 355.2 MB, free: 7.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.376e-05/0.4807, allocations: 0 / 355.2 MB, free: 7.07 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.003618/0.4843, allocations: 1.735 MB / 356.9 MB, free: 5.277 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.4843, allocations: 8.031 kB / 356.9 MB, free: 5.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007292/0.4851, allocations: 246.5 kB / 357.1 MB, free: 5.027 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.4868, allocations: 1.036 MB / 358.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.342e-05/0.4869, allocations: 111.4 kB / 358.3 MB, free: 3.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/0.4872, allocations: 148.4 kB / 358.4 MB, free: 3.695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002721/0.4899, allocations: 1.442 MB / 359.9 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.277e-05/0.49, allocations: 7.906 kB / 359.9 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.4901, allocations: 63.98 kB / 359.9 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.241e-05/0.4902, allocations: 36 kB / 360 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.4921, allocations: 0.9829 MB / 361 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008663/0.5008, allocations: 6.183 MB / 367.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.502, allocations: 0.6647 MB / 367.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004378/0.5024, allocations: 242.1 kB / 368.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.5025, allocations: 12.44 kB / 368.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.5025, allocations: 39 kB / 368.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.565e-06/0.5026, allocations: 0 / 368.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003415/0.506, allocations: 1.773 MB / 369.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.5061, allocations: 81.55 kB / 370 MB, free: 7.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001621/0.5077, allocations: 1.132 MB / 371.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/0.5078, allocations: 37.7 kB / 371.1 MB, free: 6.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006128/0.5084, allocations: 0.8092 MB / 371.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.5086, allocations: 193.2 kB / 372.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.5087, allocations: 89.66 kB / 372.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.5089, allocations: 341.9 kB / 372.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004961/0.5094, allocations: 249.9 kB / 372.8 MB, free: 4.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000745/0.5101, allocations: 0.6368 MB / 373.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.5114, allocations: 0.938 MB / 374.4 MB, free: 2.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.5114, allocations: 4 kB / 374.4 MB, free: 2.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001681/0.5131, allocations: 1.018 MB / 375.4 MB, free: 1.812 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003609/0.5135, allocations: 473.5 kB / 375.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.5135, allocations: 16 kB / 375.9 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001869/0.5137, allocations: 40.84 kB / 375.9 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000748/0.5145, allocations: 231.6 kB / 376.1 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.5158, allocations: 1.303 MB / 377.4 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008103/0.5166, allocations: 55.89 kB / 377.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.5167, allocations: 48.12 kB / 377.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.615e-06/0.5167, allocations: 4 kB / 377.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001261/0.518, allocations: 0.8181 MB / 378.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.518, allocations: 16.78 kB / 378.4 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001016/0.5181, allocations: 44.84 kB / 378.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/0.5188, allocations: 215.7 kB / 378.6 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009192/0.5197, allocations: 1.303 MB / 379.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006515/0.5203, allocations: 36 kB / 380 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.5204, allocations: 44 kB / 380 MB, free: 12.73 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.0007846/0.5212, allocations: 412.7 kB / 380.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.5214, allocations: 122.4 kB / 380.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.5225, allocations: 0.587 MB / 381.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.5225, allocations: 4 kB / 381.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.5225, allocations: 0 / 381.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.5225, allocations: 3.984 kB / 381.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002951/0.5255, allocations: 1.894 MB / 383 MB, free: 9.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.5255, allocations: 4 kB / 383 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/0.526, allocations: 108.1 kB / 383.1 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.274e-05/0.5261, allocations: 24.86 kB / 383.2 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.5262, allocations: 19.98 kB / 383.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009207/0.5271, allocations: 1.276 MB / 384.4 MB, free: 8.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5271, allocations: 3.938 kB / 384.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.5285, allocations: 0.9344 MB / 385.4 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003676/0.5289, allocations: 251.5 kB / 385.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.529, allocations: 19.98 kB / 385.7 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.5295, allocations: 35.98 kB / 385.7 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.853e-05/0.5296, allocations: 36.33 kB / 385.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.5297, allocations: 23.98 kB / 385.7 MB, free: 6.691 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.5308, allocations: 0.7596 MB / 386.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5308, allocations: 0 / 386.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001648/0.5325, allocations: 468 kB / 387 MB, free: 5.469 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.0003025/0.5328, allocations: 131 kB / 387.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.535, allocations: 1.261 MB / 388.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.535, allocations: 0 / 388.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000545/0.5356, allocations: 370.2 kB / 388.7 MB, free: 3.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.5372, allocations: 264.8 kB / 389 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/0.542, allocations: 3.258 MB / 392.2 MB, free: 104 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000838/0.5428, allocations: 1.173 MB / 393.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007401/0.5436, allocations: 153.2 kB / 393.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.5438, allocations: 71.44 kB / 393.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5438, allocations: 0 / 393.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of Templates: time 0.02738/0.5712, allocations: 12.4 MB / 406 MB, free: 2.258 MB / 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)