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.001742/0.001748, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001986/0.001987, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.984/1.984, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001185/0.001185, allocations: 47.94 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1395, allocations: 46.62 MB / 326.6 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01256/0.1521, allocations: 8.143 MB / 334.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007748/0.1599, allocations: 2.743 MB / 337.5 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002176/0.1621, allocations: 35.88 kB / 337.5 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.1643, allocations: 0.5278 MB / 338.1 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002217/0.1665, allocations: 432.5 kB / 338.5 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.1678, allocations: 371.4 kB / 338.9 MB, free: 8.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002686/0.1705, allocations: 1.499 MB / 340.4 MB, free: 6.648 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.1715, allocations: 0.601 MB / 341 MB, free: 6.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009507/0.1725, allocations: 0.5524 MB / 341.5 MB, free: 5.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007051/0.1732, allocations: 0.6026 MB / 342.1 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.1734, allocations: 136 kB / 342.2 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003963/0.1738, allocations: 184 kB / 342.4 MB, free: 4.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002403/0.1741, allocations: 290.9 kB / 342.7 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000686/0.1747, allocations: 0.6724 MB / 343.4 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001858/0.1766, allocations: 1.69 MB / 345.1 MB, free: 1.898 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1766, allocations: 0 / 345.1 MB, free: 1.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1766, allocations: 0 / 345.1 MB, free: 1.898 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.1767, allocations: 0 / 345.1 MB, free: 1.898 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.002591/0.1793, allocations: 1.511 MB / 346.6 MB, free: 340 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.1793, allocations: 12.03 kB / 346.6 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006202/0.1799, allocations: 191.2 kB / 346.8 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.1811, allocations: 0.7744 MB / 347.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.92e-05/0.1812, allocations: 82.11 kB / 347.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.1813, allocations: 99.98 kB / 347.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.1828, allocations: 0.9536 MB / 348.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.529e-05/0.1829, allocations: 11.89 kB / 348.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.771e-05/0.183, allocations: 44 kB / 348.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.183, allocations: 24 kB / 348.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.1842, allocations: 0.6324 MB / 349.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006172/0.1904, allocations: 4.115 MB / 353.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009559/0.1914, allocations: 439 kB / 353.9 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002789/0.1917, allocations: 157.4 kB / 354.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.815e-05/0.1917, allocations: 7.75 kB / 354.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.1918, allocations: 38.56 kB / 354.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.244e-06/0.1918, allocations: 0 / 354.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002523/0.1943, allocations: 1.326 MB / 355.5 MB, free: 7.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.1944, allocations: 110.8 kB / 355.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.1956, allocations: 0.9018 MB / 356.5 MB, free: 5.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.1956, allocations: 29.7 kB / 356.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004225/0.196, allocations: 0.5954 MB / 357.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1962, allocations: 145.9 kB / 357.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/0.1963, allocations: 138.5 kB / 357.4 MB, free: 5.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1965, allocations: 334 kB / 357.7 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.1968, allocations: 176.8 kB / 357.9 MB, free: 4.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.1973, allocations: 0.4899 MB / 358.4 MB, free: 3.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000843/0.1982, allocations: 0.6792 MB / 359 MB, free: 3.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1982, allocations: 0 / 359 MB, free: 3.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001192/0.1994, allocations: 0.754 MB / 359.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.1994, allocations: 8 kB / 359.8 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.1995, allocations: 12.72 kB / 359.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.1996, allocations: 36.86 kB / 359.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005338/0.2002, allocations: 171.7 kB / 360 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009825/0.2012, allocations: 1.386 MB / 361.4 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005762/0.2018, allocations: 43.83 kB / 361.5 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-05/0.2018, allocations: 36.09 kB / 361.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005686/0.2024, allocations: 354.1 kB / 361.8 MB, free: 144 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000478/0.2029, allocations: 485.6 kB / 362.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007488/0.2036, allocations: 0.6637 MB / 363 MB, free: 14.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.01e-06/0.2036, allocations: 4 kB / 363 MB, free: 14.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001059/0.2047, allocations: 0.7118 MB / 363.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.2047, allocations: 8 kB / 363.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.2048, allocations: 15.98 kB / 363.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.732e-05/0.2049, allocations: 33.39 kB / 363.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/0.2054, allocations: 167.7 kB / 363.9 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009124/0.2063, allocations: 1.394 MB / 365.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005467/0.2068, allocations: 39.98 kB / 365.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/0.2069, allocations: 32 kB / 365.4 MB, free: 12.16 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.0002134/0.2071, allocations: 232 kB / 365.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.2072, allocations: 90.88 kB / 365.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008497/0.2081, allocations: 439.1 kB / 366.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2081, allocations: 4 kB / 366.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.2081, allocations: 0 / 366.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.2081, allocations: 4.031 kB / 366.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.2101, allocations: 1.382 MB / 367.5 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.2101, allocations: 4 kB / 367.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/0.2104, allocations: 75.89 kB / 367.6 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.714e-05/0.2105, allocations: 24.84 kB / 367.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.2106, allocations: 12 kB / 367.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009349/0.2115, allocations: 1.371 MB / 369 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2115, allocations: 4.188 kB / 369 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009954/0.2125, allocations: 0.7172 MB / 369.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002616/0.2128, allocations: 211.9 kB / 369.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.627e-05/0.2129, allocations: 8 kB / 369.9 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003766/0.2133, allocations: 19.98 kB / 369.9 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/0.2134, allocations: 31.91 kB / 370 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.2134, allocations: 15.98 kB / 370 MB, free: 7.234 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008292/0.2143, allocations: 0.6095 MB / 370.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2143, allocations: 4 kB / 370.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001215/0.2155, allocations: 344 kB / 370.9 MB, free: 6.273 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.0002209/0.2157, allocations: 123.2 kB / 371.1 MB, free: 6.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.2175, allocations: 0.9974 MB / 372.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.2175, allocations: 3.938 kB / 372.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004006/0.2179, allocations: 283.8 kB / 372.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.2191, allocations: 236.7 kB / 372.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.2221, allocations: 1.834 MB / 374.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.2227, allocations: 1.028 MB / 375.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005265/0.2232, allocations: 127.4 kB / 375.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.2234, allocations: 59.44 kB / 375.6 MB, free: 1.469 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2234, allocations: 0 / 375.6 MB, free: 1.469 MB / 318.1 MB Notification: Performance of Templates: time 0.233/0.4564, allocations: 10.63 MB / 386.2 MB, free: 49.48 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)