Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008979/0.0008979, allocations: 86.72 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.001372/0.001372, 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.85/1.85, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004921/0.0004924, allocations: 14.81 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3199, allocations: 47.58 MB / 326.5 MB, free: 1.602 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01068/0.3306, allocations: 7.155 MB / 333.6 MB, free: 11.99 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00829/0.339, allocations: 2.577 MB / 336.2 MB, free: 9.855 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002508/0.3416, allocations: 28.31 kB / 336.2 MB, free: 9.848 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002134/0.3438, allocations: 449.4 kB / 336.7 MB, free: 9.406 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002651/0.3464, allocations: 353.3 kB / 337 MB, free: 9.059 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001393/0.3479, allocations: 239.7 kB / 337.3 MB, free: 8.824 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003573/0.3514, allocations: 1.351 MB / 338.6 MB, free: 7.465 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009462/0.3524, allocations: 436.4 kB / 339 MB, free: 7.023 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.3535, allocations: 445.9 kB / 339.5 MB, free: 6.586 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006582/0.3542, allocations: 0.4936 MB / 340 MB, free: 6.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.3543, allocations: 64 kB / 340 MB, free: 6.027 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003614/0.3547, allocations: 103.9 kB / 340.1 MB, free: 5.926 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.3549, allocations: 191 kB / 340.3 MB, free: 5.738 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004251/0.3553, allocations: 257.1 kB / 340.6 MB, free: 5.48 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001623/0.357, allocations: 1.324 MB / 341.9 MB, free: 4.152 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.357, allocations: 0 / 341.9 MB, free: 4.152 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.357, allocations: 0 / 341.9 MB, free: 4.152 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.357, allocations: 0 / 341.9 MB, free: 4.152 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002886/0.3599, allocations: 1.32 MB / 343.2 MB, free: 2.777 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.923e-05/0.36, allocations: 8.031 kB / 343.2 MB, free: 2.77 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007252/0.3607, allocations: 194.2 kB / 343.4 MB, free: 2.578 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001366/0.3621, allocations: 0.7542 MB / 344.2 MB, free: 1.781 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.345e-05/0.3622, allocations: 74 kB / 344.2 MB, free: 1.711 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.3624, allocations: 96 kB / 344.3 MB, free: 1.617 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.3642, allocations: 0.9536 MB / 345.3 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.861e-05/0.3643, allocations: 15.84 kB / 345.3 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.3643, allocations: 36 kB / 345.3 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.3644, allocations: 24 kB / 345.4 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.3658, allocations: 0.6402 MB / 346 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006917/0.3727, allocations: 4.131 MB / 350.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.3739, allocations: 463.2 kB / 350.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.3743, allocations: 169.4 kB / 350.7 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.3743, allocations: 7.75 kB / 350.8 MB, free: 10.92 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.3744, allocations: 42.56 kB / 350.8 MB, free: 10.87 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 4.679e-06/0.3744, allocations: 0 / 350.8 MB, free: 10.87 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002929/0.3773, allocations: 1.361 MB / 352.2 MB, free: 9.434 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.3774, allocations: 106.8 kB / 352.3 MB, free: 9.305 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.379, allocations: 0.8862 MB / 353.1 MB, free: 8.395 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.379, allocations: 33.7 kB / 353.2 MB, free: 8.355 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000521/0.3796, allocations: 0.5954 MB / 353.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.3797, allocations: 149.8 kB / 353.9 MB, free: 7.602 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/0.3798, allocations: 15.94 kB / 353.9 MB, free: 7.586 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002153/0.38, allocations: 337.9 kB / 354.3 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.3803, allocations: 169.9 kB / 354.4 MB, free: 7.086 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008512/0.3812, allocations: 0.4899 MB / 354.9 MB, free: 6.449 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.3817, allocations: 243.7 kB / 355.2 MB, free: 6.211 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.3817, allocations: 4 kB / 355.2 MB, free: 6.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001435/0.3832, allocations: 0.7546 MB / 355.9 MB, free: 5.441 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003259/0.3835, allocations: 392.9 kB / 356.3 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.3835, allocations: 12 kB / 356.3 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002174/0.3838, allocations: 36.84 kB / 356.4 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006493/0.3844, allocations: 171.7 kB / 356.5 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.3861, allocations: 1.288 MB / 357.8 MB, free: 3.266 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007819/0.3869, allocations: 47.89 kB / 357.9 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.313e-05/0.387, allocations: 39.98 kB / 357.9 MB, free: 3.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.387, allocations: 7.953 kB / 357.9 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001198/0.3882, allocations: 0.6093 MB / 358.5 MB, free: 2.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.3882, allocations: 12.84 kB / 358.5 MB, free: 2.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/0.3884, allocations: 44.78 kB / 358.6 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.3889, allocations: 163.7 kB / 358.7 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.3903, allocations: 1.288 MB / 360 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006488/0.391, allocations: 35.91 kB / 360 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.3911, allocations: 36 kB / 360.1 MB, free: 0.8516 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0008301/0.3919, allocations: 332.8 kB / 360.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001718/0.3921, allocations: 94.86 kB / 360.5 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.3931, allocations: 443.3 kB / 360.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.3931, allocations: 4 kB / 360.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3931, allocations: 0 / 360.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3932, allocations: 11.98 kB / 361 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.3956, allocations: 1.39 MB / 362.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.3956, allocations: 7.953 kB / 362.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.3959, allocations: 80.11 kB / 362.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.94e-05/0.3961, allocations: 24.86 kB / 362.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.3961, allocations: 8 kB / 362.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/0.3972, allocations: 1.28 MB / 363.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.3972, allocations: 0 / 363.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.3985, allocations: 0.7253 MB / 364.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004455/0.399, allocations: 215.8 kB / 364.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001751/0.3992, allocations: 8 kB / 364.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004483/0.3996, allocations: 23.98 kB / 364.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3998, allocations: 35.89 kB / 364.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.3998, allocations: 16 kB / 364.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001137/0.401, allocations: 0.6016 MB / 365.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.401, allocations: 0 / 365.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001528/0.4025, allocations: 352 kB / 365.7 MB, free: 10.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.0002712/0.4028, allocations: 127.1 kB / 365.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00208/0.4049, allocations: 0.9792 MB / 366.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4049, allocations: 0 / 366.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004965/0.4054, allocations: 291.1 kB / 367.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.4068, allocations: 227.5 kB / 367.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/0.4113, allocations: 2.232 MB / 369.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.4123, allocations: 1.025 MB / 370.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000832/0.4132, allocations: 127.3 kB / 370.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.4134, allocations: 59.44 kB / 370.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of SimCode: time 2.104e-06/0.4134, allocations: 0 / 370.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of Templates: time 0.02387/0.4373, allocations: 9.773 MB / 380.5 MB, free: 11.96 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)