Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0009221/0.0009221, allocations: 96.94 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.005837/0.005837, allocations: 168.8 kB / 16.26 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.95/1.95, allocations: 205.4 MB / 222.5 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.0005275/0.0005273, allocations: 14.81 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3961, allocations: 47.57 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01666/0.4129, allocations: 13.72 MB / 340.7 MB, free: 5.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.4273, allocations: 5.194 MB / 345.9 MB, free: 412 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005046/0.4324, allocations: 63.69 kB / 346 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003622/0.436, allocations: 0.7847 MB / 346.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003805/0.4399, allocations: 0.4926 MB / 347.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.4416, allocations: 0.5309 MB / 347.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004041/0.4456, allocations: 2.241 MB / 350.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00175/0.4474, allocations: 1.065 MB / 351.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001356/0.4487, allocations: 0.6645 MB / 351.8 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008969/0.4497, allocations: 0.773 MB / 352.6 MB, free: 9.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001781/0.4498, allocations: 104 kB / 352.7 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003943/0.4502, allocations: 139.9 kB / 352.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002778/0.4505, allocations: 310.4 kB / 353.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009255/0.4515, allocations: 0.9183 MB / 354 MB, free: 8.246 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00261/0.4541, allocations: 2.771 MB / 356.8 MB, free: 5.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.4541, allocations: 0 / 356.8 MB, free: 5.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4541, allocations: 0 / 356.8 MB, free: 5.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.168e-05/0.4542, allocations: 0 / 356.8 MB, free: 5.465 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.003963/0.4581, allocations: 1.927 MB / 358.7 MB, free: 3.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.4582, allocations: 8.031 kB / 358.7 MB, free: 3.473 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007759/0.459, allocations: 274.2 kB / 359 MB, free: 3.203 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/0.4609, allocations: 1.131 MB / 360.1 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.461, allocations: 127.7 kB / 360.2 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/0.4612, allocations: 168.3 kB / 360.4 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/0.4642, allocations: 1.617 MB / 362 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.156e-05/0.4642, allocations: 8 kB / 362 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/0.4644, allocations: 68.08 kB / 362.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.821e-05/0.4644, allocations: 40 kB / 362.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.4667, allocations: 1.117 MB / 363.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.4767, allocations: 6.72 MB / 370 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.4789, allocations: 1.018 MB / 371 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005966/0.4795, allocations: 322.4 kB / 371.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.971e-05/0.4796, allocations: 4.562 kB / 371.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.4797, allocations: 47.12 kB / 371.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.586e-06/0.4797, allocations: 0 / 371.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004616/0.4843, allocations: 2.132 MB / 373.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.662e-05/0.4845, allocations: 97.59 kB / 373.6 MB, free: 4.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.4865, allocations: 1.266 MB / 374.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.4866, allocations: 41.7 kB / 374.9 MB, free: 2.676 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007974/0.4874, allocations: 0.8888 MB / 375.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000246/0.4877, allocations: 256.5 kB / 376 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.4878, allocations: 89.67 kB / 376.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.488, allocations: 349.9 kB / 376.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006464/0.4887, allocations: 318.5 kB / 376.8 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.4897, allocations: 0.7237 MB / 377.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/0.4915, allocations: 1.086 MB / 378.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4915, allocations: 4 kB / 378.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002228/0.4937, allocations: 1.2 MB / 379.8 MB, free: 13.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004219/0.4942, allocations: 0.4885 MB / 380.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/0.4942, allocations: 20 kB / 380.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001979/0.4944, allocations: 40.84 kB / 380.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008652/0.4953, allocations: 267.6 kB / 380.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.4965, allocations: 1.292 MB / 381.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.4976, allocations: 76.03 kB / 382 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.491e-05/0.4977, allocations: 55.98 kB / 382 MB, free: 10.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.317e-06/0.4977, allocations: 4 kB / 382 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001597/0.4993, allocations: 0.9537 MB / 383 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.4993, allocations: 20.12 kB / 383 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001159/0.4995, allocations: 40.94 kB / 383 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007802/0.5003, allocations: 251.6 kB / 383.3 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.5014, allocations: 1.299 MB / 384.6 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000912/0.5023, allocations: 47.89 kB / 384.6 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.3e-05/0.5024, allocations: 52 kB / 384.7 MB, free: 8.016 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.0009711/0.5033, allocations: 447.8 kB / 385.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.5035, allocations: 130.4 kB / 385.2 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.5051, allocations: 0.7432 MB / 386 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.5051, allocations: 7.938 kB / 386 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5051, allocations: 3.938 kB / 386 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.5051, allocations: 3.984 kB / 386 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003577/0.5087, allocations: 2.17 MB / 388.2 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5087, allocations: 4.031 kB / 388.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000614/0.5093, allocations: 143.9 kB / 388.3 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.5094, allocations: 28.72 kB / 388.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.5095, allocations: 16 kB / 388.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009132/0.5104, allocations: 1.288 MB / 389.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.5104, allocations: 4.156 kB / 389.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001984/0.5124, allocations: 1.166 MB / 390.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005259/0.513, allocations: 271.3 kB / 391.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.5131, allocations: 19.98 kB / 391.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005852/0.5137, allocations: 55.97 kB / 391.2 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.5138, allocations: 40.5 kB / 391.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.5139, allocations: 20 kB / 391.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001301/0.5152, allocations: 0.8502 MB / 392.1 MB, free: 312 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5152, allocations: 0 / 392.1 MB, free: 312 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001888/0.5171, allocations: 0.5116 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.000296/0.5174, allocations: 131.2 kB / 392.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.5201, allocations: 1.499 MB / 394.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.5201, allocations: 256 / 394.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007329/0.5209, allocations: 446 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.001914/0.5228, 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.005595/0.5284, allocations: 3.681 MB / 398.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.5295, allocations: 1.233 MB / 399.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008943/0.5304, allocations: 182.5 kB / 400 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.5306, allocations: 83.44 kB / 400.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of SimCode: time 3.346e-06/0.5306, allocations: 0 / 400.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of Templates: time 0.02919/0.5598, allocations: 14.12 MB / 414.2 MB, free: 9.969 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)