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.001428/0.001428, allocations: 110.5 kB / 16.62 MB, free: 6.809 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.001623/0.001623, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.988/1.988, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.0012/0.0012, allocations: 51.92 kB / 279.5 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1183, allocations: 46.63 MB / 326.1 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01603/0.1344, allocations: 13.84 MB / 340 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.1465, allocations: 5.022 MB / 345 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004675/0.1513, allocations: 55.81 kB / 345.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003864/0.1552, allocations: 0.7927 MB / 345.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00314/0.1583, allocations: 476.7 kB / 346.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001457/0.1598, allocations: 455.6 kB / 346.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004777/0.1646, allocations: 2.159 MB / 348.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002029/0.1667, allocations: 1.123 MB / 350 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001782/0.1685, allocations: 0.7937 MB / 350.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001035/0.1695, allocations: 0.8788 MB / 351.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002922/0.1698, allocations: 228 kB / 351.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000508/0.1703, allocations: 276 kB / 352.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003997/0.1707, allocations: 450.4 kB / 352.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009951/0.1718, allocations: 0.9836 MB / 353.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003351/0.1751, allocations: 2.71 MB / 356.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.055e-05/0.1751, allocations: 3.938 kB / 356.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.1752, allocations: 0 / 356.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.198e-05/0.1752, allocations: 4 kB / 356.3 MB, free: 6.383 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.004582/0.1798, allocations: 2.031 MB / 358.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.027e-05/0.1799, allocations: 11.89 kB / 358.4 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008003/0.1807, allocations: 238.5 kB / 358.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001706/0.1824, allocations: 1.032 MB / 359.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.1825, allocations: 115.4 kB / 359.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.1828, allocations: 152.3 kB / 359.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002624/0.1854, allocations: 1.431 MB / 361.3 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.936e-05/0.1855, allocations: 7.891 kB / 361.4 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.1856, allocations: 64 kB / 361.4 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.1856, allocations: 36 kB / 361.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.1874, allocations: 0.9595 MB / 362.4 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009029/0.1965, allocations: 6.14 MB / 368.6 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.1976, allocations: 0.6479 MB / 369.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.1981, allocations: 234.1 kB / 369.4 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.635e-05/0.1982, allocations: 16.44 kB / 369.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.1982, allocations: 39 kB / 369.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 1.547e-05/0.1982, allocations: 3.984 kB / 369.5 MB, free: 8.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.003603/0.2018, allocations: 1.707 MB / 371.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.2019, allocations: 81.55 kB / 371.3 MB, free: 6.836 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.2036, allocations: 1.131 MB / 372.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.646e-05/0.2037, allocations: 41.7 kB / 372.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006018/0.2043, allocations: 0.8054 MB / 373.3 MB, free: 4.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.2044, allocations: 205.1 kB / 373.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002647/0.2047, allocations: 178.5 kB / 373.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2049, allocations: 341.9 kB / 374 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/0.2053, allocations: 240.8 kB / 374.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007505/0.2061, allocations: 0.6329 MB / 374.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.2074, allocations: 0.9107 MB / 375.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.2074, allocations: 4 kB / 375.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001802/0.2092, allocations: 0.9984 MB / 376.7 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.2092, allocations: 12 kB / 376.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.2093, allocations: 12 kB / 376.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.2095, allocations: 45.22 kB / 376.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007429/0.2102, allocations: 227.6 kB / 377 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3037/0.514, allocations: 1.384 MB / 378.4 MB, free: 51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.5159, allocations: 52.83 kB / 378.5 MB, free: 51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.516, allocations: 48.72 kB / 378.5 MB, free: 51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001531/0.5176, allocations: 468.3 kB / 379 MB, free: 50.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008795/0.5184, allocations: 0.6034 MB / 379.6 MB, free: 50.44 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001504/0.52, allocations: 0.8681 MB / 380.4 MB, free: 49.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.378e-06/0.52, allocations: 8.062 kB / 380.5 MB, free: 49.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.002464/0.5225, allocations: 0.9454 MB / 381.4 MB, free: 49.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.5225, allocations: 13.94 kB / 381.4 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.5225, allocations: 14.09 kB / 381.4 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001521/0.5227, allocations: 40.61 kB / 381.5 MB, free: 49.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007642/0.5235, allocations: 214.5 kB / 381.7 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.5245, allocations: 1.396 MB / 383.1 MB, free: 48.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.5256, allocations: 40.64 kB / 383.1 MB, free: 48.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.913e-05/0.5257, allocations: 46.48 kB / 383.2 MB, free: 48.29 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.0004429/0.5262, allocations: 250 kB / 383.4 MB, free: 48.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002454/0.5264, allocations: 112.2 kB / 383.5 MB, free: 48.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.528, allocations: 0.56 MB / 384.1 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.528, allocations: 10.38 kB / 384.1 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.528, allocations: 3.656 kB / 384.1 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.528, allocations: 0 / 384.1 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004019/0.5321, allocations: 1.862 MB / 385.9 MB, free: 46.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.5321, allocations: 2.984 kB / 385.9 MB, free: 46.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005889/0.5327, allocations: 108.5 kB / 386.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001335/0.5328, allocations: 23.55 kB / 386.1 MB, free: 46.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.5329, allocations: 19.61 kB / 386.1 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009812/0.5339, allocations: 1.373 MB / 387.5 MB, free: 45.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.5339, allocations: 2.969 kB / 387.5 MB, free: 45.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.5358, allocations: 0.9094 MB / 388.4 MB, free: 44.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005531/0.5363, allocations: 251.2 kB / 388.6 MB, free: 44.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.5365, allocations: 14.84 kB / 388.6 MB, free: 44.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005492/0.5371, allocations: 36.47 kB / 388.7 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.5372, allocations: 48.66 kB / 388.7 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.711e-05/0.5373, allocations: 17.78 kB / 388.7 MB, free: 44.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001538/0.5388, allocations: 0.7575 MB / 389.5 MB, free: 44.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5388, allocations: 0 / 389.5 MB, free: 44.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002345/0.5412, allocations: 471.2 kB / 390 MB, free: 44.43 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.0004495/0.5416, allocations: 123.9 kB / 390.1 MB, free: 44.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003451/0.5451, allocations: 1.263 MB / 391.3 MB, free: 43.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.5451, allocations: 1.844 kB / 391.3 MB, free: 43.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007462/0.5459, allocations: 358.5 kB / 391.7 MB, free: 43.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/0.548, allocations: 278.2 kB / 392 MB, free: 43.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006418/0.5544, allocations: 3.157 MB / 395.1 MB, free: 41.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/0.5558, allocations: 1.172 MB / 396.3 MB, free: 40.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.557, allocations: 155.3 kB / 396.4 MB, free: 40.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.5573, allocations: 74.22 kB / 396.5 MB, free: 40.67 MB / 318.1 MB Notification: Performance of SimCode: time 2.064e-06/0.5573, allocations: 0 / 396.5 MB, free: 40.67 MB / 318.1 MB Notification: Performance of Templates: time 0.03126/0.5886, allocations: 13.05 MB / 409.6 MB, free: 31.63 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)