Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, 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.002397/0.002398, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.084/2.084, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.001307/0.001307, allocations: 51.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5429/0.5443, allocations: 46.63 MB / 324.9 MB, free: 1.898 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01968/0.564, allocations: 7.075 MB / 331.9 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.5743, allocations: 2.352 MB / 334.3 MB, free: 10.36 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003348/0.5777, allocations: 19.59 kB / 334.3 MB, free: 10.36 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004509/0.5824, allocations: 455.2 kB / 334.7 MB, free: 10.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004519/0.587, allocations: 327.1 kB / 335.1 MB, free: 9.766 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.5881, allocations: 174.1 kB / 335.2 MB, free: 9.613 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002914/0.5911, allocations: 1.196 MB / 336.4 MB, free: 8.484 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.5924, allocations: 0.5037 MB / 336.9 MB, free: 7.957 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0015/0.5939, allocations: 466.1 kB / 337.4 MB, free: 7.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0015/0.5955, allocations: 0.4939 MB / 337.9 MB, free: 7.004 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006427/0.5961, allocations: 112 kB / 338 MB, free: 6.895 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.5972, allocations: 155.9 kB / 338.1 MB, free: 6.742 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004599/0.5977, allocations: 227.2 kB / 338.4 MB, free: 6.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001391/0.5991, allocations: 0.5404 MB / 338.9 MB, free: 5.977 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002929/0.6021, allocations: 1.413 MB / 340.3 MB, free: 4.559 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.6021, allocations: 0 / 340.3 MB, free: 4.559 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.6021, allocations: 4 kB / 340.3 MB, free: 4.555 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.651e-05/0.6022, allocations: 0 / 340.3 MB, free: 4.555 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.003721/0.6059, allocations: 1.25 MB / 341.6 MB, free: 3.25 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/0.606, allocations: 12.03 kB / 341.6 MB, free: 3.238 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006184/0.6066, allocations: 147.7 kB / 341.7 MB, free: 3.094 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.6078, allocations: 0.6337 MB / 342.4 MB, free: 2.422 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.6079, allocations: 66.38 kB / 342.4 MB, free: 2.355 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.6081, allocations: 80.36 kB / 342.5 MB, free: 2.277 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.6095, allocations: 0.7793 MB / 343.3 MB, free: 1.469 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.894e-05/0.6096, allocations: 11.89 kB / 343.3 MB, free: 1.457 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/0.6096, allocations: 32 kB / 343.3 MB, free: 1.426 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.6097, allocations: 16 kB / 343.3 MB, free: 1.41 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009971/0.6107, allocations: 0.5192 MB / 343.9 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0049/0.6156, allocations: 3.391 MB / 347.3 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005145/0.6161, allocations: 234.5 kB / 347.5 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.6164, allocations: 112.8 kB / 347.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.425e-05/0.6165, allocations: 7.984 kB / 347.6 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.6165, allocations: 38.55 kB / 347.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.164e-06/0.6165, allocations: 0 / 347.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.002232/0.6187, allocations: 1.047 MB / 348.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.6188, allocations: 89.09 kB / 348.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.6199, allocations: 0.7348 MB / 349.5 MB, free: 10.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.62, allocations: 37.64 kB / 349.5 MB, free: 10.87 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003967/0.6204, allocations: 0.4904 MB / 350 MB, free: 10.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.927e-05/0.6205, allocations: 98.56 kB / 350.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.6207, allocations: 114.2 kB / 350.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002204/0.6209, allocations: 378.8 kB / 350.6 MB, free: 9.777 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.6212, allocations: 129.2 kB / 350.7 MB, free: 9.652 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005497/0.6217, allocations: 414.2 kB / 351.1 MB, free: 9.109 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008751/0.6226, allocations: 0.5753 MB / 351.7 MB, free: 8.398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.6226, allocations: 4 kB / 351.7 MB, free: 8.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001155/0.6238, allocations: 0.6151 MB / 352.3 MB, free: 7.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.6238, allocations: 8 kB / 352.3 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.6239, allocations: 12 kB / 352.4 MB, free: 7.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001801/0.624, allocations: 32.8 kB / 352.4 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.6245, allocations: 143.7 kB / 352.5 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.6261, allocations: 1.394 MB / 353.9 MB, free: 6.043 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.6267, allocations: 27.98 kB / 354 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.6268, allocations: 32 kB / 354 MB, free: 5.984 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0005413/0.6273, allocations: 233.6 kB / 354.2 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.6275, allocations: 75.05 kB / 354.3 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007208/0.6282, allocations: 325.4 kB / 354.6 MB, free: 5.34 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.6282, allocations: 4 kB / 354.6 MB, free: 5.336 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.6283, allocations: 0 / 354.6 MB, free: 5.336 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.6283, allocations: 3.984 kB / 354.6 MB, free: 5.332 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.6303, allocations: 1.094 MB / 355.7 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.6303, allocations: 4 kB / 355.7 MB, free: 4.152 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.6306, allocations: 60.12 kB / 355.8 MB, free: 4.094 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001125/0.6308, allocations: 24.84 kB / 355.8 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.6308, allocations: 8 kB / 355.8 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.6321, allocations: 1.378 MB / 357.2 MB, free: 2.539 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6321, allocations: 0 / 357.2 MB, free: 2.539 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.6331, allocations: 0.5559 MB / 357.7 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.6333, allocations: 172.3 kB / 357.9 MB, free: 1.754 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.871e-05/0.6334, allocations: 11.98 kB / 357.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000327/0.6338, allocations: 15.98 kB / 357.9 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-05/0.6339, allocations: 31.84 kB / 358 MB, free: 1.695 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.6339, allocations: 16 kB / 358 MB, free: 1.68 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0007204/0.6346, allocations: 0.5029 MB / 358.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6346, allocations: 0 / 358.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007905/0.6354, allocations: 156 kB / 358.6 MB, free: 1.031 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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.0002501/0.6357, allocations: 119.1 kB / 358.7 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009975/0.6367, allocations: 473 kB / 359.2 MB, free: 444 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.6367, allocations: 4 kB / 359.2 MB, free: 440 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.6371, allocations: 238.5 kB / 359.4 MB, free: 188 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.6384, allocations: 183.8 kB / 359.6 MB, free: 4 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.6416, allocations: 1.765 MB / 361.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006583/0.6423, allocations: 0.9449 MB / 362.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004024/0.6427, allocations: 86.02 kB / 362.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.997e-05/0.6428, allocations: 47.44 kB / 362.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of SimCode: time 1.462e-06/0.6428, allocations: 0 / 362.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Templates: time 0.02066/0.6635, allocations: 8.04 MB / 370.5 MB, free: 5.039 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)