Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01029/0.01029, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.001789/0.001789, allocations: 188.9 kB / 16.67 MB, free: 5.973 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.971/1.971, allocations: 205.1 MB / 222.5 MB, free: 4.391 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.001546/0.001546, allocations: 58.55 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1549, allocations: 46.62 MB / 373.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01049/0.1654, allocations: 8.116 MB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006801/0.1723, allocations: 2.758 MB / 384.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.1742, allocations: 31.88 kB / 384.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002128/0.1763, allocations: 0.5551 MB / 384.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003145/0.1795, allocations: 476.5 kB / 385.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.1812, allocations: 363.5 kB / 385.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004243/0.1854, allocations: 1.511 MB / 387 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001687/0.1872, allocations: 0.6125 MB / 387.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001957/0.1891, allocations: 0.5602 MB / 388.2 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.1907, allocations: 0.6026 MB / 388.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002535/0.191, allocations: 140 kB / 388.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007581/0.1917, allocations: 180 kB / 389.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003832/0.1921, allocations: 286.9 kB / 389.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.1932, allocations: 0.6685 MB / 390 MB, free: 360 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003715/0.197, allocations: 1.728 MB / 391.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.084e-05/0.197, allocations: 0 / 391.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.197, allocations: 0 / 391.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.268e-05/0.1971, allocations: 0 / 391.7 MB, free: 14.62 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.004496/0.2016, allocations: 1.503 MB / 393.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.657e-05/0.2017, allocations: 12.03 kB / 393.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.2028, allocations: 191.2 kB / 393.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002303/0.2051, allocations: 0.7978 MB / 394.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.2052, allocations: 81.92 kB / 394.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002441/0.2055, allocations: 103.9 kB / 394.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002871/0.2084, allocations: 0.9458 MB / 395.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.194e-05/0.2085, allocations: 7.922 kB / 395.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.2086, allocations: 40 kB / 395.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.987e-05/0.2087, allocations: 24 kB / 395.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/0.2106, allocations: 0.6402 MB / 396.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009738/0.2204, allocations: 4.088 MB / 400.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001987/0.2225, allocations: 419.3 kB / 400.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006331/0.2232, allocations: 164.8 kB / 400.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-05/0.2233, allocations: 4 kB / 400.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.406e-05/0.2233, allocations: 42.56 kB / 400.8 MB, free: 5.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 5.67e-06/0.2234, allocations: 0 / 400.8 MB, free: 5.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.005577/0.229, allocations: 1.323 MB / 402.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.2291, allocations: 106.8 kB / 402.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003154/0.2323, allocations: 0.8979 MB / 403.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.473e-05/0.2324, allocations: 33.64 kB / 403.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009764/0.2334, allocations: 0.5915 MB / 403.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003044/0.2337, allocations: 149.9 kB / 403.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00049/0.2343, allocations: 134.5 kB / 404 MB, free: 1.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002403/0.2345, allocations: 338 kB / 404.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007448/0.2353, allocations: 176.8 kB / 404.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.2364, allocations: 489.6 kB / 405 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001943/0.2383, allocations: 0.6945 MB / 405.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.518e-05/0.2384, allocations: 0 / 405.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003051/0.2414, allocations: 0.7547 MB / 406.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.937e-05/0.2415, allocations: 8 kB / 406.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.694e-05/0.2416, allocations: 12 kB / 406.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003949/0.242, allocations: 32.86 kB / 406.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.2432, allocations: 167.7 kB / 406.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/0.2454, allocations: 1.398 MB / 408.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.2468, allocations: 40.14 kB / 408.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.871e-05/0.2469, allocations: 32 kB / 408.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00138/0.2483, allocations: 350.1 kB / 408.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009861/0.2494, allocations: 477.7 kB / 408.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001723/0.2511, allocations: 0.6637 MB / 409.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.063e-05/0.2511, allocations: 4 kB / 409.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.002766/0.2539, allocations: 0.7193 MB / 410.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.254, allocations: 8 kB / 410.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.275e-05/0.254, allocations: 16.77 kB / 410.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.2543, allocations: 36.8 kB / 410.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.2553, allocations: 171.7 kB / 410.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002171/0.2575, allocations: 1.382 MB / 411.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.2589, allocations: 35.98 kB / 412 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.813e-05/0.259, allocations: 36 kB / 412 MB, free: 8.918 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0004544/0.2594, allocations: 235.9 kB / 412.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005208/0.26, allocations: 98.78 kB / 412.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.2618, allocations: 435.2 kB / 412.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.2619, allocations: 4 kB / 412.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.2619, allocations: 0 / 412.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.2619, allocations: 3.938 kB / 412.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004853/0.2668, allocations: 1.371 MB / 414.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.2668, allocations: 3.938 kB / 414.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007014/0.2676, allocations: 84.11 kB / 414.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002071/0.2678, allocations: 20.84 kB / 414.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.692e-05/0.2679, allocations: 15.94 kB / 414.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.2698, allocations: 1.378 MB / 415.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.819e-06/0.2698, allocations: 4 kB / 415.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.2723, allocations: 0.7184 MB / 416.4 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/0.2733, allocations: 203.9 kB / 416.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.2738, allocations: 19.98 kB / 416.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.2749, allocations: 15.98 kB / 416.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.2751, allocations: 31.91 kB / 416.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.015e-05/0.2752, allocations: 15.98 kB / 416.6 MB, free: 3.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002541/0.2777, allocations: 0.6095 MB / 417.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.2777, allocations: 0 / 417.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003261/0.281, allocations: 348 kB / 417.6 MB, free: 3.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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.0005011/0.2815, allocations: 127 kB / 417.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003757/0.2853, allocations: 0.9747 MB / 418.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.2853, allocations: 320 / 418.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009251/0.2863, allocations: 290.5 kB / 419 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/0.2892, allocations: 255.6 kB / 419.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007639/0.2968, allocations: 1.807 MB / 421 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001683/0.2986, allocations: 1.021 MB / 422 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001151/0.2998, allocations: 127.4 kB / 422.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002588/0.3001, allocations: 55.44 kB / 422.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.315e-06/0.3001, allocations: 3.938 kB / 422.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of Templates: time 0.04112/0.3412, allocations: 10.8 MB / 433 MB, free: 3.418 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)