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.001468/0.001469, allocations: 103.3 kB / 16.51 MB, free: 6.691 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.001561/0.001562, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.966/1.966, allocations: 205.1 MB / 223.3 MB, free: 12.52 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.001456/0.001456, allocations: 43.94 kB / 279.3 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1543, allocations: 46.63 MB / 326 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01224/0.1666, allocations: 8.103 MB / 334.1 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006472/0.1731, allocations: 2.712 MB / 336.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.1749, allocations: 27.94 kB / 336.8 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001843/0.1768, allocations: 481.3 kB / 337.3 MB, free: 9.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002039/0.1788, allocations: 373.3 kB / 337.6 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009906/0.1799, allocations: 311.8 kB / 337.9 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00203/0.1819, allocations: 1.429 MB / 339.4 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000877/0.1828, allocations: 0.5252 MB / 339.9 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008276/0.1836, allocations: 0.5054 MB / 340.4 MB, free: 6.352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005915/0.1842, allocations: 0.5675 MB / 341 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.1844, allocations: 84 kB / 341.1 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003598/0.1847, allocations: 124 kB / 341.2 MB, free: 5.578 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.1849, allocations: 238.8 kB / 341.4 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006599/0.1856, allocations: 0.61 MB / 342 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001614/0.1872, allocations: 1.647 MB / 343.7 MB, free: 3.078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.1873, allocations: 0 / 343.7 MB, free: 3.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.997e-06/0.1873, allocations: 0 / 343.7 MB, free: 3.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.1873, allocations: 3.938 kB / 343.7 MB, free: 3.074 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.002933/0.1902, allocations: 1.507 MB / 345.2 MB, free: 1.512 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.1903, allocations: 15.97 kB / 345.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006572/0.191, allocations: 191.2 kB / 345.4 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.1924, allocations: 0.786 MB / 346.2 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.38e-05/0.1925, allocations: 78.12 kB / 346.2 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.1926, allocations: 96 kB / 346.3 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.1944, allocations: 0.9537 MB / 347.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.651e-05/0.1944, allocations: 11.91 kB / 347.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/0.1945, allocations: 40 kB / 347.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.1946, allocations: 24 kB / 347.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.1958, allocations: 0.6324 MB / 348 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006791/0.2026, allocations: 4.123 MB / 352.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000946/0.2036, allocations: 431 kB / 352.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.2039, allocations: 157.4 kB / 352.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.2039, allocations: 15.73 kB / 352.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.204, allocations: 38.56 kB / 352.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.204, allocations: 0 / 352.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002942/0.2069, allocations: 1.318 MB / 354.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.2071, allocations: 118.7 kB / 354.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001493/0.2086, allocations: 0.8979 MB / 355.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.2086, allocations: 29.7 kB / 355.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000468/0.2091, allocations: 0.5954 MB / 355.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.2092, allocations: 142 kB / 355.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.2094, allocations: 142.5 kB / 356 MB, free: 6.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2096, allocations: 334 kB / 356.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/0.2099, allocations: 172.8 kB / 356.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000616/0.2106, allocations: 0.4899 MB / 357 MB, free: 5.094 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009688/0.2115, allocations: 0.6831 MB / 357.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2116, allocations: 0 / 357.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001327/0.2129, allocations: 0.7544 MB / 358.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.2129, allocations: 8 kB / 358.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/0.213, allocations: 12 kB / 358.4 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001977/0.2132, allocations: 40.88 kB / 358.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005979/0.2138, allocations: 171.7 kB / 358.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.2151, allocations: 1.288 MB / 359.9 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006949/0.2158, allocations: 40.05 kB / 360 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.2159, allocations: 36 kB / 360 MB, free: 1.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007488/0.2167, allocations: 350 kB / 360.3 MB, free: 1.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00056/0.2172, allocations: 477.7 kB / 360.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009586/0.2182, allocations: 0.6635 MB / 361.5 MB, free: 8 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.2182, allocations: 4 kB / 361.5 MB, free: 4 kB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001203/0.2194, allocations: 0.7235 MB / 362.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.2195, allocations: 11.98 kB / 362.2 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.2195, allocations: 16.69 kB / 362.2 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001083/0.2196, allocations: 28.86 kB / 362.2 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.2201, allocations: 167.7 kB / 362.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.2212, allocations: 1.295 MB / 363.7 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/0.2219, allocations: 35.89 kB / 363.7 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.222, allocations: 32 kB / 363.8 MB, free: 13.55 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.0003282/0.2223, allocations: 232 kB / 364 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.2225, allocations: 94.81 kB / 364.1 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.2235, allocations: 435.2 kB / 364.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.2235, allocations: 7.984 kB / 364.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2235, allocations: 0 / 364.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.2235, allocations: 3.938 kB / 364.5 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00214/0.2257, allocations: 1.378 MB / 365.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2257, allocations: 4 kB / 365.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/0.2261, allocations: 88.11 kB / 366 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.799e-05/0.2262, allocations: 24.84 kB / 366 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.2262, allocations: 11.94 kB / 366 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009587/0.2272, allocations: 1.268 MB / 367.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.2272, allocations: 4.031 kB / 367.3 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.2283, allocations: 0.7131 MB / 368 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.2286, allocations: 204 kB / 368.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.2288, allocations: 15.92 kB / 368.2 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000392/0.2292, allocations: 23.98 kB / 368.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.31e-05/0.2292, allocations: 27.91 kB / 368.3 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.2293, allocations: 16 kB / 368.3 MB, free: 8.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009379/0.2302, allocations: 0.6055 MB / 368.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2302, allocations: 0 / 368.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001316/0.2316, allocations: 352 kB / 369.2 MB, free: 7.77 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.0002672/0.2318, allocations: 119.2 kB / 369.4 MB, free: 7.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.2337, allocations: 0.9699 MB / 370.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.2337, allocations: 4 kB / 370.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004564/0.2342, allocations: 287.1 kB / 370.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.2356, allocations: 227.4 kB / 370.8 MB, free: 6.133 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/0.2393, allocations: 2.26 MB / 373.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007329/0.24, allocations: 1.025 MB / 374.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006496/0.2407, allocations: 127.4 kB / 374.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.2408, allocations: 63.42 kB / 374.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2408, allocations: 0 / 374.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of Templates: time 0.25/0.4909, allocations: 10.14 MB / 384.5 MB, free: 50.21 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)