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.001005/0.001005, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.00102/0.00102, allocations: 172.7 kB / 15.95 MB, free: 208 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.662/1.662, allocations: 205.4 MB / 222.1 MB, free: 5.539 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.0005027/0.0005029, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2681, allocations: 47.59 MB / 326.5 MB, free: 1.473 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01392/0.282, allocations: 12.32 MB / 338.8 MB, free: 7.133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.2928, allocations: 4.818 MB / 343.6 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00392/0.2968, allocations: 59.75 kB / 343.7 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002965/0.2998, allocations: 0.7186 MB / 344.4 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002665/0.3025, allocations: 444.6 kB / 344.8 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001503/0.304, allocations: 311.6 kB / 345.1 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003678/0.3077, allocations: 1.925 MB / 347.1 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.3096, allocations: 0.7639 MB / 347.8 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.3111, allocations: 0.5871 MB / 348.4 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/0.3127, allocations: 0.6801 MB / 349.1 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005071/0.3132, allocations: 99.94 kB / 349.2 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009563/0.3141, allocations: 132 kB / 349.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004767/0.3146, allocations: 278.7 kB / 349.6 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007954/0.3154, allocations: 360.8 kB / 349.9 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0027/0.3182, allocations: 2.185 MB / 352.1 MB, free: 9.727 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3182, allocations: 0 / 352.1 MB, free: 9.727 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3182, allocations: 0 / 352.1 MB, free: 9.727 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001136/0.3183, allocations: 0 / 352.1 MB, free: 9.727 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.004766/0.3231, allocations: 1.763 MB / 353.9 MB, free: 7.906 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.3231, allocations: 8.031 kB / 353.9 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.3242, allocations: 249.5 kB / 354.1 MB, free: 7.652 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.3261, allocations: 0.9887 MB / 355.1 MB, free: 6.621 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.607e-05/0.3262, allocations: 111 kB / 355.2 MB, free: 6.512 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/0.3264, allocations: 167.9 kB / 355.4 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002611/0.329, allocations: 1.423 MB / 356.8 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.083e-05/0.3291, allocations: 0 / 356.8 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.3292, allocations: 64 kB / 356.9 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.152e-05/0.3292, allocations: 39.94 kB / 356.9 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.3311, allocations: 0.9673 MB / 357.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008282/0.3394, allocations: 6.179 MB / 364.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.3406, allocations: 0.656 MB / 364.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004375/0.3411, allocations: 246.1 kB / 365 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.635e-05/0.3411, allocations: 4.438 kB / 365 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.3412, allocations: 42.94 kB / 365 MB, free: 12.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.425e-06/0.3412, allocations: 0 / 365 MB, free: 12.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003662/0.3449, allocations: 1.758 MB / 366.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.345, allocations: 81.55 kB / 366.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/0.3468, allocations: 1.12 MB / 368 MB, free: 9.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.3469, allocations: 33.7 kB / 368 MB, free: 9.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006322/0.3475, allocations: 0.8209 MB / 368.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.3477, allocations: 201.2 kB / 369 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.3478, allocations: 16 kB / 369 MB, free: 8.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3479, allocations: 345.9 kB / 369.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/0.3484, allocations: 245.9 kB / 369.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007165/0.3491, allocations: 0.629 MB / 370.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006241/0.3498, allocations: 346 kB / 370.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.035e-05/0.3498, allocations: 4 kB / 370.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001789/0.3516, allocations: 1.006 MB / 371.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003738/0.352, allocations: 481.5 kB / 372.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.352, allocations: 16 kB / 372.1 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001962/0.3522, allocations: 44.78 kB / 372.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007633/0.353, allocations: 227.6 kB / 372.3 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.3543, allocations: 1.295 MB / 373.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007937/0.3551, allocations: 60.05 kB / 373.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.017e-05/0.3552, allocations: 44 kB / 373.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.627e-06/0.3552, allocations: 4 kB / 373.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001383/0.3566, allocations: 0.8111 MB / 374.6 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.3566, allocations: 16.06 kB / 374.6 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000102/0.3567, allocations: 48.73 kB / 374.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006638/0.3574, allocations: 219.7 kB / 374.8 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.3585, allocations: 1.292 MB / 376.1 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000791/0.3593, allocations: 39.91 kB / 376.2 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.296e-05/0.3594, allocations: 48 kB / 376.2 MB, free: 336 kB / 302.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.000813/0.3602, allocations: 416.8 kB / 376.6 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.3605, allocations: 114.5 kB / 376.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.3616, allocations: 0.583 MB / 377.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3616, allocations: 4 kB / 377.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3617, allocations: 0 / 377.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3617, allocations: 3.984 kB / 377.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003239/0.3649, allocations: 1.882 MB / 379.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3649, allocations: 48 / 379.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000503/0.3654, allocations: 124 kB / 379.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.3656, allocations: 24.81 kB / 379.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/0.3656, allocations: 15.94 kB / 379.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/0.3667, allocations: 1.284 MB / 380.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3667, allocations: 4.031 kB / 380.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.3683, allocations: 0.9345 MB / 381.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004875/0.3688, allocations: 243.6 kB / 381.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.369, allocations: 16 kB / 381.8 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.3695, allocations: 39.97 kB / 381.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.3696, allocations: 40.42 kB / 381.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/0.3696, allocations: 19.98 kB / 381.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.3709, allocations: 0.7479 MB / 382.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3709, allocations: 0 / 382.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001808/0.3727, allocations: 468 kB / 383.1 MB, free: 9.094 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.0002978/0.373, allocations: 127 kB / 383.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002422/0.3755, allocations: 1.256 MB / 384.5 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3755, allocations: 1.875 kB / 384.5 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005612/0.376, allocations: 365.4 kB / 384.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.3775, allocations: 268.6 kB / 385.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00517/0.3827, allocations: 3.087 MB / 388.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009514/0.3836, allocations: 1.173 MB / 389.4 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007616/0.3844, allocations: 161.2 kB / 389.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.3846, allocations: 75.44 kB / 389.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3846, allocations: 0 / 389.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of Templates: time 0.02501/0.4097, allocations: 12.04 MB / 401.7 MB, free: 6.402 MB / 334.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)