Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001465/0.001465, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.733/1.733, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001688/0.001688, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.323, allocations: 46.63 MB / 325.3 MB, free: 2.078 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01637/0.3395, allocations: 13.98 MB / 339.3 MB, free: 6.059 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.3505, allocations: 5.158 MB / 344.5 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003468/0.354, allocations: 59.75 kB / 344.5 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003164/0.3572, allocations: 0.8619 MB / 345.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002502/0.3598, allocations: 0.5502 MB / 345.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.3611, allocations: 0.5149 MB / 346.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003549/0.3647, allocations: 2.151 MB / 348.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001775/0.3665, allocations: 1.127 MB / 349.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001266/0.3678, allocations: 0.7899 MB / 350.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001059/0.3688, allocations: 0.8826 MB / 351.4 MB, free: 9.871 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000311/0.3692, allocations: 232 kB / 351.6 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005185/0.3697, allocations: 272 kB / 351.9 MB, free: 9.379 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003308/0.37, allocations: 442.5 kB / 352.3 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009856/0.371, allocations: 0.9836 MB / 353.3 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002934/0.374, allocations: 2.71 MB / 356 MB, free: 5.238 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.374, allocations: 4 kB / 356 MB, free: 5.234 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.374, allocations: 0 / 356 MB, free: 5.234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.618e-05/0.3741, allocations: 0 / 356 MB, free: 5.234 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.003711/0.3778, allocations: 2.031 MB / 358 MB, free: 3.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3778, allocations: 11.89 kB / 358.1 MB, free: 3.133 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008113/0.3786, allocations: 250.5 kB / 358.3 MB, free: 2.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.3804, allocations: 1.024 MB / 359.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.3805, allocations: 111.4 kB / 359.4 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/0.3808, allocations: 160.2 kB / 359.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.3834, allocations: 1.427 MB / 361 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.712e-05/0.3834, allocations: 7.906 kB / 361 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.3836, allocations: 63.94 kB / 361.1 MB, free: 0 / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.411e-05/0.3836, allocations: 40.05 kB / 361.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.3855, allocations: 0.9595 MB / 362.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008905/0.3945, allocations: 6.14 MB / 368.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3957, allocations: 0.6529 MB / 368.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004101/0.3961, allocations: 230.1 kB / 369.1 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.3961, allocations: 8.422 kB / 369.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.3962, allocations: 43 kB / 369.1 MB, free: 7.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 1.386e-05/0.3962, allocations: 3.984 kB / 369.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003548/0.3997, allocations: 1.703 MB / 370.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/0.3998, allocations: 93.55 kB / 370.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.4017, allocations: 1.128 MB / 372.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.049e-05/0.4017, allocations: 33.7 kB / 372.1 MB, free: 4.496 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000571/0.4023, allocations: 0.8093 MB / 372.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.4025, allocations: 201.1 kB / 373.1 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.4027, allocations: 178.5 kB / 373.3 MB, free: 3.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4029, allocations: 341.9 kB / 373.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004635/0.4033, allocations: 248.7 kB / 373.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007113/0.4041, allocations: 0.6251 MB / 374.5 MB, free: 1.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.4053, allocations: 0.9145 MB / 375.4 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.4053, allocations: 8 kB / 375.4 MB, free: 0.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001881/0.4072, allocations: 0.9903 MB / 376.4 MB, free: 15.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.4072, allocations: 12.69 kB / 376.4 MB, free: 15.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.4073, allocations: 16 kB / 376.4 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001982/0.4075, allocations: 40.84 kB / 376.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007352/0.4082, allocations: 223.7 kB / 376.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.4094, allocations: 1.39 MB / 378.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007935/0.4102, allocations: 59.97 kB / 378.1 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.013e-05/0.4103, allocations: 44 kB / 378.2 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008157/0.4111, allocations: 470 kB / 378.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006173/0.4117, allocations: 0.6055 MB / 379.2 MB, free: 12.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001044/0.4128, allocations: 0.8639 MB / 380.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.281e-06/0.4128, allocations: 7.938 kB / 380.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001581/0.4144, allocations: 0.9441 MB / 381.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.4144, allocations: 8 kB / 381.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.4144, allocations: 16 kB / 381.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001168/0.4146, allocations: 40.78 kB / 381.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006582/0.4152, allocations: 215.7 kB / 381.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.4163, allocations: 1.394 MB / 382.7 MB, free: 8.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007392/0.417, allocations: 48.08 kB / 382.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/0.4171, allocations: 44 kB / 382.8 MB, free: 8.711 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.0003173/0.4174, allocations: 247.8 kB / 383.1 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.4176, allocations: 114.5 kB / 383.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.4187, allocations: 0.5673 MB / 383.7 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4188, allocations: 8 kB / 383.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.4188, allocations: 0 / 383.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4188, allocations: 0 / 383.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.4217, allocations: 1.871 MB / 385.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.4217, allocations: 0 / 385.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005641/0.4223, allocations: 107.8 kB / 385.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.4224, allocations: 24.84 kB / 385.7 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.4225, allocations: 20 kB / 385.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009811/0.4235, allocations: 1.378 MB / 387.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.4235, allocations: 8.156 kB / 387.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.4249, allocations: 0.8992 MB / 388.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004368/0.4254, allocations: 247.5 kB / 388.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.4255, allocations: 12 kB / 388.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.426, allocations: 39.97 kB / 388.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-05/0.4261, allocations: 44.36 kB / 388.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.4262, allocations: 12 kB / 388.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.4273, allocations: 0.7557 MB / 389.2 MB, free: 2.066 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4273, allocations: 0 / 389.2 MB, free: 2.066 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001578/0.4289, allocations: 472 kB / 389.6 MB, free: 1.605 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.0003401/0.4293, allocations: 131.1 kB / 389.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.4317, allocations: 1.269 MB / 391 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4317, allocations: 0 / 391 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005775/0.4323, allocations: 349 kB / 391.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/0.4341, allocations: 289.5 kB / 391.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004813/0.4389, allocations: 2.533 MB / 394.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.4398, allocations: 1.169 MB / 395.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007474/0.4405, allocations: 153.2 kB / 395.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.4407, allocations: 79.42 kB / 395.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4407, allocations: 4 kB / 395.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of Templates: time 0.02569/0.4664, allocations: 13.08 MB / 408.7 MB, free: 14.41 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)