Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007083/0.007083, allocations: 105.3 kB / 15.73 MB, free: 6.043 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.001205/0.001205, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.716/1.716, 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.001344/0.001344, allocations: 50.48 kB / 326.5 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1422, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008673/0.1509, allocations: 7.094 MB / 380.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004941/0.1559, allocations: 2.38 MB / 382.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.1571, allocations: 23.88 kB / 382.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.1586, allocations: 0.4892 MB / 383.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001428/0.1601, allocations: 381 kB / 383.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.1606, allocations: 203.7 kB / 383.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001694/0.1623, allocations: 1.199 MB / 384.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007914/0.1631, allocations: 0.5076 MB / 385.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008284/0.164, allocations: 462.1 kB / 385.9 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005826/0.1646, allocations: 0.49 MB / 386.4 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001327/0.1647, allocations: 119.9 kB / 386.5 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003518/0.1651, allocations: 148 kB / 386.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.1653, allocations: 235.1 kB / 386.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005478/0.1658, allocations: 0.5443 MB / 387.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001749/0.1676, allocations: 1.429 MB / 388.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1676, allocations: 0 / 388.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.1676, allocations: 0 / 388.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2e-05/0.1676, allocations: 0 / 388.8 MB, free: 1.559 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002146/0.1698, allocations: 1.243 MB / 390.1 MB, free: 272 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1699, allocations: 8.031 kB / 390.1 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000481/0.1703, allocations: 151.6 kB / 390.2 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.1715, allocations: 0.6416 MB / 390.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.929e-05/0.1716, allocations: 58.38 kB / 390.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.1717, allocations: 84.28 kB / 391 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.1731, allocations: 0.7832 MB / 391.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.87e-05/0.1732, allocations: 7.938 kB / 391.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.735e-05/0.1732, allocations: 28 kB / 391.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.1733, allocations: 24 kB / 391.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.1743, allocations: 0.5114 MB / 392.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004182/0.1785, allocations: 3.387 MB / 395.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.1791, allocations: 230.5 kB / 396 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002507/0.1793, allocations: 120.7 kB / 396.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.1794, allocations: 4 kB / 396.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.1794, allocations: 30.56 kB / 396.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/0.1794, allocations: 0 / 396.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.00232/0.1818, allocations: 1.053 MB / 397.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.1818, allocations: 81.11 kB / 397.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009813/0.1828, allocations: 0.7309 MB / 398 MB, free: 7.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.1829, allocations: 37.7 kB / 398 MB, free: 7.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003662/0.1832, allocations: 0.4904 MB / 398.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.985e-05/0.1833, allocations: 102.6 kB / 398.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1835, allocations: 114.2 kB / 398.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1836, allocations: 378.8 kB / 399.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.1839, allocations: 125.2 kB / 399.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004507/0.1844, allocations: 414.2 kB / 399.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007374/0.1851, allocations: 0.5714 MB / 400.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.1851, allocations: 4 kB / 400.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001024/0.1862, allocations: 0.6151 MB / 400.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.1862, allocations: 8.156 kB / 400.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.1862, allocations: 23.92 kB / 400.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.1864, allocations: 28.84 kB / 400.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.1868, allocations: 139.8 kB / 401 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/0.1879, allocations: 1.386 MB / 402.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000492/0.1885, allocations: 35.89 kB / 402.4 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.1885, allocations: 32 kB / 402.5 MB, free: 3.012 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.000365/0.1889, allocations: 237.7 kB / 402.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.189, allocations: 67.16 kB / 402.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006283/0.1896, allocations: 329.3 kB / 403.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1896, allocations: 0 / 403.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1896, allocations: 7.938 kB / 403.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1897, allocations: 7.984 kB / 403.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.1912, allocations: 1.09 MB / 404.2 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1912, allocations: 4 kB / 404.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.1915, allocations: 63.89 kB / 404.3 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.635e-05/0.1916, allocations: 20.86 kB / 404.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.1916, allocations: 8 kB / 404.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008875/0.1925, allocations: 1.371 MB / 405.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1925, allocations: 4.188 kB / 405.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000839/0.1934, allocations: 0.5566 MB / 406.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.1936, allocations: 180.2 kB / 406.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.129e-05/0.1937, allocations: 8 kB / 406.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.194, allocations: 15.98 kB / 406.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.868e-05/0.1941, allocations: 31.91 kB / 406.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.1941, allocations: 8 kB / 406.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006827/0.1948, allocations: 0.5068 MB / 407 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1948, allocations: 0 / 407 MB, free: 14.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007645/0.1955, allocations: 160 kB / 407.1 MB, free: 14.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (27): * Single equations (assignments): 26 * 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.000287/0.1958, allocations: 119.3 kB / 407.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009221/0.1968, allocations: 460 kB / 407.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1968, allocations: 0 / 407.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003737/0.1972, allocations: 240 kB / 407.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008817/0.1981, allocations: 179.1 kB / 408.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.2004, allocations: 1.419 MB / 409.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.201, allocations: 0.9448 MB / 410.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003085/0.2013, allocations: 90.02 kB / 410.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.944e-05/0.2014, allocations: 47.44 kB / 410.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2014, allocations: 3.938 kB / 410.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Templates: time 0.01641/0.2178, allocations: 8.256 MB / 418.9 MB, free: 2.184 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)