Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01016/0.01016, allocations: 97.81 kB / 15.73 MB, free: 6.004 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.001836/0.001837, allocations: 194.5 kB / 16.67 MB, free: 5.934 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.925/1.925, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.002676/0.002677, allocations: 54.31 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1541, allocations: 46.61 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01556/0.1697, allocations: 7.923 MB / 381.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007578/0.1774, allocations: 2.634 MB / 383.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001489/0.179, allocations: 27.88 kB / 383.8 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002313/0.1814, allocations: 0.5793 MB / 384.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002301/0.1837, allocations: 484.4 kB / 384.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008992/0.1846, allocations: 251.6 kB / 385.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002708/0.1873, allocations: 1.428 MB / 386.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001397/0.1887, allocations: 0.6002 MB / 387.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.1902, allocations: 0.5447 MB / 387.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001444/0.1917, allocations: 0.5794 MB / 388.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005028/0.1922, allocations: 136 kB / 388.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008822/0.1931, allocations: 176 kB / 388.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005985/0.1937, allocations: 275 kB / 388.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001703/0.1954, allocations: 0.6454 MB / 389.4 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00418/0.1996, allocations: 1.704 MB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.1997, allocations: 4 kB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.073e-06/0.1997, allocations: 0 / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.859e-05/0.1998, allocations: 3.938 kB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.006516/0.2063, allocations: 1.463 MB / 392.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.848e-05/0.2064, allocations: 12.03 kB / 392.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.2079, allocations: 180 kB / 392.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00294/0.2109, allocations: 0.7268 MB / 393.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.211, allocations: 70 kB / 393.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003659/0.2114, allocations: 99.95 kB / 393.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003717/0.2152, allocations: 0.9229 MB / 394.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.298e-05/0.2153, allocations: 0 / 394.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001589/0.2154, allocations: 40 kB / 394.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.725e-05/0.2155, allocations: 24 kB / 394.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002591/0.2181, allocations: 0.6246 MB / 395.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01076/0.2289, allocations: 3.887 MB / 399.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.2301, allocations: 351.6 kB / 399.5 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005251/0.2306, allocations: 156.7 kB / 399.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.161e-05/0.2307, allocations: 4 kB / 399.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.496e-05/0.2308, allocations: 38.56 kB / 399.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 3.427e-06/0.2308, allocations: 0 / 399.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.004892/0.2357, allocations: 1.206 MB / 400.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.2358, allocations: 81.11 kB / 401 MB, free: 4.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.2384, allocations: 0.8253 MB / 401.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.731e-05/0.2385, allocations: 29.7 kB / 401.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008745/0.2394, allocations: 0.5851 MB / 402.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.2396, allocations: 138.9 kB / 402.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003832/0.24, allocations: 126.5 kB / 402.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002539/0.2403, allocations: 333.9 kB / 403 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006414/0.241, allocations: 149.9 kB / 403.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.2421, allocations: 460 kB / 403.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.2438, allocations: 0.6437 MB / 404.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/0.2439, allocations: 8 kB / 404.3 MB, free: 1.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002382/0.2462, allocations: 0.685 MB / 405 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.445e-05/0.2463, allocations: 15.91 kB / 405 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/0.2464, allocations: 8 kB / 405 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002961/0.2467, allocations: 32.86 kB / 405 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009948/0.2477, allocations: 159.7 kB / 405.2 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002096/0.2498, allocations: 1.386 MB / 406.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.2511, allocations: 40.09 kB / 406.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.891e-05/0.2512, allocations: 32 kB / 406.6 MB, free: 14.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * 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.0007897/0.252, allocations: 257.6 kB / 406.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.2524, allocations: 87.42 kB / 407 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.2538, allocations: 378.5 kB / 407.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.2538, allocations: 4 kB / 407.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2538, allocations: 0 / 407.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2538, allocations: 3.984 kB / 407.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003764/0.2576, allocations: 1.269 MB / 408.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.2577, allocations: 0 / 408.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006201/0.2583, allocations: 79.83 kB / 408.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000187/0.2585, allocations: 29.06 kB / 408.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.2585, allocations: 11.94 kB / 408.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.2603, allocations: 1.371 MB / 410.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.2603, allocations: 0 / 410.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.2623, allocations: 0.64 MB / 410.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006165/0.2629, allocations: 192.5 kB / 410.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/0.2632, allocations: 16 kB / 410.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00074/0.2639, allocations: 23.92 kB / 411 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.2641, allocations: 31.89 kB / 411 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.2641, allocations: 8 kB / 411 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001684/0.2658, allocations: 0.5576 MB / 411.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2658, allocations: 0 / 411.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001597/0.2674, allocations: 196 kB / 411.8 MB, free: 9.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.0003893/0.2678, allocations: 119.1 kB / 411.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.2697, allocations: 0.5006 MB / 412.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.2697, allocations: 4 kB / 412.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007683/0.2705, allocations: 274.5 kB / 412.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002158/0.2727, allocations: 207.6 kB / 412.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005732/0.2785, allocations: 1.719 MB / 414.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.2797, allocations: 0.9962 MB / 415.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009319/0.2806, allocations: 102.9 kB / 415.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.281, allocations: 51.44 kB / 415.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of SimCode: time 1.814e-06/0.281, allocations: 0 / 415.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of Templates: time 0.03998/0.321, allocations: 9.645 MB / 425.4 MB, free: 11.62 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1)