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.001627/0.001627, allocations: 108.6 kB / 15.73 MB, free: 76 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.001482/0.001482, allocations: 188.2 kB / 16.66 MB, free: 6.59 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.89/1.89, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.001651/0.001651, allocations: 53.61 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1512, allocations: 46.62 MB / 373.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009472/0.1607, allocations: 7.086 MB / 380.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005574/0.1663, allocations: 2.38 MB / 382.6 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.1674, allocations: 19.94 kB / 382.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001589/0.169, allocations: 0.5204 MB / 383.2 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.1702, allocations: 409 kB / 383.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.1706, allocations: 211.7 kB / 383.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.1719, allocations: 1.206 MB / 385 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007262/0.1726, allocations: 0.5076 MB / 385.5 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005613/0.1732, allocations: 470.1 kB / 385.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005371/0.1737, allocations: 497.8 kB / 386.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.1739, allocations: 116 kB / 386.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002895/0.1742, allocations: 144 kB / 386.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.1744, allocations: 235.1 kB / 386.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004989/0.1749, allocations: 0.5444 MB / 387.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.1765, allocations: 1.44 MB / 388.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.1765, allocations: 4 kB / 388.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1765, allocations: 0 / 388.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.1765, allocations: 0 / 388.9 MB, free: 1.605 MB / 318.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.002305/0.1788, allocations: 1.273 MB / 390.2 MB, free: 288 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/0.1789, allocations: 8.031 kB / 390.2 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.1794, allocations: 152.1 kB / 390.3 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.1807, allocations: 0.6577 MB / 391 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.782e-05/0.1807, allocations: 58.38 kB / 391.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.1809, allocations: 76.38 kB / 391.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.1823, allocations: 0.7832 MB / 391.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.734e-05/0.1823, allocations: 7.953 kB / 391.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.922e-05/0.1824, allocations: 32 kB / 391.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.1824, allocations: 20 kB / 392 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.1834, allocations: 0.5191 MB / 392.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004321/0.1878, allocations: 3.388 MB / 395.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005309/0.1883, allocations: 223.7 kB / 396.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.1886, allocations: 116.7 kB / 396.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.1887, allocations: 4 kB / 396.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.1887, allocations: 42.5 kB / 396.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.534e-06/0.1887, allocations: 0 / 396.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002203/0.1909, allocations: 1.058 MB / 397.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.191, allocations: 81.11 kB / 397.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009431/0.1919, allocations: 0.731 MB / 398.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.192, allocations: 29.7 kB / 398.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004295/0.1924, allocations: 0.5073 MB / 398.7 MB, free: 7.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.939e-05/0.1925, allocations: 115 kB / 398.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.1927, allocations: 114.2 kB / 398.9 MB, free: 7.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002153/0.1929, allocations: 382.8 kB / 399.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000277/0.1932, allocations: 121.2 kB / 399.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005251/0.1937, allocations: 418.2 kB / 399.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008138/0.1946, allocations: 0.5676 MB / 400.3 MB, free: 5.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.1946, allocations: 4 kB / 400.4 MB, free: 5.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001051/0.1956, allocations: 0.6153 MB / 401 MB, free: 4.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1957, allocations: 12 kB / 401 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.1957, allocations: 12 kB / 401 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.1959, allocations: 36.84 kB / 401 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.1963, allocations: 136.1 kB / 401.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.1976, allocations: 1.402 MB / 402.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004407/0.198, allocations: 27.98 kB / 402.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.1981, allocations: 32 kB / 402.6 MB, free: 2.984 MB / 334.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.0003653/0.1984, allocations: 237.5 kB / 402.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.886e-05/0.1986, allocations: 79.52 kB / 402.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006388/0.1992, allocations: 325.4 kB / 403.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.1992, allocations: 4 kB / 403.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1992, allocations: 3.938 kB / 403.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1992, allocations: 3.938 kB / 403.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.2009, allocations: 1.087 MB / 404.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2009, allocations: 0 / 404.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000263/0.2011, allocations: 68.11 kB / 404.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.243e-05/0.2012, allocations: 16.86 kB / 404.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.2013, allocations: 11.98 kB / 404.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.2023, allocations: 1.375 MB / 405.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/0.2024, allocations: 11.94 kB / 405.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008703/0.2032, allocations: 0.5609 MB / 406.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.2035, allocations: 184.6 kB / 406.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.952e-05/0.2035, allocations: 8 kB / 406.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003137/0.2039, allocations: 19.98 kB / 406.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.204, allocations: 23.91 kB / 406.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.204, allocations: 8 kB / 406.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006718/0.2047, allocations: 0.5029 MB / 407.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2047, allocations: 4 kB / 407.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007378/0.2054, allocations: 167.9 kB / 407.3 MB, free: 14 MB / 350.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.0002833/0.2057, allocations: 107.2 kB / 407.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009371/0.2067, allocations: 465 kB / 407.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.2067, allocations: 320 / 407.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.207, allocations: 234.5 kB / 408.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008943/0.208, allocations: 175.3 kB / 408.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.2104, allocations: 1.441 MB / 409.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006384/0.2111, allocations: 0.9488 MB / 410.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000299/0.2114, allocations: 90.02 kB / 410.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.89e-05/0.2115, allocations: 43.44 kB / 410.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2115, allocations: 4 kB / 410.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01665/0.2282, allocations: 8.263 MB / 419 MB, free: 2.117 MB / 350.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)