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.001564/0.001564, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00172/0.00172, allocations: 193.2 kB / 16.13 MB, free: 6.664 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.951/1.951, allocations: 205.1 MB / 222 MB, free: 4.738 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.001464/0.001464, allocations: 47.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.348, allocations: 46.62 MB / 324.7 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01495/0.363, allocations: 14.41 MB / 339.1 MB, free: 5.801 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.3744, allocations: 5.241 MB / 344.3 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003338/0.3778, allocations: 63.75 kB / 344.4 MB, free: 496 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002976/0.3809, allocations: 0.7847 MB / 345.2 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002957/0.3839, allocations: 0.4926 MB / 345.7 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.385, allocations: 0.5347 MB / 346.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002858/0.3879, allocations: 2.245 MB / 348.4 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.3894, allocations: 1.081 MB / 349.5 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.3908, allocations: 0.7582 MB / 350.3 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009314/0.3918, allocations: 0.8978 MB / 351.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002076/0.392, allocations: 144 kB / 351.3 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004001/0.3924, allocations: 180 kB / 351.5 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.3927, allocations: 378.3 kB / 351.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008144/0.3935, allocations: 0.9713 MB / 352.8 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.3957, allocations: 2.861 MB / 355.7 MB, free: 5.086 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.3957, allocations: 12 kB / 355.7 MB, free: 5.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3957, allocations: 0 / 355.7 MB, free: 5.074 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.809e-05/0.3958, allocations: 0 / 355.7 MB, free: 5.074 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.003969/0.3997, allocations: 2.239 MB / 358 MB, free: 2.777 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3998, allocations: 12.03 kB / 358 MB, free: 2.766 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007414/0.4006, allocations: 270.2 kB / 358.2 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001701/0.4023, allocations: 1.127 MB / 359.4 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.246e-05/0.4024, allocations: 127.6 kB / 359.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.4026, allocations: 172.3 kB / 359.6 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/0.4052, allocations: 1.597 MB / 361.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.455e-05/0.4053, allocations: 11.89 kB / 361.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.4054, allocations: 68 kB / 361.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.068e-05/0.4054, allocations: 40 kB / 361.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.4074, allocations: 1.085 MB / 362.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008698/0.4161, allocations: 6.666 MB / 369.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.4179, allocations: 0.9398 MB / 370.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005443/0.4184, allocations: 302.4 kB / 370.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.27e-05/0.4185, allocations: 12.5 kB / 370.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.4185, allocations: 43.12 kB / 370.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.104e-06/0.4185, allocations: 0 / 370.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.003905/0.4224, allocations: 2.023 MB / 372.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.4225, allocations: 93.59 kB / 372.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.4242, allocations: 1.281 MB / 373.8 MB, free: 2.316 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/0.4243, allocations: 37.7 kB / 373.8 MB, free: 2.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006297/0.4249, allocations: 0.8959 MB / 374.7 MB, free: 1.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.4251, allocations: 244.6 kB / 375 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002579/0.4254, allocations: 198.7 kB / 375.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4255, allocations: 345.9 kB / 375.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005953/0.4261, allocations: 314 kB / 375.8 MB, free: 276 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008831/0.427, allocations: 0.708 MB / 376.5 MB, free: 15.37 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.4285, allocations: 1.035 MB / 377.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.4285, allocations: 8 kB / 377.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002013/0.4305, allocations: 1.161 MB / 378.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.4306, allocations: 12 kB / 378.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.4306, allocations: 19.97 kB / 378.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/0.4308, allocations: 40.84 kB / 378.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008597/0.4317, allocations: 263.6 kB / 379 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.4328, allocations: 1.288 MB / 380.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008999/0.4337, allocations: 63.88 kB / 380.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-05/0.4338, allocations: 52.12 kB / 380.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001033/0.4348, allocations: 0.526 MB / 381 MB, free: 10.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007564/0.4356, allocations: 0.6698 MB / 381.6 MB, free: 9.707 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001323/0.4369, allocations: 0.9893 MB / 382.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.242e-06/0.4369, allocations: 4 kB / 382.6 MB, free: 8.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001706/0.4387, allocations: 1.09 MB / 383.7 MB, free: 7.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.4387, allocations: 12 kB / 383.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.4387, allocations: 15.98 kB / 383.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.976e-05/0.4388, allocations: 40.84 kB / 383.8 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000757/0.4396, allocations: 251.6 kB / 384 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.4407, allocations: 1.299 MB / 385.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008732/0.4416, allocations: 55.81 kB / 385.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.061e-05/0.4417, allocations: 60.16 kB / 385.5 MB, free: 5.562 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.0003929/0.4421, allocations: 253 kB / 385.7 MB, free: 5.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.4423, allocations: 134.3 kB / 385.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.4438, allocations: 0.6964 MB / 386.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.4438, allocations: 8 kB / 386.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.4438, allocations: 0 / 386.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.4438, allocations: 3.984 kB / 386.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.4474, allocations: 2.131 MB / 388.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.4474, allocations: 0 / 388.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000607/0.4481, allocations: 135.8 kB / 388.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.955e-05/0.4482, allocations: 25.06 kB / 388.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.583e-05/0.4482, allocations: 20 kB / 388.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000937/0.4492, allocations: 1.284 MB / 390.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4492, allocations: 0 / 390.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.4511, allocations: 1.104 MB / 391.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004477/0.4515, allocations: 271.3 kB / 391.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.4517, allocations: 20 kB / 391.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005814/0.4523, allocations: 43.95 kB / 391.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.4524, allocations: 52.38 kB / 391.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.4524, allocations: 16 kB / 391.6 MB, free: 15.06 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001217/0.4536, allocations: 0.8541 MB / 392.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4537, allocations: 0 / 392.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001796/0.4555, allocations: 0.5038 MB / 393 MB, free: 13.7 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.0002828/0.4557, allocations: 131.3 kB / 393.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.4584, allocations: 1.444 MB / 394.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4585, allocations: 0 / 394.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006699/0.4591, allocations: 431.2 kB / 395 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.4607, allocations: 313.1 kB / 395.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006298/0.467, allocations: 3.54 MB / 398.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.4683, allocations: 1.233 MB / 400.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00099/0.4693, allocations: 178.5 kB / 400.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003018/0.4696, allocations: 87.44 kB / 400.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4696, allocations: 0 / 400.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of Templates: time 0.03258/0.5022, allocations: 14.25 MB / 414.6 MB, free: 7.973 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)