Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.000937/0.0009373, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0008868/0.0008869, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.977/1.977, allocations: 205.4 MB / 223.7 MB, free: 12.99 MB / 190.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.0004933/0.0004933, allocations: 12 kB / 280.7 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1478, allocations: 47.58 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01163/0.1595, allocations: 7.621 MB / 335.9 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007679/0.1673, allocations: 2.677 MB / 338.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001714/0.1691, allocations: 27.94 kB / 338.6 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002181/0.1713, allocations: 477.3 kB / 339.1 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002151/0.1735, allocations: 365.4 kB / 339.5 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009152/0.1744, allocations: 323.7 kB / 339.8 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00194/0.1763, allocations: 1.425 MB / 341.2 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009006/0.1773, allocations: 0.5213 MB / 341.7 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.1784, allocations: 465.6 kB / 342.2 MB, free: 5.777 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007915/0.1792, allocations: 0.5168 MB / 342.7 MB, free: 5.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.1794, allocations: 60 kB / 342.8 MB, free: 5.199 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003298/0.1797, allocations: 99.97 kB / 342.9 MB, free: 5.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.1799, allocations: 198.9 kB / 343.1 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006286/0.1805, allocations: 0.6038 MB / 343.7 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.1822, allocations: 1.595 MB / 345.3 MB, free: 2.691 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.1823, allocations: 3.938 kB / 345.3 MB, free: 2.688 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1823, allocations: 4 kB / 345.3 MB, free: 2.684 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.1823, allocations: 0 / 345.3 MB, free: 2.684 MB / 286.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.002742/0.1851, allocations: 1.304 MB / 346.6 MB, free: 1.324 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.475e-05/0.1851, allocations: 8.031 kB / 346.6 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000776/0.1859, allocations: 191.3 kB / 346.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.1874, allocations: 0.786 MB / 347.5 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.479e-05/0.1875, allocations: 78.12 kB / 347.6 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.1877, allocations: 100 kB / 347.7 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.1895, allocations: 0.9615 MB / 348.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/0.1896, allocations: 3.906 kB / 348.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.08e-05/0.1897, allocations: 40 kB / 348.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.651e-05/0.1897, allocations: 24 kB / 348.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.1909, allocations: 0.6519 MB / 349.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006183/0.1971, allocations: 4.135 MB / 353.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1983, allocations: 471 kB / 354 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/0.1986, allocations: 173.4 kB / 354.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.905e-05/0.1986, allocations: 7.75 kB / 354.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.1987, allocations: 38.5 kB / 354.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.938e-06/0.1987, allocations: 0 / 354.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002981/0.2017, allocations: 1.353 MB / 355.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.2018, allocations: 106.8 kB / 355.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.2033, allocations: 0.9057 MB / 356.6 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.2034, allocations: 33.7 kB / 356.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006011/0.204, allocations: 0.5914 MB / 357.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.2042, allocations: 149.8 kB / 357.3 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.2043, allocations: 65.69 kB / 357.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.2045, allocations: 337.9 kB / 357.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.2049, allocations: 169.9 kB / 357.9 MB, free: 5.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009116/0.2058, allocations: 0.4899 MB / 358.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.207, allocations: 0.6987 MB / 359.1 MB, free: 4.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.207, allocations: 0 / 359.1 MB, free: 4.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001658/0.2086, allocations: 0.7622 MB / 359.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003931/0.209, allocations: 396.9 kB / 360.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.2091, allocations: 16 kB / 360.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002002/0.2093, allocations: 36.84 kB / 360.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005817/0.2099, allocations: 167.7 kB / 360.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.2111, allocations: 1.292 MB / 361.7 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.2118, allocations: 43.83 kB / 361.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/0.2118, allocations: 36 kB / 361.8 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/0.2118, allocations: 8.125 kB / 361.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001017/0.2129, allocations: 0.6136 MB / 362.4 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.2129, allocations: 15.94 kB / 362.5 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.213, allocations: 40.78 kB / 362.5 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005332/0.2136, allocations: 159.8 kB / 362.7 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.2147, allocations: 1.292 MB / 364 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006517/0.2153, allocations: 39.92 kB / 364 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-05/0.2154, allocations: 36 kB / 364 MB, free: 14.66 MB / 318.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.0006818/0.2161, allocations: 341 kB / 364.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.2163, allocations: 90.88 kB / 364.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009151/0.2172, allocations: 451.1 kB / 364.9 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2172, allocations: 4 kB / 364.9 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2172, allocations: 4 kB / 364.9 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.2172, allocations: 0 / 364.9 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.2195, allocations: 1.394 MB / 366.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.2195, allocations: 12.02 kB / 366.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.2199, allocations: 79.84 kB / 366.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001068/0.22, allocations: 24.84 kB / 366.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.2201, allocations: 12 kB / 366.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.2212, allocations: 1.272 MB / 367.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.2212, allocations: 8.016 kB / 367.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.2225, allocations: 0.7366 MB / 368.4 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000352/0.2229, allocations: 200 kB / 368.6 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.384e-05/0.223, allocations: 11.98 kB / 368.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003946/0.2234, allocations: 27.98 kB / 368.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.485e-05/0.2235, allocations: 27.91 kB / 368.7 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.2235, allocations: 16 kB / 368.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009659/0.2245, allocations: 0.6094 MB / 369.3 MB, free: 9.055 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2245, allocations: 0 / 369.3 MB, free: 9.055 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001519/0.226, allocations: 356 kB / 369.7 MB, free: 8.707 MB / 318.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.0003474/0.2264, allocations: 111.2 kB / 369.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001958/0.2283, allocations: 0.9871 MB / 370.8 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.2284, allocations: 0 / 370.8 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004414/0.2288, allocations: 290.5 kB / 371 MB, free: 7.285 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.2304, allocations: 236 kB / 371.3 MB, free: 7.055 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003986/0.2344, allocations: 2.357 MB / 373.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006689/0.2351, allocations: 1.021 MB / 374.7 MB, free: 3.594 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006821/0.2358, allocations: 123.4 kB / 374.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.2359, allocations: 63.42 kB / 374.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of SimCode: time 1.353e-06/0.2359, allocations: 0 / 374.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of Templates: time 0.2232/0.4592, allocations: 10.06 MB / 384.9 MB, free: 49.39 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)