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.001188/0.001188, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.001251, allocations: 197 kB / 16.53 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.767/1.767, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.002148/0.002148, allocations: 48.36 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3577, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01875/0.3765, allocations: 14.56 MB / 339.9 MB, free: 5.316 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.3902, allocations: 5.365 MB / 345.2 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006407/0.3966, allocations: 63.75 kB / 345.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003977/0.4007, allocations: 0.9006 MB / 346.2 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00391/0.4047, allocations: 0.585 MB / 346.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002292/0.407, allocations: 0.6048 MB / 347.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005638/0.4126, allocations: 2.382 MB / 349.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002842/0.4155, allocations: 1.216 MB / 351 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001871/0.4174, allocations: 0.8599 MB / 351.9 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.4185, allocations: 0.9642 MB / 352.8 MB, free: 8.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003137/0.4188, allocations: 252 kB / 353.1 MB, free: 8.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005599/0.4194, allocations: 292 kB / 353.3 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003773/0.4198, allocations: 494.3 kB / 353.8 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001151/0.4209, allocations: 1.077 MB / 354.9 MB, free: 6.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003963/0.4249, allocations: 2.943 MB / 357.8 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-05/0.4249, allocations: 0 / 357.8 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.425, allocations: 0 / 357.8 MB, free: 3.238 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.891e-05/0.4251, allocations: 0 / 357.8 MB, free: 3.238 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.005197/0.4303, allocations: 2.25 MB / 360.1 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.102e-05/0.4303, allocations: 15.89 kB / 360.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007664/0.4311, allocations: 266.2 kB / 360.4 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.433, allocations: 1.127 MB / 361.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.4332, allocations: 127.7 kB / 361.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/0.4335, allocations: 172.3 kB / 361.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.4364, allocations: 1.597 MB / 363.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.691e-05/0.4364, allocations: 11.89 kB / 363.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.4366, allocations: 68 kB / 363.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.231e-05/0.4367, allocations: 44 kB / 363.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.439, allocations: 1.082 MB / 364.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009284/0.4483, allocations: 6.67 MB / 371.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.4502, allocations: 0.9321 MB / 372.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005705/0.4508, allocations: 302.4 kB / 372.5 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.349e-05/0.4508, allocations: 8.562 kB / 372.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.4509, allocations: 43.12 kB / 372.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.194e-06/0.4509, allocations: 0 / 372.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004329/0.4552, allocations: 2.03 MB / 374.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.37e-05/0.4553, allocations: 89.61 kB / 374.7 MB, free: 1.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.4575, allocations: 1.285 MB / 375.9 MB, free: 472 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.4575, allocations: 33.7 kB / 376 MB, free: 432 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007319/0.4583, allocations: 0.8966 MB / 376.9 MB, free: 15.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.4585, allocations: 244.6 kB / 377.1 MB, free: 15.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003039/0.4588, allocations: 194.7 kB / 377.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.459, allocations: 353.9 kB / 377.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006582/0.4597, allocations: 310 kB / 378 MB, free: 14.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008964/0.4606, allocations: 0.7041 MB / 378.7 MB, free: 13.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.4622, allocations: 1.047 MB / 379.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.4622, allocations: 8 kB / 379.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002147/0.4644, allocations: 1.157 MB / 380.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.4644, allocations: 12 kB / 380.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.4644, allocations: 15.94 kB / 380.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.4646, allocations: 44.8 kB / 380.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009105/0.4655, allocations: 263.6 kB / 381.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.4669, allocations: 1.398 MB / 382.6 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009378/0.4678, allocations: 59.88 kB / 382.7 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.929e-05/0.4679, allocations: 48 kB / 382.7 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001151/0.4691, allocations: 0.5299 MB / 383.2 MB, free: 8.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009667/0.4701, allocations: 0.6738 MB / 383.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00157/0.4716, allocations: 0.9854 MB / 384.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.578e-06/0.4717, allocations: 8 kB / 384.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.00203/0.4737, allocations: 1.083 MB / 386 MB, free: 5.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.4737, allocations: 12 kB / 386 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4738, allocations: 20.03 kB / 386 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/0.4739, allocations: 40.84 kB / 386 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008096/0.4747, allocations: 247.6 kB / 386.3 MB, free: 5.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.4759, allocations: 1.398 MB / 387.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008454/0.4768, allocations: 44.11 kB / 387.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.344e-05/0.4769, allocations: 52 kB / 387.8 MB, free: 3.516 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.0004053/0.4773, allocations: 255.8 kB / 388 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.4775, allocations: 138.2 kB / 388.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.4791, allocations: 0.6965 MB / 388.9 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.4791, allocations: 4 kB / 388.9 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.4791, allocations: 4 kB / 388.9 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.4792, allocations: 7.984 kB / 388.9 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003738/0.4829, allocations: 2.135 MB / 391 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.4829, allocations: 4 kB / 391 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005883/0.4835, allocations: 128.1 kB / 391.1 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001046/0.4836, allocations: 32.78 kB / 391.2 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.808e-05/0.4837, allocations: 16.05 kB / 391.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.4848, allocations: 1.378 MB / 392.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4848, allocations: 7.875 kB / 392.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.4869, allocations: 1.104 MB / 393.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005098/0.4874, allocations: 271.3 kB / 393.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.4875, allocations: 19.98 kB / 394 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/0.4881, allocations: 43.97 kB / 394 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.4882, allocations: 44.5 kB / 394.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.4883, allocations: 20 kB / 394.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001317/0.4897, allocations: 0.8541 MB / 394.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4897, allocations: 4 kB / 394.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001737/0.4914, allocations: 0.5038 MB / 395.4 MB, free: 11.54 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.0003776/0.4918, allocations: 127.1 kB / 395.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003014/0.4948, allocations: 1.471 MB / 397 MB, free: 9.918 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4948, allocations: 0.8125 kB / 397 MB, free: 9.918 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007255/0.4956, allocations: 421.8 kB / 397.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.4972, allocations: 352.8 kB / 397.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006024/0.5032, allocations: 2.85 MB / 400.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000993/0.5042, allocations: 1.237 MB / 401.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008929/0.5051, allocations: 174.5 kB / 402 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.5054, allocations: 95.42 kB / 402.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of SimCode: time 6.72e-07/0.5054, allocations: 0 / 402.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of Templates: time 0.03214/0.5376, allocations: 14.98 MB / 417.1 MB, free: 5.695 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)