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.001273/0.001273, allocations: 87.11 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.001385/0.001385, 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.935/1.935, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0005527/0.0005528, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3526, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01009/0.3627, allocations: 7.154 MB / 333.6 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00651/0.3693, allocations: 2.569 MB / 336.2 MB, free: 9.652 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.3704, allocations: 30.75 kB / 336.2 MB, free: 9.645 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.372, allocations: 448.2 kB / 336.7 MB, free: 9.273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001293/0.3734, allocations: 361.3 kB / 337 MB, free: 8.918 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007918/0.3742, allocations: 235.7 kB / 337.3 MB, free: 8.688 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001679/0.3758, allocations: 1.347 MB / 338.6 MB, free: 7.332 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008978/0.3767, allocations: 440.4 kB / 339 MB, free: 6.887 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008274/0.3776, allocations: 445.9 kB / 339.5 MB, free: 6.449 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000689/0.3783, allocations: 0.4936 MB / 340 MB, free: 5.953 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.3784, allocations: 63.94 kB / 340 MB, free: 5.891 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003567/0.3788, allocations: 95.98 kB / 340.1 MB, free: 5.797 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002087/0.379, allocations: 199 kB / 340.3 MB, free: 5.602 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.3793, allocations: 253.1 kB / 340.6 MB, free: 5.348 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.3807, allocations: 1.324 MB / 341.9 MB, free: 4.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.3807, allocations: 0 / 341.9 MB, free: 4.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3807, allocations: 0 / 341.9 MB, free: 4.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.3807, allocations: 0 / 341.9 MB, free: 4.02 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.002296/0.383, allocations: 1.316 MB / 343.2 MB, free: 2.648 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.3831, allocations: 12.03 kB / 343.2 MB, free: 2.637 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006225/0.3837, allocations: 194.2 kB / 343.4 MB, free: 2.445 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.385, allocations: 0.7542 MB / 344.2 MB, free: 1.648 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.505e-05/0.3851, allocations: 74 kB / 344.2 MB, free: 1.578 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.3852, allocations: 103.9 kB / 344.3 MB, free: 1.477 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.3868, allocations: 0.9458 MB / 345.3 MB, free: 500 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/0.3869, allocations: 15.83 kB / 345.3 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.491e-05/0.387, allocations: 44 kB / 345.3 MB, free: 440 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/0.387, allocations: 24 kB / 345.4 MB, free: 416 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3882, allocations: 0.6441 MB / 346 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.3936, allocations: 4.127 MB / 350.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000979/0.3946, allocations: 455.2 kB / 350.6 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/0.3949, allocations: 169.4 kB / 350.7 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.3949, allocations: 11.75 kB / 350.8 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.3949, allocations: 34.56 kB / 350.8 MB, free: 10.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.803e-06/0.3949, allocations: 0 / 350.8 MB, free: 10.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002488/0.3974, allocations: 1.357 MB / 352.2 MB, free: 9.309 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.3975, allocations: 106.8 kB / 352.3 MB, free: 9.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.3987, allocations: 0.8901 MB / 353.1 MB, free: 8.266 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.3988, allocations: 33.7 kB / 353.2 MB, free: 8.227 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/0.3992, allocations: 0.5953 MB / 353.8 MB, free: 7.621 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.3994, allocations: 153.8 kB / 353.9 MB, free: 7.469 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-05/0.3994, allocations: 16 kB / 353.9 MB, free: 7.453 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3996, allocations: 338 kB / 354.3 MB, free: 7.117 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/0.3999, allocations: 165.9 kB / 354.4 MB, free: 6.957 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/0.4005, allocations: 493.7 kB / 354.9 MB, free: 6.328 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.401, allocations: 251.6 kB / 355.2 MB, free: 6.082 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.401, allocations: 4 kB / 355.2 MB, free: 6.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001203/0.4022, allocations: 0.7546 MB / 355.9 MB, free: 5.312 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002877/0.4025, allocations: 400.8 kB / 356.3 MB, free: 4.773 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.306e-05/0.4025, allocations: 8 kB / 356.3 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001632/0.4027, allocations: 28.86 kB / 356.3 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005416/0.4033, allocations: 183.7 kB / 356.5 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.4043, allocations: 1.288 MB / 357.8 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005181/0.4049, allocations: 43.89 kB / 357.9 MB, free: 3.086 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.77e-05/0.4049, allocations: 32 kB / 357.9 MB, free: 3.055 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.4049, allocations: 7.953 kB / 357.9 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009785/0.4059, allocations: 0.6179 MB / 358.5 MB, free: 2.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.4059, allocations: 8 kB / 358.5 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.932e-05/0.406, allocations: 40.94 kB / 358.6 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.4065, allocations: 171.7 kB / 358.7 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009571/0.4075, allocations: 1.284 MB / 360 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004482/0.408, allocations: 35.89 kB / 360 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.408, allocations: 36 kB / 360.1 MB, free: 0.7227 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.0005364/0.4086, allocations: 340.9 kB / 360.4 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.4087, allocations: 94.97 kB / 360.5 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009163/0.4096, allocations: 447.1 kB / 360.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.4097, allocations: 4 kB / 360.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.4097, allocations: 4 kB / 361 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4097, allocations: 0 / 361 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.4119, allocations: 1.39 MB / 362.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.4119, allocations: 3.953 kB / 362.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003458/0.4123, allocations: 88.06 kB / 362.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.27e-05/0.4124, allocations: 24.84 kB / 362.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.4124, allocations: 8 kB / 362.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009336/0.4134, allocations: 1.276 MB / 363.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4134, allocations: 0 / 363.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.4145, allocations: 0.7331 MB / 364.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.4148, allocations: 204 kB / 364.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.4149, allocations: 12 kB / 364.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003688/0.4153, allocations: 23.98 kB / 364.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.4154, allocations: 27.97 kB / 364.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.4154, allocations: 19.92 kB / 364.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009383/0.4163, allocations: 0.6054 MB / 365.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4163, allocations: 0 / 365.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001244/0.4176, allocations: 352 kB / 365.7 MB, free: 10.79 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.0002398/0.4178, allocations: 123.2 kB / 365.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.4196, allocations: 0.9792 MB / 366.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4196, allocations: 0 / 366.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004321/0.42, allocations: 295.2 kB / 367.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.4212, allocations: 223.5 kB / 367.3 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.425, allocations: 2.228 MB / 369.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007894/0.4258, allocations: 1.028 MB / 370.6 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006169/0.4265, allocations: 127.4 kB / 370.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.4266, allocations: 59.44 kB / 370.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4266, allocations: 0 / 370.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of Templates: time 0.02317/0.4498, allocations: 9.769 MB / 380.5 MB, free: 11.83 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)