Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001451/0.001451, allocations: 108 kB / 15.6 MB, free: 132 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.00148/0.00148, allocations: 197 kB / 16.54 MB, free: 6.672 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.905/1.905, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.001181/0.001181, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.37, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01115/0.3812, allocations: 8.147 MB / 333.5 MB, free: 11.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006582/0.3878, allocations: 2.742 MB / 336.2 MB, free: 8.977 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.3898, allocations: 27.94 kB / 336.2 MB, free: 8.949 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.3916, allocations: 0.5317 MB / 336.8 MB, free: 8.414 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001852/0.3935, allocations: 440.5 kB / 337.2 MB, free: 7.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009062/0.3944, allocations: 355.5 kB / 337.5 MB, free: 7.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001907/0.3963, allocations: 1.499 MB / 339 MB, free: 6.125 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008884/0.3972, allocations: 0.6127 MB / 339.7 MB, free: 5.492 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007116/0.3979, allocations: 0.5407 MB / 340.2 MB, free: 4.949 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000664/0.3986, allocations: 0.6143 MB / 340.8 MB, free: 4.332 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.3988, allocations: 140 kB / 340.9 MB, free: 4.195 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000376/0.3992, allocations: 176 kB / 341.1 MB, free: 4.023 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002501/0.3994, allocations: 282.9 kB / 341.4 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000619/0.4001, allocations: 0.6724 MB / 342.1 MB, free: 3.07 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001916/0.402, allocations: 1.69 MB / 343.8 MB, free: 1.375 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.402, allocations: 4 kB / 343.8 MB, free: 1.371 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.402, allocations: 4 kB / 343.8 MB, free: 1.367 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.696e-05/0.402, allocations: 0 / 343.8 MB, free: 1.367 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.002634/0.4047, allocations: 1.511 MB / 345.3 MB, free: 15.8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.4047, allocations: 8.031 kB / 345.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006814/0.4054, allocations: 187.2 kB / 345.5 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.4066, allocations: 0.7822 MB / 346.2 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-05/0.4067, allocations: 74.12 kB / 346.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.4068, allocations: 107.9 kB / 346.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.4084, allocations: 0.9458 MB / 347.4 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/0.4084, allocations: 7.906 kB / 347.4 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.171e-05/0.4085, allocations: 40 kB / 347.4 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/0.4086, allocations: 24 kB / 347.4 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.4097, allocations: 0.6441 MB / 348.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005402/0.4151, allocations: 4.119 MB / 352.2 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009687/0.4161, allocations: 423.9 kB / 352.6 MB, free: 8.137 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000284/0.4164, allocations: 169.4 kB / 352.8 MB, free: 7.969 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.4165, allocations: 11.73 kB / 352.8 MB, free: 7.957 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.4165, allocations: 30.56 kB / 352.8 MB, free: 7.918 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.314e-06/0.4165, allocations: 0 / 352.8 MB, free: 7.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002499/0.419, allocations: 1.321 MB / 354.1 MB, free: 6.523 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.4191, allocations: 110.8 kB / 354.3 MB, free: 6.391 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.4203, allocations: 0.9018 MB / 355.2 MB, free: 5.465 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.4203, allocations: 33.7 kB / 355.2 MB, free: 5.426 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000429/0.4208, allocations: 0.5876 MB / 355.8 MB, free: 4.828 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.4209, allocations: 150 kB / 355.9 MB, free: 4.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.4211, allocations: 142.4 kB / 356.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4212, allocations: 330 kB / 356.4 MB, free: 4.207 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.4216, allocations: 176.8 kB / 356.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005584/0.4222, allocations: 493.7 kB / 357 MB, free: 3.398 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009047/0.4231, allocations: 0.6792 MB / 357.7 MB, free: 2.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4231, allocations: 8 kB / 357.7 MB, free: 2.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001274/0.4244, allocations: 0.7466 MB / 358.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.4244, allocations: 12 kB / 358.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.4244, allocations: 8 kB / 358.5 MB, free: 1.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.4246, allocations: 40.78 kB / 358.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005652/0.4252, allocations: 172.1 kB / 358.7 MB, free: 1.578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.4263, allocations: 1.386 MB / 360.1 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/0.427, allocations: 43.83 kB / 360.1 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.427, allocations: 32.08 kB / 360.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006331/0.4277, allocations: 354.1 kB / 360.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004773/0.4282, allocations: 485.7 kB / 361 MB, free: 15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008127/0.429, allocations: 0.6637 MB / 361.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.779e-06/0.429, allocations: 7.938 kB / 361.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001131/0.4301, allocations: 0.716 MB / 362.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.4302, allocations: 12 kB / 362.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.4302, allocations: 8 kB / 362.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001049/0.4303, allocations: 32.84 kB / 362.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004983/0.4308, allocations: 171.8 kB / 362.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009858/0.4318, allocations: 1.39 MB / 364 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.4324, allocations: 39.89 kB / 364 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/0.4324, allocations: 36 kB / 364.1 MB, free: 11.64 MB / 302.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 (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.0002841/0.4327, allocations: 235.9 kB / 364.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.4329, allocations: 90.88 kB / 364.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008939/0.4338, allocations: 435.2 kB / 364.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.4338, allocations: 4 kB / 364.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.4338, allocations: 7.984 kB / 364.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.4338, allocations: 0 / 364.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.4359, allocations: 1.378 MB / 366.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.4359, allocations: 4 kB / 366.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003389/0.4363, allocations: 80.05 kB / 366.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.162e-05/0.4364, allocations: 28.84 kB / 366.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.4364, allocations: 12 kB / 366.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009328/0.4374, allocations: 1.367 MB / 367.7 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4374, allocations: 0 / 367.7 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.4384, allocations: 0.7212 MB / 368.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/0.4387, allocations: 207.9 kB / 368.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.898e-05/0.4388, allocations: 12 kB / 368.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003845/0.4392, allocations: 23.92 kB / 368.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.4393, allocations: 23.97 kB / 368.7 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.4393, allocations: 16 kB / 368.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008832/0.4402, allocations: 0.6095 MB / 369.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4402, allocations: 3.938 kB / 369.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001329/0.4416, allocations: 352 kB / 369.6 MB, free: 5.746 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 (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.0002857/0.4419, allocations: 123.2 kB / 369.7 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.4438, allocations: 0.9866 MB / 370.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/0.4438, allocations: 8 kB / 370.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004143/0.4442, allocations: 286.4 kB / 371 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.4456, allocations: 250.8 kB / 371.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.449, allocations: 1.832 MB / 373.1 MB, free: 2.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000931/0.45, allocations: 1.025 MB / 374.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006231/0.4506, allocations: 123.4 kB / 374.2 MB, free: 1.004 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.4508, allocations: 55.44 kB / 374.3 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4508, allocations: 0 / 374.3 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of Templates: time 0.02295/0.4737, allocations: 10.64 MB / 384.9 MB, free: 6.297 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)