Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.00132, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.01157/0.01157, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.869/1.869, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0005457/0.0005459, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3091, allocations: 47.59 MB / 327 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01631/0.3255, allocations: 13.72 MB / 340.8 MB, free: 5.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.3373, allocations: 5.194 MB / 345.9 MB, free: 412 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004576/0.3419, allocations: 59.75 kB / 346 MB, free: 352 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002651/0.3446, allocations: 0.7887 MB / 346.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002363/0.3469, allocations: 0.4887 MB / 347.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.3482, allocations: 0.5346 MB / 347.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002661/0.3508, allocations: 2.241 MB / 350.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.3524, allocations: 1.065 MB / 351.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000956/0.3533, allocations: 0.6567 MB / 351.8 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008764/0.3542, allocations: 0.7769 MB / 352.6 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.3544, allocations: 103.9 kB / 352.7 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003595/0.3548, allocations: 136 kB / 352.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002885/0.3551, allocations: 314.4 kB / 353.1 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008341/0.3559, allocations: 0.9105 MB / 354 MB, free: 8.258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002519/0.3584, allocations: 2.779 MB / 356.8 MB, free: 5.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3585, allocations: 0 / 356.8 MB, free: 5.469 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.3585, allocations: 0 / 356.8 MB, free: 5.469 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.335e-05/0.3585, allocations: 0 / 356.8 MB, free: 5.469 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003706/0.3622, allocations: 1.923 MB / 358.7 MB, free: 3.488 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3623, allocations: 11.97 kB / 358.7 MB, free: 3.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007102/0.363, allocations: 274.2 kB / 359 MB, free: 3.207 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001723/0.3647, allocations: 1.131 MB / 360.1 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.3649, allocations: 123.7 kB / 360.2 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002269/0.3651, allocations: 168.3 kB / 360.4 MB, free: 1.734 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003012/0.3681, allocations: 1.625 MB / 362 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.3682, allocations: 0 / 362 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.3683, allocations: 68.08 kB / 362.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.484e-05/0.3684, allocations: 40 kB / 362.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002298/0.3707, allocations: 1.128 MB / 363.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009425/0.3801, allocations: 6.713 MB / 370 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.3821, allocations: 1.002 MB / 371 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006698/0.3828, allocations: 326.3 kB / 371.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.912e-05/0.3828, allocations: 12.5 kB / 371.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.3829, allocations: 39.12 kB / 371.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.286e-06/0.3829, allocations: 0 / 371.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.00426/0.3872, allocations: 2.139 MB / 373.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.937e-05/0.3872, allocations: 89.61 kB / 373.6 MB, free: 4.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.3891, allocations: 1.27 MB / 374.8 MB, free: 2.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/0.3892, allocations: 41.64 kB / 374.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007318/0.3899, allocations: 0.8927 MB / 375.8 MB, free: 1.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.3901, allocations: 248.5 kB / 376 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.3903, allocations: 89.67 kB / 376.1 MB, free: 1.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.3905, allocations: 353.9 kB / 376.5 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006622/0.3911, allocations: 318.5 kB / 376.8 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.3922, allocations: 0.7237 MB / 377.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/0.3939, allocations: 1.086 MB / 378.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.3939, allocations: 4 kB / 378.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002153/0.3961, allocations: 1.204 MB / 379.8 MB, free: 13.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004253/0.3965, allocations: 0.4884 MB / 380.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.3965, allocations: 12 kB / 380.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.3967, allocations: 44.78 kB / 380.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008816/0.3976, allocations: 271.6 kB / 380.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.3988, allocations: 1.295 MB / 381.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007895/0.3996, allocations: 76.02 kB / 382 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.463e-05/0.3997, allocations: 52 kB / 382 MB, free: 10.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.462e-06/0.3997, allocations: 4 kB / 382 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001551/0.4012, allocations: 0.9573 MB / 383 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.4013, allocations: 20 kB / 383 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001008/0.4014, allocations: 45.34 kB / 383 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007751/0.4021, allocations: 251.6 kB / 383.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000977/0.4031, allocations: 1.296 MB / 384.6 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006142/0.4038, allocations: 51.89 kB / 384.6 MB, free: 8.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.013e-05/0.4038, allocations: 52 kB / 384.7 MB, free: 8.012 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,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 (139): * Single equations (assignments): 138 * 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.0007643/0.4046, allocations: 436.7 kB / 385.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.4048, allocations: 134.4 kB / 385.2 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.4064, allocations: 0.7354 MB / 386 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.4064, allocations: 8 kB / 386 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4064, allocations: 3.938 kB / 386 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.4065, allocations: 3.984 kB / 386 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.41, allocations: 2.178 MB / 388.2 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.41, allocations: 0 / 388.2 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006002/0.4106, allocations: 144.1 kB / 388.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.139e-05/0.4107, allocations: 24.84 kB / 388.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.4108, allocations: 15.94 kB / 388.3 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009198/0.4117, allocations: 1.288 MB / 389.6 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4117, allocations: 7.969 kB / 389.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.4137, allocations: 1.163 MB / 390.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003616/0.4141, allocations: 279.3 kB / 391.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.4142, allocations: 15.98 kB / 391.1 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.4148, allocations: 55.97 kB / 391.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.4149, allocations: 48.5 kB / 391.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.78e-05/0.415, allocations: 23.98 kB / 391.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.4162, allocations: 0.8502 MB / 392.1 MB, free: 304 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4162, allocations: 0 / 392.1 MB, free: 304 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.00166/0.4179, allocations: 0.5077 MB / 392.6 MB, free: 15.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * 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 (63): * Single equations (assignments): 62 * 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.000291/0.4182, allocations: 135.2 kB / 392.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002583/0.4208, allocations: 1.495 MB / 394.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4208, allocations: 0 / 394.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006932/0.4215, allocations: 442.5 kB / 394.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001807/0.4233, allocations: 313.2 kB / 394.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005001/0.4283, allocations: 3.673 MB / 398.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008291/0.4292, allocations: 1.241 MB / 399.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007481/0.4299, allocations: 178.5 kB / 400 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.4302, allocations: 83.44 kB / 400.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4302, allocations: 0 / 400.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of Templates: time 0.02957/0.4598, allocations: 14.13 MB / 414.2 MB, free: 9.961 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)