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.007889/0.007889, allocations: 96.25 kB / 15.73 MB, free: 6 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.001604/0.001604, allocations: 185.4 kB / 16.67 MB, free: 5.93 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.845/1.845, 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.001236/0.001236, allocations: 53.97 kB / 326.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1639, allocations: 46.62 MB / 373.2 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01075/0.1747, allocations: 7.086 MB / 380.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006234/0.181, allocations: 2.38 MB / 382.6 MB, free: 7.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.1829, allocations: 23.88 kB / 382.7 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002168/0.1851, allocations: 0.497 MB / 383.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001793/0.1869, allocations: 377 kB / 383.5 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006158/0.1876, allocations: 207.7 kB / 383.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001711/0.1893, allocations: 1.206 MB / 384.9 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000933/0.1902, allocations: 0.5076 MB / 385.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008277/0.1911, allocations: 458.1 kB / 385.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006439/0.1917, allocations: 0.49 MB / 386.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00016/0.1919, allocations: 116 kB / 386.5 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004091/0.1923, allocations: 148 kB / 386.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.1926, allocations: 227.1 kB / 386.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006453/0.1932, allocations: 0.5482 MB / 387.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002007/0.1952, allocations: 1.444 MB / 388.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.1953, allocations: 0 / 388.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1953, allocations: 3.938 kB / 388.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.1953, allocations: 0 / 388.9 MB, free: 1.676 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.002412/0.1977, allocations: 1.273 MB / 390.1 MB, free: 360 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.289e-05/0.1978, allocations: 8.031 kB / 390.1 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005822/0.1984, allocations: 148.2 kB / 390.3 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001298/0.1997, allocations: 0.6577 MB / 390.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-05/0.1998, allocations: 58.38 kB / 391 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.1999, allocations: 80.38 kB / 391.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.2014, allocations: 0.7832 MB / 391.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.49e-05/0.2015, allocations: 3.953 kB / 391.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-05/0.2016, allocations: 32 kB / 391.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.707e-05/0.2016, allocations: 20 kB / 391.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.2027, allocations: 0.5231 MB / 392.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004701/0.2074, allocations: 3.381 MB / 395.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005758/0.208, allocations: 230.5 kB / 396 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/0.2083, allocations: 120.7 kB / 396.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.2083, allocations: 0 / 396.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.2084, allocations: 46.5 kB / 396.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.315e-06/0.2084, allocations: 0 / 396.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002416/0.2108, allocations: 1.058 MB / 397.3 MB, free: 8.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.338e-05/0.2109, allocations: 81.11 kB / 397.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.212, allocations: 0.731 MB / 398.1 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.212, allocations: 29.7 kB / 398.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.2125, allocations: 0.5073 MB / 398.6 MB, free: 7.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.402e-05/0.2126, allocations: 111 kB / 398.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.2127, allocations: 118.2 kB / 398.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.213, allocations: 378.8 kB / 399.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.2132, allocations: 125.2 kB / 399.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.2138, allocations: 418.2 kB / 399.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.2146, allocations: 0.5637 MB / 400.3 MB, free: 5.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.2146, allocations: 4 kB / 400.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001146/0.2158, allocations: 0.6192 MB / 400.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.2158, allocations: 8 kB / 400.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.2158, allocations: 8 kB / 400.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002137/0.2161, allocations: 32.84 kB / 401 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/0.2165, allocations: 144.2 kB / 401.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.2179, allocations: 1.394 MB / 402.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005629/0.2185, allocations: 31.98 kB / 402.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.2186, allocations: 32 kB / 402.6 MB, free: 3.059 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.0004551/0.219, allocations: 237.5 kB / 402.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.2192, allocations: 75.53 kB / 402.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000734/0.2199, allocations: 325.4 kB / 403.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.2199, allocations: 7.984 kB / 403.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.2199, allocations: 3.938 kB / 403.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.2199, allocations: 0 / 403.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.2219, allocations: 1.09 MB / 404.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2219, allocations: 0 / 404.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.2222, allocations: 72.11 kB / 404.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.2223, allocations: 16.86 kB / 404.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.2223, allocations: 12 kB / 404.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.2236, allocations: 1.375 MB / 405.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/0.2237, allocations: 7.969 kB / 405.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009682/0.2246, allocations: 0.5609 MB / 406.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.2249, allocations: 180.6 kB / 406.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.511e-05/0.225, allocations: 8 kB / 406.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.2254, allocations: 19.98 kB / 406.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.2255, allocations: 23.91 kB / 406.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.2255, allocations: 8 kB / 406.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008141/0.2263, allocations: 0.5069 MB / 407.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2263, allocations: 0 / 407.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008423/0.2272, allocations: 167.9 kB / 407.2 MB, free: 14.07 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.0003055/0.2275, allocations: 107.2 kB / 407.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009536/0.2284, allocations: 465.4 kB / 407.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.2285, allocations: 4 kB / 407.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004118/0.2289, allocations: 234.5 kB / 408 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009398/0.2298, allocations: 179.3 kB / 408.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.2328, allocations: 1.441 MB / 409.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007995/0.2336, allocations: 0.9488 MB / 410.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003757/0.234, allocations: 90.02 kB / 410.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.2341, allocations: 47.44 kB / 410.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 1.113e-06/0.2341, allocations: 0 / 410.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Templates: time 0.02245/0.2566, allocations: 8.263 MB / 419 MB, free: 2.188 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)