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.00178/0.00178, allocations: 108 kB / 15.61 MB, free: 152 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.001769/0.001769, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.766/1.766, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001294/0.001294, allocations: 55.91 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3434, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01767/0.3612, allocations: 13.97 MB / 339.3 MB, free: 5.914 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01254/0.3738, allocations: 5.158 MB / 344.4 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0036/0.3774, allocations: 55.81 kB / 344.5 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003136/0.3806, allocations: 0.8735 MB / 345.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002735/0.3834, allocations: 0.5463 MB / 345.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.3846, allocations: 0.511 MB / 346.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003205/0.3879, allocations: 2.155 MB / 348.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001589/0.3895, allocations: 1.123 MB / 349.7 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.3907, allocations: 0.7938 MB / 350.5 MB, free: 10.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009002/0.3916, allocations: 0.8748 MB / 351.4 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.3919, allocations: 232 kB / 351.6 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004873/0.3924, allocations: 276 kB / 351.9 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003587/0.3927, allocations: 446.5 kB / 352.3 MB, free: 8.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009517/0.3937, allocations: 0.9797 MB / 353.3 MB, free: 7.812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002862/0.3966, allocations: 2.71 MB / 356 MB, free: 5.094 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.3966, allocations: 4 kB / 356 MB, free: 5.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3966, allocations: 0 / 356 MB, free: 5.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.3966, allocations: 0 / 356 MB, free: 5.09 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.004032/0.4007, allocations: 2.035 MB / 358 MB, free: 2.996 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.4007, allocations: 11.89 kB / 358 MB, free: 2.984 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007516/0.4015, allocations: 250.5 kB / 358.3 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.4031, allocations: 1.024 MB / 359.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.73e-05/0.4032, allocations: 111.4 kB / 359.4 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.4034, allocations: 156.3 kB / 359.6 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/0.4058, allocations: 1.427 MB / 361 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.402e-05/0.4059, allocations: 11.91 kB / 361 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.406, allocations: 60 kB / 361.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.441e-05/0.406, allocations: 36 kB / 361.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/0.4079, allocations: 0.9595 MB / 362.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008361/0.4163, allocations: 6.148 MB / 368.2 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.4175, allocations: 0.6491 MB / 368.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004219/0.4179, allocations: 238.1 kB / 369.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.418, allocations: 4.438 kB / 369.1 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.418, allocations: 42.94 kB / 369.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.766e-06/0.418, allocations: 0 / 369.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003309/0.4214, allocations: 1.707 MB / 370.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/0.4214, allocations: 85.55 kB / 370.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.423, allocations: 1.139 MB / 372.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.4231, allocations: 33.7 kB / 372.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005686/0.4236, allocations: 0.8093 MB / 372.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.4238, allocations: 201.1 kB / 373.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.4241, allocations: 182.5 kB / 373.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4242, allocations: 345.9 kB / 373.6 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004668/0.4247, allocations: 248.8 kB / 373.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000742/0.4254, allocations: 0.6212 MB / 374.5 MB, free: 1.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.4267, allocations: 0.9106 MB / 375.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.4267, allocations: 4 kB / 375.4 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001685/0.4284, allocations: 1.002 MB / 376.4 MB, free: 15.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.4284, allocations: 8 kB / 376.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.4284, allocations: 16 kB / 376.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.4287, allocations: 45.34 kB / 376.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007832/0.4295, allocations: 223.6 kB / 376.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.431, allocations: 1.382 MB / 378.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009312/0.432, allocations: 55.83 kB / 378.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-05/0.432, allocations: 44 kB / 378.2 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001036/0.4331, allocations: 482.1 kB / 378.6 MB, free: 13.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007935/0.4339, allocations: 0.5939 MB / 379.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001268/0.4352, allocations: 0.8678 MB / 380.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.625e-05/0.4352, allocations: 4 kB / 380.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.00162/0.4368, allocations: 0.9518 MB / 381.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.4369, allocations: 12.22 kB / 381.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.4369, allocations: 16 kB / 381.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001266/0.437, allocations: 32.84 kB / 381.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000664/0.4377, allocations: 215.7 kB / 381.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.4388, allocations: 1.398 MB / 382.7 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007584/0.4396, allocations: 44.06 kB / 382.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.4397, allocations: 44 kB / 382.8 MB, free: 8.555 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.0003592/0.44, allocations: 255.8 kB / 383.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.4402, allocations: 110.6 kB / 383.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.4415, allocations: 0.5595 MB / 383.7 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4416, allocations: 8 kB / 383.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.4416, allocations: 3.938 kB / 383.7 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.4416, allocations: 3.984 kB / 383.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003313/0.4449, allocations: 1.867 MB / 385.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4449, allocations: 224 / 385.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.4454, allocations: 103.9 kB / 385.7 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001128/0.4456, allocations: 20.84 kB / 385.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.4456, allocations: 16 kB / 385.8 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.4467, allocations: 1.378 MB / 387.1 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4467, allocations: 7.938 kB / 387.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.4482, allocations: 0.911 MB / 388.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004545/0.4487, allocations: 251.5 kB / 388.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.4488, allocations: 15.98 kB / 388.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.4493, allocations: 35.98 kB / 388.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.931e-05/0.4494, allocations: 40.31 kB / 388.4 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.4495, allocations: 16 kB / 388.4 MB, free: 2.668 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001171/0.4506, allocations: 0.7557 MB / 389.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4506, allocations: 3.938 kB / 389.2 MB, free: 1.902 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001825/0.4525, allocations: 468 kB / 389.6 MB, free: 1.445 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.0004617/0.453, allocations: 135.2 kB / 389.8 MB, free: 1.305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.4558, allocations: 1.254 MB / 391 MB, free: 32 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.4558, allocations: 4.062 kB / 391 MB, free: 28 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005654/0.4564, allocations: 349 kB / 391.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.4579, allocations: 289.3 kB / 391.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004597/0.4625, allocations: 2.529 MB / 394.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000808/0.4633, allocations: 1.173 MB / 395.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006929/0.464, allocations: 153.2 kB / 395.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.4642, allocations: 75.44 kB / 395.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4642, allocations: 3.938 kB / 395.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of Templates: time 0.0261/0.4903, allocations: 13.1 MB / 408.7 MB, free: 14.25 MB / 350.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)