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.001236/0.001236, allocations: 99.86 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.001515/0.001515, allocations: 177.3 kB / 15.95 MB, free: 216 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.687/1.687, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005472/0.0005473, allocations: 16 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.301, allocations: 47.58 MB / 326.5 MB, free: 1.629 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.0129/0.3139, allocations: 11.35 MB / 337.8 MB, free: 8.289 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009601/0.3236, allocations: 4.98 MB / 342.8 MB, free: 3.301 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003065/0.3267, allocations: 55.75 kB / 342.8 MB, free: 3.246 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002562/0.3293, allocations: 0.8316 MB / 343.7 MB, free: 2.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002916/0.3322, allocations: 0.8529 MB / 344.5 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.3336, allocations: 0.5033 MB / 345 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002351/0.336, allocations: 1.457 MB / 346.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009974/0.337, allocations: 0.764 MB / 347.2 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006386/0.3377, allocations: 0.5757 MB / 347.8 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006901/0.3384, allocations: 0.6686 MB / 348.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.3385, allocations: 92 kB / 348.6 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003035/0.3388, allocations: 132 kB / 348.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002051/0.339, allocations: 266.9 kB / 349 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000269/0.3393, allocations: 360.8 kB / 349.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.341, allocations: 2.158 MB / 351.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.341, allocations: 0 / 351.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.341, allocations: 7.938 kB / 351.5 MB, free: 10.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.999e-05/0.3411, allocations: 0 / 351.5 MB, free: 10.53 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.003005/0.3441, allocations: 1.755 MB / 353.2 MB, free: 8.719 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3441, allocations: 12.03 kB / 353.3 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006613/0.3448, allocations: 253.5 kB / 353.5 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.3463, allocations: 1 MB / 354.5 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.3464, allocations: 111 kB / 354.6 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/0.3466, allocations: 155.9 kB / 354.8 MB, free: 7.152 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.3489, allocations: 1.411 MB / 356.2 MB, free: 5.684 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.689e-05/0.349, allocations: 4 kB / 356.2 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.3491, allocations: 67.92 kB / 356.2 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.841e-05/0.3491, allocations: 36 kB / 356.3 MB, free: 5.578 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.3508, allocations: 0.9673 MB / 357.2 MB, free: 4.605 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007013/0.3578, allocations: 6.16 MB / 363.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.3589, allocations: 0.6559 MB / 364.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.3589, allocations: 8.422 kB / 364.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.359, allocations: 43 kB / 364.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.555e-06/0.359, allocations: 0 / 364.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.002945/0.3619, allocations: 1.754 MB / 365.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.362, allocations: 89.5 kB / 366 MB, free: 11.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.3633, allocations: 1.1 MB / 367.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.3634, allocations: 41.7 kB / 367.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005036/0.3639, allocations: 0.8131 MB / 367.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.3641, allocations: 205.2 kB / 368.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.3641, allocations: 16 kB / 368.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3642, allocations: 341.9 kB / 368.5 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004366/0.3647, allocations: 245.9 kB / 368.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006709/0.3653, allocations: 0.629 MB / 369.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005526/0.3659, allocations: 350 kB / 369.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.3659, allocations: 4 kB / 369.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001505/0.3674, allocations: 1.002 MB / 370.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001939/0.3694, allocations: 5.149 MB / 375.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.3694, allocations: 12 kB / 375.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.3696, allocations: 36.84 kB / 375.9 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007319/0.3703, allocations: 231.7 kB / 376.1 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009938/0.3713, allocations: 1.303 MB / 377.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000706/0.372, allocations: 59.88 kB / 377.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-05/0.3721, allocations: 44 kB / 377.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.3721, allocations: 4 kB / 377.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001192/0.3733, allocations: 0.8109 MB / 378.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.3734, allocations: 19.95 kB / 378.3 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.314e-05/0.3735, allocations: 40.8 kB / 378.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006433/0.3741, allocations: 216.1 kB / 378.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008372/0.375, allocations: 1.295 MB / 379.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005921/0.3756, allocations: 44.23 kB / 379.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.3756, allocations: 44 kB / 380 MB, free: 12.52 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.0006678/0.3763, allocations: 408.8 kB / 380.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.3765, allocations: 122.5 kB / 380.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.3775, allocations: 0.5869 MB / 381.1 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3776, allocations: 4 kB / 381.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3776, allocations: 8 kB / 381.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3776, allocations: 0 / 381.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002718/0.3803, allocations: 1.878 MB / 383 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3803, allocations: 0 / 383 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/0.3808, allocations: 111.9 kB / 383.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.08e-05/0.3809, allocations: 28.75 kB / 383.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.3809, allocations: 20.2 kB / 383.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000823/0.3818, allocations: 1.276 MB / 384.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3818, allocations: 4.062 kB / 384.4 MB, free: 7.852 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.3832, allocations: 1.029 MB / 385.4 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003216/0.3835, allocations: 243.6 kB / 385.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.3836, allocations: 16 kB / 385.7 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004697/0.3841, allocations: 35.97 kB / 385.7 MB, free: 6.441 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.991e-05/0.3842, allocations: 44.34 kB / 385.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.3842, allocations: 12.09 kB / 385.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001027/0.3853, allocations: 0.74 MB / 386.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3853, allocations: 0 / 386.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001428/0.3867, allocations: 468 kB / 387 MB, free: 5.184 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.0002703/0.387, allocations: 127 kB / 387.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002089/0.3891, allocations: 1.261 MB / 388.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3891, allocations: 3.938 kB / 388.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005219/0.3896, allocations: 362 kB / 388.7 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.3908, allocations: 256.9 kB / 389 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.3955, allocations: 3.075 MB / 392 MB, free: 8 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009683/0.3965, allocations: 1.204 MB / 393.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006961/0.3972, allocations: 161.2 kB / 393.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.3974, allocations: 75.44 kB / 393.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3974, allocations: 0 / 393.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of Templates: time 0.02118/0.4186, allocations: 11.89 MB / 405.4 MB, free: 2.633 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: