Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.005763/0.005763, allocations: 102.9 kB / 15.73 MB, free: 6.488 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.001376/0.001376, allocations: 195.2 kB / 16.68 MB, free: 6.375 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.892/1.892, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.001284/0.001284, allocations: 50.88 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1496, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01014/0.1598, allocations: 7.098 MB / 380.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006143/0.166, allocations: 2.384 MB / 382.7 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.1677, allocations: 19.94 kB / 382.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.1697, allocations: 0.5204 MB / 383.2 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001895/0.1716, allocations: 413 kB / 383.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005694/0.1722, allocations: 207.7 kB / 383.8 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001877/0.1741, allocations: 1.199 MB / 385 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009518/0.175, allocations: 0.5076 MB / 385.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008519/0.1759, allocations: 462.1 kB / 386 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006231/0.1765, allocations: 497.8 kB / 386.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.1767, allocations: 116 kB / 386.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003579/0.177, allocations: 148 kB / 386.7 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.1773, allocations: 235.1 kB / 386.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005697/0.1778, allocations: 0.5443 MB / 387.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.1796, allocations: 1.433 MB / 388.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.707e-06/0.1796, allocations: 0 / 388.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.1796, allocations: 0 / 388.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.37e-05/0.1796, allocations: 0 / 388.9 MB, free: 1.484 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.002344/0.182, allocations: 1.254 MB / 390.2 MB, free: 184 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.562e-05/0.1821, allocations: 8.031 kB / 390.2 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005643/0.1826, allocations: 139.6 kB / 390.3 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.1839, allocations: 0.6456 MB / 391 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.166e-05/0.184, allocations: 62.31 kB / 391 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.1841, allocations: 80.27 kB / 391.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.1856, allocations: 0.7871 MB / 391.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.669e-05/0.1857, allocations: 0 / 391.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-05/0.1857, allocations: 32 kB / 391.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.135e-05/0.1858, allocations: 20 kB / 391.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009913/0.1868, allocations: 0.5192 MB / 392.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004672/0.1915, allocations: 3.375 MB / 395.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.192, allocations: 226.5 kB / 396 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/0.1923, allocations: 112.8 kB / 396.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.582e-05/0.1923, allocations: 11.98 kB / 396.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.1924, allocations: 42.55 kB / 396.2 MB, free: 9.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.485e-06/0.1924, allocations: 0 / 396.2 MB, free: 9.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002494/0.1949, allocations: 1.041 MB / 397.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.384e-05/0.195, allocations: 89.03 kB / 397.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.1961, allocations: 0.7348 MB / 398.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.1961, allocations: 29.7 kB / 398.1 MB, free: 7.832 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004175/0.1966, allocations: 0.4943 MB / 398.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.051e-05/0.1966, allocations: 102.5 kB / 398.7 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.1968, allocations: 118.2 kB / 398.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.197, allocations: 378.8 kB / 399.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.1973, allocations: 121.2 kB / 399.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005161/0.1978, allocations: 414.2 kB / 399.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007964/0.1986, allocations: 0.5753 MB / 400.3 MB, free: 5.355 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.1987, allocations: 4 kB / 400.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001144/0.1998, allocations: 0.6147 MB / 400.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.1999, allocations: 12 kB / 400.9 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.1999, allocations: 11.98 kB / 400.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.2001, allocations: 37.41 kB / 401 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004418/0.2006, allocations: 139.8 kB / 401.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.2019, allocations: 1.39 MB / 402.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005166/0.2024, allocations: 31.89 kB / 402.5 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.2025, allocations: 28 kB / 402.5 MB, free: 2.938 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.0004565/0.2029, allocations: 229.8 kB / 402.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.2031, allocations: 79.16 kB / 402.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006793/0.2038, allocations: 317.3 kB / 403.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.2038, allocations: 4 kB / 403.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.2038, allocations: 0 / 403.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.2038, allocations: 7.922 kB / 403.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.2057, allocations: 1.102 MB / 404.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.2057, allocations: 272 / 404.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.2059, allocations: 67.89 kB / 404.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.865e-05/0.2061, allocations: 20.84 kB / 404.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.2061, allocations: 8 kB / 404.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.2072, allocations: 1.378 MB / 405.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2072, allocations: 0 / 405.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009195/0.2082, allocations: 0.5567 MB / 406.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002421/0.2084, allocations: 172.2 kB / 406.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.914e-05/0.2085, allocations: 11.98 kB / 406.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.2088, allocations: 19.98 kB / 406.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.917e-05/0.2089, allocations: 27.84 kB / 406.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.2089, allocations: 12 kB / 406.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007287/0.2097, allocations: 0.503 MB / 407 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2097, allocations: 0 / 407 MB, free: 14.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007724/0.2104, allocations: 160 kB / 407.2 MB, free: 13.97 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.00032/0.2108, allocations: 111.2 kB / 407.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.2118, allocations: 465.2 kB / 407.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.2118, allocations: 4 kB / 407.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003825/0.2122, allocations: 238.5 kB / 408 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009289/0.2132, allocations: 183.5 kB / 408.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002767/0.216, allocations: 1.408 MB / 409.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006731/0.2166, allocations: 0.9448 MB / 410.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003222/0.217, allocations: 86.03 kB / 410.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.2171, allocations: 59.42 kB / 410.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2171, allocations: 0 / 410.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of Templates: time 0.02281/0.2399, allocations: 8.263 MB / 418.9 MB, free: 2.105 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)