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.0009269/0.0009274, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001434/0.001435, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.921/1.921, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0005182/0.0005182, allocations: 11.64 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1463, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.02785/0.1742, allocations: 13.16 MB / 341.5 MB, free: 6.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01872/0.193, allocations: 5.003 MB / 346.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005521/0.1986, allocations: 55.81 kB / 346.5 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004481/0.2031, allocations: 0.7653 MB / 347.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004809/0.2079, allocations: 476.6 kB / 347.8 MB, free: 220 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.2106, allocations: 459.5 kB / 348.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00493/0.2155, allocations: 2.026 MB / 350.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002623/0.2182, allocations: 0.9731 MB / 351.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.2199, allocations: 0.6141 MB / 351.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001255/0.2212, allocations: 0.7187 MB / 352.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002324/0.2214, allocations: 92 kB / 352.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005346/0.222, allocations: 140 kB / 352.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003587/0.2224, allocations: 282.5 kB / 353.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.2235, allocations: 0.8369 MB / 353.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00346/0.227, allocations: 2.557 MB / 356.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.2271, allocations: 0 / 356.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.2271, allocations: 0 / 356.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.66e-05/0.2271, allocations: 0 / 356.5 MB, free: 7.449 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.004998/0.2321, allocations: 1.735 MB / 358.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.2322, allocations: 16.03 kB / 358.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0013/0.2335, allocations: 238.6 kB / 358.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003046/0.2366, allocations: 1.032 MB / 359.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.2368, allocations: 111.4 kB / 359.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004146/0.2372, allocations: 160.2 kB / 359.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00533/0.2426, allocations: 1.446 MB / 361.2 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-05/0.2427, allocations: 4 kB / 361.2 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002067/0.2429, allocations: 60 kB / 361.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-05/0.243, allocations: 43.98 kB / 361.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003793/0.2468, allocations: 0.979 MB / 362.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01539/0.2622, allocations: 6.179 MB / 368.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.2641, allocations: 0.6673 MB / 369.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/0.2647, allocations: 250.1 kB / 369.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.2647, allocations: 4.438 kB / 369.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.2648, allocations: 42.94 kB / 369.4 MB, free: 9.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 2.986e-06/0.2648, allocations: 0 / 369.4 MB, free: 9.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.003921/0.2687, allocations: 1.761 MB / 371.2 MB, free: 8.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.2688, allocations: 85.55 kB / 371.2 MB, free: 8.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.2709, allocations: 1.124 MB / 372.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.532e-05/0.271, allocations: 37.7 kB / 372.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007474/0.2718, allocations: 0.8092 MB / 373.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002163/0.272, allocations: 205.2 kB / 373.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.2722, allocations: 81.67 kB / 373.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.2724, allocations: 341.9 kB / 373.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005198/0.2729, allocations: 249.8 kB / 374.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009055/0.2738, allocations: 0.6408 MB / 374.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.2753, allocations: 0.938 MB / 375.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.2753, allocations: 4 kB / 375.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001953/0.2773, allocations: 1.018 MB / 376.7 MB, free: 2.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004431/0.2778, allocations: 477.2 kB / 377.1 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/0.2778, allocations: 12 kB / 377.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002065/0.278, allocations: 40.84 kB / 377.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007402/0.2788, allocations: 231.6 kB / 377.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2701/0.5489, allocations: 1.295 MB / 378.7 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.5503, allocations: 52.12 kB / 378.8 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/0.5504, allocations: 46.91 kB / 378.8 MB, free: 49.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.5505, allocations: 4.125 kB / 378.8 MB, free: 49.75 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002363/0.5528, allocations: 0.8219 MB / 379.6 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.433e-05/0.5529, allocations: 13.56 kB / 379.7 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.5531, allocations: 38.14 kB / 379.7 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009346/0.554, allocations: 222.9 kB / 379.9 MB, free: 49.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.5554, allocations: 1.293 MB / 381.2 MB, free: 48.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/0.5567, allocations: 39.62 kB / 381.2 MB, free: 48.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.5568, allocations: 50.44 kB / 381.3 MB, free: 48.44 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.001115/0.5579, allocations: 421.6 kB / 381.7 MB, free: 48.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002807/0.5582, allocations: 113 kB / 381.8 MB, free: 48.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.5599, allocations: 0.5823 MB / 382.4 MB, free: 48.17 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/0.56, allocations: 5.156 kB / 382.4 MB, free: 48.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.56, allocations: 4.984 kB / 382.4 MB, free: 48.17 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.56, allocations: 2.062 kB / 382.4 MB, free: 48.17 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003547/0.5636, allocations: 1.888 MB / 384.3 MB, free: 47.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.5636, allocations: 5.062 kB / 384.3 MB, free: 47.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005154/0.5641, allocations: 108.8 kB / 384.4 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001064/0.5642, allocations: 26.62 kB / 384.4 MB, free: 47.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.685e-05/0.5643, allocations: 15.08 kB / 384.4 MB, free: 47.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00079/0.5651, allocations: 1.276 MB / 385.7 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.5651, allocations: 2.125 kB / 385.7 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.5668, allocations: 0.9399 MB / 386.7 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004142/0.5672, allocations: 246.7 kB / 386.9 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.5673, allocations: 15.44 kB / 386.9 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004944/0.5678, allocations: 38.39 kB / 387 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.5679, allocations: 41.88 kB / 387 MB, free: 45.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/0.568, allocations: 13.53 kB / 387 MB, free: 45.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001321/0.5693, allocations: 0.765 MB / 387.8 MB, free: 45.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5693, allocations: 0 / 387.8 MB, free: 45.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002145/0.5715, allocations: 466.6 kB / 388.2 MB, free: 45.27 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.0002983/0.5718, allocations: 127.9 kB / 388.4 MB, free: 45.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002503/0.5743, allocations: 1.273 MB / 389.6 MB, free: 44.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5743, allocations: 1.156 kB / 389.6 MB, free: 44.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005742/0.5749, allocations: 361.5 kB / 390 MB, free: 44.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.5766, allocations: 267.5 kB / 390.2 MB, free: 44.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005423/0.582, allocations: 3.259 MB / 393.5 MB, free: 42.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009659/0.583, allocations: 1.172 MB / 394.7 MB, free: 41.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009006/0.5839, allocations: 158.2 kB / 394.8 MB, free: 41.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.5841, allocations: 73.88 kB / 394.9 MB, free: 41.51 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5842, allocations: 0 / 394.9 MB, free: 41.51 MB / 318.1 MB Notification: Performance of Templates: time 0.02821/0.6124, allocations: 12.41 MB / 407.3 MB, free: 33.5 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)