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.0008818/0.0008818, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001005/0.001005, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.917/1.917, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004846/0.0004848, allocations: 15.98 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3543, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01585/0.3703, allocations: 12.81 MB / 339.3 MB, free: 6.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.3826, allocations: 5.017 MB / 344.3 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004421/0.3871, allocations: 63.75 kB / 344.4 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00335/0.3904, allocations: 0.7496 MB / 345.1 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003498/0.394, allocations: 472.4 kB / 345.6 MB, free: 360 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002227/0.3962, allocations: 371.5 kB / 345.9 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004427/0.4007, allocations: 2.124 MB / 348.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002517/0.4032, allocations: 0.829 MB / 348.9 MB, free: 13 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001531/0.4048, allocations: 0.6414 MB / 349.5 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001867/0.4067, allocations: 0.7422 MB / 350.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000683/0.4074, allocations: 96 kB / 350.4 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.4084, allocations: 140 kB / 350.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006533/0.4091, allocations: 306.5 kB / 350.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.4102, allocations: 388.7 kB / 351.2 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003217/0.4134, allocations: 2.353 MB / 353.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.4134, allocations: 0 / 353.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4135, allocations: 0 / 353.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002147/0.4137, allocations: 0 / 353.5 MB, free: 8.328 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.005042/0.4187, allocations: 1.958 MB / 355.5 MB, free: 6.312 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.4188, allocations: 8.031 kB / 355.5 MB, free: 6.305 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008865/0.4197, allocations: 273.3 kB / 355.8 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.4217, allocations: 1.088 MB / 356.9 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.787e-05/0.4218, allocations: 127.3 kB / 357 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002271/0.422, allocations: 175.9 kB / 357.2 MB, free: 4.594 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00303/0.425, allocations: 1.598 MB / 358.8 MB, free: 2.934 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.4251, allocations: 4 kB / 358.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.4252, allocations: 71.94 kB / 358.8 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-05/0.4253, allocations: 40 kB / 358.9 MB, free: 2.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.4276, allocations: 1.105 MB / 360 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009367/0.437, allocations: 6.717 MB / 366.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.4387, allocations: 0.9911 MB / 367.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005522/0.4393, allocations: 334.3 kB / 368 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.661e-05/0.4393, allocations: 4.562 kB / 368 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.4394, allocations: 43.12 kB / 368.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.615e-06/0.4394, allocations: 0 / 368.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004029/0.4434, allocations: 2.14 MB / 370.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.4435, allocations: 85.66 kB / 370.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.4453, allocations: 1.262 MB / 371.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.4453, allocations: 41.7 kB / 371.6 MB, free: 5.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006449/0.446, allocations: 0.8959 MB / 372.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.4462, allocations: 248.4 kB / 372.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/0.4462, allocations: 20 kB / 372.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4464, allocations: 349.9 kB / 373.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005985/0.447, allocations: 310.5 kB / 373.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008693/0.4479, allocations: 0.7197 MB / 374.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007445/0.4486, allocations: 419 kB / 374.5 MB, free: 2.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.4486, allocations: 4 kB / 374.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001976/0.4506, allocations: 1.188 MB / 375.7 MB, free: 1.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003515/0.451, allocations: 0.4964 MB / 376.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.451, allocations: 12 kB / 376.2 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/0.4512, allocations: 40.86 kB / 376.3 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008345/0.452, allocations: 271.5 kB / 376.5 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.453, allocations: 1.296 MB / 377.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008327/0.4539, allocations: 72.03 kB / 377.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.05e-05/0.454, allocations: 52 kB / 377.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.214e-06/0.454, allocations: 4 kB / 377.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/0.4556, allocations: 0.9538 MB / 378.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4556, allocations: 15.95 kB / 378.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001215/0.4557, allocations: 36.86 kB / 378.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007575/0.4565, allocations: 263.6 kB / 379.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009122/0.4574, allocations: 1.295 MB / 380.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006576/0.4581, allocations: 51.98 kB / 380.6 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.28e-05/0.4582, allocations: 52.16 kB / 380.6 MB, free: 11.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000827/0.459, allocations: 432.7 kB / 381 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.4592, allocations: 138.3 kB / 381.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.4607, allocations: 0.7316 MB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.4607, allocations: 8 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4607, allocations: 0 / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.4607, allocations: 3.984 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004277/0.465, allocations: 2.194 MB / 384.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.465, allocations: 0 / 384.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006013/0.4656, allocations: 139.8 kB / 384.2 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/0.4658, allocations: 24.97 kB / 384.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/0.4659, allocations: 20 kB / 384.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009784/0.4668, allocations: 1.28 MB / 385.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.4669, allocations: 7.984 kB / 385.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.469, allocations: 1.167 MB / 386.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005168/0.4696, allocations: 271.3 kB / 387 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002226/0.4698, allocations: 16 kB / 387 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.4704, allocations: 59.95 kB / 387.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.4706, allocations: 52.39 kB / 387.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.277e-05/0.4706, allocations: 20 kB / 387.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001447/0.4721, allocations: 0.8423 MB / 388 MB, free: 4.207 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4721, allocations: 0 / 388 MB, free: 4.207 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001935/0.474, allocations: 0.5 MB / 388.5 MB, free: 3.707 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002947/0.4743, allocations: 131.2 kB / 388.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003128/0.4775, allocations: 1.476 MB / 390.1 MB, free: 2.074 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.4775, allocations: 4 kB / 390.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007437/0.4782, allocations: 434.1 kB / 390.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001661/0.4799, allocations: 309.2 kB / 390.8 MB, free: 1.332 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006053/0.486, allocations: 3.486 MB / 394.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.4872, allocations: 1.233 MB / 395.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009028/0.4881, allocations: 186.5 kB / 395.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.4884, allocations: 83.44 kB / 395.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4884, allocations: 0 / 395.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Templates: time 0.02941/0.5178, allocations: 13.72 MB / 409.5 MB, free: 14.52 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)