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.001392/0.001392, allocations: 108 kB / 15.61 MB, free: 128 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.001456/0.001456, allocations: 198 kB / 16.53 MB, free: 6.668 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.684/1.684, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001278/0.001278, allocations: 55.91 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2495, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01811/0.2676, allocations: 14.56 MB / 339.9 MB, free: 5.301 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.2804, allocations: 5.365 MB / 345.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004205/0.2846, allocations: 63.75 kB / 345.3 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003555/0.2882, allocations: 0.9006 MB / 346.2 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003009/0.2913, allocations: 0.585 MB / 346.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.2928, allocations: 0.6086 MB / 347.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003534/0.2964, allocations: 2.382 MB / 349.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001754/0.2981, allocations: 1.212 MB / 351 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001325/0.2995, allocations: 0.856 MB / 351.8 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.3007, allocations: 0.9642 MB / 352.8 MB, free: 8.277 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003501/0.301, allocations: 256 kB / 353.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005762/0.3016, allocations: 303.9 kB / 353.4 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003909/0.302, allocations: 486.3 kB / 353.8 MB, free: 7.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001304/0.3033, allocations: 1.077 MB / 354.9 MB, free: 6.172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003416/0.3068, allocations: 2.943 MB / 357.9 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3068, allocations: 0 / 357.9 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3068, allocations: 3.984 kB / 357.9 MB, free: 3.215 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.69e-05/0.3069, allocations: 0 / 357.9 MB, free: 3.215 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.004349/0.3112, allocations: 2.243 MB / 360.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3113, allocations: 15.89 kB / 360.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007636/0.3121, allocations: 266.2 kB / 360.4 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.3139, allocations: 1.131 MB / 361.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.314, allocations: 123.7 kB / 361.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.3142, allocations: 172.3 kB / 361.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00278/0.317, allocations: 1.597 MB / 363.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.58e-05/0.3171, allocations: 7.906 kB / 363.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.3172, allocations: 67.94 kB / 363.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.936e-05/0.3173, allocations: 47.98 kB / 363.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002217/0.3195, allocations: 1.085 MB / 364.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.3295, allocations: 6.662 MB / 371.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.3314, allocations: 0.936 MB / 372.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005833/0.332, allocations: 306.3 kB / 372.5 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.3321, allocations: 8.562 kB / 372.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3321, allocations: 39.12 kB / 372.5 MB, free: 3.965 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.928e-06/0.3321, allocations: 4 kB / 372.5 MB, free: 3.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004821/0.337, allocations: 2.039 MB / 374.6 MB, free: 1.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.855e-05/0.3371, allocations: 85.61 kB / 374.7 MB, free: 1.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.3392, allocations: 1.277 MB / 375.9 MB, free: 460 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.179e-05/0.3393, allocations: 33.7 kB / 376 MB, free: 420 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007354/0.3401, allocations: 0.9 MB / 376.9 MB, free: 15.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.3403, allocations: 236.6 kB / 377.1 MB, free: 15.26 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003142/0.3406, allocations: 202.7 kB / 377.3 MB, free: 15.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.3408, allocations: 349.9 kB / 377.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006278/0.3414, allocations: 306 kB / 377.9 MB, free: 14.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008882/0.3423, allocations: 0.7157 MB / 378.7 MB, free: 13.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.3439, allocations: 1.047 MB / 379.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.3439, allocations: 4 kB / 379.7 MB, free: 12.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002252/0.3462, allocations: 1.161 MB / 380.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.3462, allocations: 12 kB / 380.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.3463, allocations: 15.94 kB / 380.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002021/0.3465, allocations: 44.78 kB / 380.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008755/0.3474, allocations: 264 kB / 381.2 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.3487, allocations: 1.39 MB / 382.6 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.3498, allocations: 59.88 kB / 382.7 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/0.3499, allocations: 51.98 kB / 382.7 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001143/0.351, allocations: 0.526 MB / 383.2 MB, free: 8.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008012/0.3518, allocations: 0.6698 MB / 383.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001318/0.3532, allocations: 0.9893 MB / 384.9 MB, free: 6.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.412e-06/0.3532, allocations: 4 kB / 384.9 MB, free: 6.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001884/0.3551, allocations: 1.091 MB / 386 MB, free: 5.441 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3551, allocations: 12.03 kB / 386 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.3552, allocations: 16 kB / 386 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001075/0.3553, allocations: 36.86 kB / 386 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007722/0.3561, allocations: 251.6 kB / 386.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.3571, allocations: 1.402 MB / 387.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008766/0.358, allocations: 48.14 kB / 387.7 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.749e-05/0.3581, allocations: 56 kB / 387.8 MB, free: 3.484 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.000291/0.3584, allocations: 252.5 kB / 388 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.3586, allocations: 138.2 kB / 388.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/0.36, allocations: 0.6965 MB / 388.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.3601, allocations: 4 kB / 388.9 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3601, allocations: 4 kB / 388.9 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3601, allocations: 3.984 kB / 388.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003501/0.3636, allocations: 2.135 MB / 391 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.3636, allocations: 4 kB / 391 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006183/0.3642, allocations: 132.1 kB / 391.2 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001248/0.3644, allocations: 24.84 kB / 391.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.3644, allocations: 12 kB / 391.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009983/0.3654, allocations: 1.39 MB / 392.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.3655, allocations: 3.938 kB / 392.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.3674, allocations: 1.108 MB / 393.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004799/0.3679, allocations: 275.3 kB / 394 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.3681, allocations: 16 kB / 394 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005887/0.3687, allocations: 43.95 kB / 394 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.14e-05/0.3688, allocations: 36.52 kB / 394.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.3688, allocations: 27.98 kB / 394.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001265/0.3701, allocations: 0.8541 MB / 394.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3701, allocations: 0 / 394.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001761/0.3719, allocations: 0.5038 MB / 395.4 MB, free: 11.52 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.0002608/0.3721, allocations: 123.1 kB / 395.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003045/0.3752, allocations: 1.479 MB / 397 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3752, allocations: 320 / 397 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007067/0.3759, allocations: 417.7 kB / 397.4 MB, free: 9.469 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.3775, allocations: 344.5 kB / 397.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005624/0.3831, allocations: 2.85 MB / 400.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008866/0.3841, allocations: 1.237 MB / 401.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008667/0.3849, allocations: 182.5 kB / 402 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002137/0.3852, allocations: 87.44 kB / 402.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3852, allocations: 0 / 402.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of Templates: time 0.03264/0.4178, allocations: 14.99 MB / 417.1 MB, free: 5.68 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)