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.001008/0.001008, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001609/0.001609, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.764/1.764, allocations: 205.4 MB / 222.1 MB, free: 5.672 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.0004657/0.0004658, allocations: 14.81 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3105, allocations: 47.57 MB / 326.4 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.02712/0.3377, allocations: 11.34 MB / 337.8 MB, free: 8.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01828/0.356, allocations: 5.003 MB / 342.8 MB, free: 3.152 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005051/0.3612, allocations: 51.81 kB / 342.8 MB, free: 3.102 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006595/0.3678, allocations: 0.82 MB / 343.7 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00689/0.3748, allocations: 0.8606 MB / 344.5 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00448/0.3793, allocations: 0.511 MB / 345 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006208/0.3855, allocations: 1.449 MB / 346.5 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002719/0.3883, allocations: 0.764 MB / 347.2 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001647/0.3899, allocations: 0.5795 MB / 347.8 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002139/0.3921, allocations: 0.6686 MB / 348.5 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006491/0.3928, allocations: 88 kB / 348.6 MB, free: 13.31 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.394, allocations: 136 kB / 348.7 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006347/0.3947, allocations: 274.8 kB / 349 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009443/0.3956, allocations: 356.8 kB / 349.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003542/0.3992, allocations: 2.158 MB / 351.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3992, allocations: 4 kB / 351.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3993, allocations: 0 / 351.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.000131/0.3994, allocations: 0 / 351.5 MB, free: 10.39 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.006951/0.4064, allocations: 1.755 MB / 353.2 MB, free: 8.574 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.897e-05/0.4065, allocations: 8.031 kB / 353.2 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002098/0.4086, allocations: 253.5 kB / 353.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004435/0.413, allocations: 1.004 MB / 354.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.4133, allocations: 111 kB / 354.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007102/0.414, allocations: 159.9 kB / 354.8 MB, free: 7.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006435/0.4205, allocations: 1.411 MB / 356.2 MB, free: 5.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-05/0.4206, allocations: 4 kB / 356.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/0.4209, allocations: 63.98 kB / 356.2 MB, free: 5.469 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.769e-05/0.421, allocations: 36 kB / 356.3 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004289/0.4253, allocations: 0.9673 MB / 357.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01844/0.4438, allocations: 6.16 MB / 363.4 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.4458, allocations: 0.6559 MB / 364.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.4459, allocations: 12.5 kB / 364.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.4459, allocations: 39 kB / 364.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 6.532e-06/0.446, allocations: 0 / 364.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005794/0.4518, allocations: 1.754 MB / 365.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.669e-05/0.4519, allocations: 85.5 kB / 365.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002956/0.4548, allocations: 1.108 MB / 367.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.4549, allocations: 41.64 kB / 367.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009425/0.4559, allocations: 0.813 MB / 367.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002954/0.4562, allocations: 197.2 kB / 368.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.4563, allocations: 20 kB / 368.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.4565, allocations: 341.9 kB / 368.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009073/0.4574, allocations: 249.9 kB / 368.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.4588, allocations: 0.6251 MB / 369.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.46, allocations: 350 kB / 369.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/0.46, allocations: 4 kB / 369.7 MB, free: 7.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003146/0.4632, allocations: 1.006 MB / 370.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003003/0.4662, allocations: 5.141 MB / 375.8 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.4662, allocations: 15.98 kB / 375.8 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002638/0.4665, allocations: 40.86 kB / 375.9 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.4679, allocations: 231.6 kB / 376.1 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.4695, allocations: 1.296 MB / 377.4 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.471, allocations: 55.89 kB / 377.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.4712, allocations: 51.98 kB / 377.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.4712, allocations: 4 kB / 377.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002248/0.4735, allocations: 0.807 MB / 378.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.024e-05/0.4735, allocations: 15.95 kB / 378.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.4737, allocations: 44.78 kB / 378.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.475, allocations: 220 kB / 378.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.4764, allocations: 1.296 MB / 379.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.4778, allocations: 44.23 kB / 379.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.4779, allocations: 48 kB / 380 MB, free: 12.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001197/0.4791, allocations: 408.8 kB / 380.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003902/0.4796, allocations: 122.4 kB / 380.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/0.4816, allocations: 0.5791 MB / 381.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.4816, allocations: 4 kB / 381.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4816, allocations: 0 / 381.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.4817, allocations: 7.984 kB / 381.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005462/0.4871, allocations: 1.871 MB / 383 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.4872, allocations: 4 kB / 383 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009611/0.4881, allocations: 107.8 kB / 383.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001413/0.4883, allocations: 24.8 kB / 383.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.709e-05/0.4884, allocations: 16.22 kB / 383.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001437/0.4899, allocations: 1.288 MB / 384.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.4899, allocations: 4.281 kB / 384.4 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002621/0.4925, allocations: 1.025 MB / 385.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007209/0.4933, allocations: 247.6 kB / 385.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/0.4936, allocations: 12.19 kB / 385.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009768/0.4946, allocations: 35.97 kB / 385.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.4948, allocations: 52.31 kB / 385.8 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-05/0.4948, allocations: 19.98 kB / 385.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001992/0.4968, allocations: 0.7323 MB / 386.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4968, allocations: 0 / 386.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002801/0.4997, allocations: 472 kB / 387 MB, free: 5.039 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003756/0.5001, allocations: 131 kB / 387.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003713/0.5038, allocations: 1.254 MB / 388.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/0.5038, allocations: 0 / 388.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009598/0.5048, allocations: 365.7 kB / 388.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/0.5068, allocations: 260.8 kB / 389 MB, free: 2.996 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005772/0.5126, allocations: 3.071 MB / 392 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008828/0.5135, allocations: 1.208 MB / 393.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007604/0.5143, allocations: 161.2 kB / 393.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.5145, allocations: 75.44 kB / 393.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5145, allocations: 0 / 393.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Templates: time 0.02322/0.5377, allocations: 11.88 MB / 405.4 MB, free: 2.5 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: