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.001535/0.001535, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0018/0.0018, allocations: 195.7 kB / 16.26 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.002/2.002, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.001807/0.001807, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4654/0.4672, allocations: 46.63 MB / 324.9 MB, free: 1.883 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01377/0.4811, allocations: 8.1 MB / 333 MB, free: 11.49 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009171/0.4904, allocations: 2.709 MB / 335.7 MB, free: 9.242 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003343/0.4939, allocations: 30.66 kB / 335.7 MB, free: 9.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002858/0.4968, allocations: 481.3 kB / 336.2 MB, free: 8.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003122/0.5, allocations: 381.3 kB / 336.5 MB, free: 8.375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.5011, allocations: 319.7 kB / 336.9 MB, free: 8.062 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003161/0.5043, allocations: 1.499 MB / 338.3 MB, free: 6.555 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.5055, allocations: 0.5971 MB / 338.9 MB, free: 5.938 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.5069, allocations: 0.5601 MB / 339.5 MB, free: 5.375 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000919/0.5078, allocations: 0.6026 MB / 340.1 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002251/0.5081, allocations: 144 kB / 340.2 MB, free: 4.629 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005227/0.5086, allocations: 180 kB / 340.4 MB, free: 4.453 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.5089, allocations: 290.8 kB / 340.7 MB, free: 4.168 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000884/0.5098, allocations: 0.6647 MB / 341.4 MB, free: 3.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002684/0.5125, allocations: 1.686 MB / 343.1 MB, free: 1.809 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.519e-05/0.5125, allocations: 4 kB / 343.1 MB, free: 1.805 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.439e-06/0.5126, allocations: 0 / 343.1 MB, free: 1.805 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.953e-05/0.5126, allocations: 0 / 343.1 MB, free: 1.805 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.003548/0.5162, allocations: 1.515 MB / 344.6 MB, free: 240 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.001e-05/0.5163, allocations: 12.02 kB / 344.6 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007702/0.517, allocations: 183.2 kB / 344.8 MB, free: 44 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.5187, allocations: 0.7822 MB / 345.6 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.5188, allocations: 78.12 kB / 345.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.519, allocations: 103.9 kB / 345.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.521, allocations: 0.9536 MB / 346.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.045e-05/0.5211, allocations: 7.906 kB / 346.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.5212, allocations: 40 kB / 346.7 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.033e-05/0.5212, allocations: 24 kB / 346.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.5225, allocations: 0.6363 MB / 347.4 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006643/0.5291, allocations: 4.123 MB / 351.5 MB, free: 8.988 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.5303, allocations: 431.8 kB / 351.9 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/0.5306, allocations: 161.4 kB / 352.1 MB, free: 8.398 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.5307, allocations: 11.69 kB / 352.1 MB, free: 8.387 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.5307, allocations: 38.56 kB / 352.1 MB, free: 8.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 4.499e-06/0.5308, allocations: 0 / 352.1 MB, free: 8.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.003053/0.5338, allocations: 1.318 MB / 353.5 MB, free: 6.949 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.5339, allocations: 106.8 kB / 353.6 MB, free: 6.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.5354, allocations: 0.9017 MB / 354.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/0.5355, allocations: 37.7 kB / 354.5 MB, free: 5.852 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006305/0.5361, allocations: 0.5914 MB / 355.1 MB, free: 5.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.5363, allocations: 146 kB / 355.2 MB, free: 5.105 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/0.5366, allocations: 138.4 kB / 355.4 MB, free: 4.965 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002198/0.5368, allocations: 333.9 kB / 355.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.5372, allocations: 176.8 kB / 355.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007051/0.5379, allocations: 493.7 kB / 356.4 MB, free: 3.828 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.539, allocations: 0.6792 MB / 357 MB, free: 3.004 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.539, allocations: 4 kB / 357 MB, free: 3 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001393/0.5404, allocations: 0.747 MB / 357.8 MB, free: 2.242 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.5404, allocations: 16 kB / 357.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.5405, allocations: 8 kB / 357.8 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002603/0.5407, allocations: 36.84 kB / 357.8 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006054/0.5413, allocations: 167.7 kB / 358 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.5428, allocations: 1.394 MB / 359.4 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006712/0.5435, allocations: 47.98 kB / 359.4 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.5435, allocations: 35.98 kB / 359.5 MB, free: 412 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006912/0.5442, allocations: 354.1 kB / 359.8 MB, free: 52 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005368/0.5448, allocations: 481.6 kB / 360.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008502/0.5456, allocations: 0.6635 MB / 361 MB, free: 14.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.432e-06/0.5456, allocations: 4 kB / 361 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001212/0.5469, allocations: 0.7155 MB / 361.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.5469, allocations: 12.88 kB / 361.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.5469, allocations: 8 kB / 361.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001225/0.547, allocations: 40.84 kB / 361.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005319/0.5476, allocations: 167.7 kB / 361.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.5491, allocations: 1.378 MB / 363.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007396/0.5499, allocations: 39.89 kB / 363.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-05/0.55, allocations: 36 kB / 363.4 MB, free: 12.08 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.0003693/0.5504, allocations: 244 kB / 363.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.5506, allocations: 94.81 kB / 363.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.5516, allocations: 431.2 kB / 364.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.5516, allocations: 4 kB / 364.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5516, allocations: 0 / 364.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.5517, allocations: 7.984 kB / 364.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002937/0.5546, allocations: 1.386 MB / 365.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.5546, allocations: 4 kB / 365.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003619/0.555, allocations: 75.89 kB / 365.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001042/0.5551, allocations: 20.86 kB / 365.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/0.5552, allocations: 11.98 kB / 365.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.5564, allocations: 1.375 MB / 367 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.5564, allocations: 3.938 kB / 367 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.5577, allocations: 0.7133 MB / 367.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004679/0.5581, allocations: 207.9 kB / 367.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/0.5583, allocations: 12 kB / 367.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004925/0.5588, allocations: 31.91 kB / 368 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.559, allocations: 23.97 kB / 368 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/0.559, allocations: 16 kB / 368 MB, free: 7.137 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001147/0.5602, allocations: 0.6055 MB / 368.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5602, allocations: 0 / 368.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001744/0.5619, allocations: 348 kB / 368.9 MB, free: 6.18 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.0004487/0.5624, allocations: 123.2 kB / 369.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.5649, allocations: 0.9837 MB / 370 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/0.565, allocations: 5.938 kB / 370 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.5655, allocations: 290.7 kB / 370.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.5671, allocations: 242.4 kB / 370.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004617/0.5717, allocations: 2.261 MB / 372.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009392/0.5726, allocations: 1.025 MB / 373.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007332/0.5734, allocations: 127.4 kB / 374 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.5736, allocations: 63.44 kB / 374 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of SimCode: time 1.804e-06/0.5736, allocations: 0 / 374 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of Templates: time 0.03105/0.6047, allocations: 10.57 MB / 384.6 MB, free: 6.359 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)