Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001643/0.001643, allocations: 93.83 kB / 16.3 MB, free: 6.004 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.002204/0.002205, allocations: 184.9 kB / 17.2 MB, free: 5.91 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.981/1.981, allocations: 205.4 MB / 223.4 MB, free: 5.266 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.0005152/0.0005153, allocations: 12 kB / 280.1 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3722, allocations: 47.59 MB / 327.7 MB, free: 1.488 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009802/0.3821, allocations: 6.6 MB / 334.3 MB, free: 12.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007056/0.3892, allocations: 2.61 MB / 336.9 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002/0.3913, allocations: 28.34 kB / 336.9 MB, free: 10.25 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.3935, allocations: 441.8 kB / 337.4 MB, free: 9.812 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002671/0.3962, allocations: 462.6 kB / 337.8 MB, free: 9.359 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.3973, allocations: 255.6 kB / 338.1 MB, free: 9.109 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003643/0.401, allocations: 1.042 MB / 339.1 MB, free: 8.062 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000918/0.4019, allocations: 448.4 kB / 339.6 MB, free: 7.609 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008846/0.4028, allocations: 422.2 kB / 340 MB, free: 7.195 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006463/0.4035, allocations: 473.6 kB / 340.4 MB, free: 6.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.4036, allocations: 60 kB / 340.5 MB, free: 6.672 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003575/0.404, allocations: 99.91 kB / 340.6 MB, free: 6.574 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.4042, allocations: 187.1 kB / 340.8 MB, free: 6.391 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000312/0.4045, allocations: 253.1 kB / 341 MB, free: 6.137 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001478/0.406, allocations: 1.278 MB / 342.3 MB, free: 4.855 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.406, allocations: 0 / 342.3 MB, free: 4.855 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.406, allocations: 0 / 342.3 MB, free: 4.855 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.406, allocations: 4 kB / 342.3 MB, free: 4.852 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.002795/0.4088, allocations: 1.297 MB / 343.6 MB, free: 3.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.567e-05/0.4089, allocations: 15.97 kB / 343.6 MB, free: 3.484 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006392/0.4095, allocations: 170.3 kB / 343.8 MB, free: 3.316 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/0.4112, allocations: 0.7541 MB / 344.5 MB, free: 2.52 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.157e-05/0.4113, allocations: 74 kB / 344.6 MB, free: 2.449 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.4114, allocations: 103.9 kB / 344.7 MB, free: 2.348 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.4135, allocations: 0.9458 MB / 345.7 MB, free: 1.359 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/0.4136, allocations: 4 kB / 345.7 MB, free: 1.355 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.4137, allocations: 43.98 kB / 345.7 MB, free: 1.312 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.844e-05/0.4137, allocations: 24 kB / 345.7 MB, free: 1.289 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.4151, allocations: 0.6402 MB / 346.4 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006977/0.4221, allocations: 4.08 MB / 350.4 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.4234, allocations: 467.2 kB / 350.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.61e-05/0.4235, allocations: 4.625 kB / 350.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.148e-05/0.4236, allocations: 38.56 kB / 350.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 5.259e-06/0.4236, allocations: 0 / 350.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.003128/0.4267, allocations: 1.341 MB / 352.3 MB, free: 10.42 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.4268, allocations: 114.8 kB / 352.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.4282, allocations: 0.8393 MB / 353.2 MB, free: 9.418 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.657e-05/0.4283, allocations: 33.7 kB / 353.3 MB, free: 9.379 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005746/0.4288, allocations: 0.5953 MB / 353.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.429, allocations: 153.8 kB / 354 MB, free: 8.621 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.429, allocations: 16 kB / 354 MB, free: 8.605 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.4292, allocations: 333.9 kB / 354.4 MB, free: 8.273 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.4296, allocations: 173.9 kB / 354.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006781/0.4303, allocations: 485.7 kB / 355 MB, free: 7.484 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005247/0.4308, allocations: 251.7 kB / 355.2 MB, free: 7.238 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.4308, allocations: 0 / 355.2 MB, free: 7.238 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001595/0.4324, allocations: 0.751 MB / 356 MB, free: 6.477 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003034/0.4355, allocations: 4.089 MB / 360.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.4355, allocations: 15.94 kB / 360.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000286/0.4358, allocations: 36.84 kB / 360.1 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.4365, allocations: 175.7 kB / 360.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.4381, allocations: 1.296 MB / 361.6 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.4389, allocations: 39.89 kB / 361.6 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.814e-05/0.439, allocations: 36 kB / 361.7 MB, free: 340 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.439, allocations: 4 kB / 361.7 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00109/0.4401, allocations: 0.6173 MB / 362.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-05/0.4403, allocations: 12 kB / 362.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001138/0.4404, allocations: 37.59 kB / 362.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005355/0.4409, allocations: 167.7 kB / 362.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.442, allocations: 1.295 MB / 363.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006562/0.4427, allocations: 31.91 kB / 363.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.4427, allocations: 40 kB / 363.9 MB, free: 13.99 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 (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.0006699/0.4434, allocations: 344.7 kB / 364.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.4436, allocations: 94.86 kB / 364.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009237/0.4445, allocations: 435.4 kB / 364.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4445, allocations: 4 kB / 364.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4445, allocations: 0 / 364.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4445, allocations: 3.984 kB / 364.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/0.4471, allocations: 1.355 MB / 366.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.4471, allocations: 0 / 366.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003669/0.4475, allocations: 83.84 kB / 366.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.4476, allocations: 29.06 kB / 366.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.05e-05/0.4476, allocations: 15.94 kB / 366.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.4488, allocations: 1.276 MB / 367.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4488, allocations: 7.859 kB / 367.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.4502, allocations: 0.8122 MB / 368.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003775/0.4506, allocations: 192 kB / 368.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.284e-05/0.4507, allocations: 16 kB / 368.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.451, allocations: 27.92 kB / 368.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.327e-05/0.4511, allocations: 31.92 kB / 368.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.4512, allocations: 8 kB / 368.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009266/0.4521, allocations: 0.5626 MB / 369.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4521, allocations: 4 kB / 369.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001558/0.4537, allocations: 340 kB / 369.5 MB, free: 8.039 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.0003153/0.454, allocations: 131 kB / 369.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001966/0.456, allocations: 0.9785 MB / 370.6 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.456, allocations: 0 / 370.6 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004834/0.4565, allocations: 291.7 kB / 370.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.4579, allocations: 219.5 kB / 371.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004111/0.462, allocations: 2.225 MB / 373.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008035/0.4628, allocations: 1.048 MB / 374.4 MB, free: 3.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006566/0.4635, allocations: 127.2 kB / 374.5 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.4637, allocations: 55.44 kB / 374.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of SimCode: time 1.432e-06/0.4637, allocations: 3.938 kB / 374.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of Templates: time 0.02373/0.4874, allocations: 9.195 MB / 383.7 MB, free: 9.637 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) Environment - environmentSimulation: