Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002086/0.002096, allocations: 111.7 kB / 16.62 MB, free: 6.812 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.002363/0.002364, allocations: 190 kB / 17.55 MB, free: 5.934 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.859/1.859, allocations: 205.1 MB / 223.4 MB, free: 12.36 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.001408/0.001408, allocations: 55.91 kB / 279.5 MB, free: 3.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1209, allocations: 46.63 MB / 326.1 MB, free: 4.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01362/0.1346, allocations: 8.144 MB / 334.3 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00756/0.1422, allocations: 2.689 MB / 337 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001971/0.1443, allocations: 23.94 kB / 337 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00263/0.147, allocations: 0.4981 MB / 337.5 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002502/0.1495, allocations: 417 kB / 337.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006892/0.1502, allocations: 227.8 kB / 338.1 MB, free: 8.711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002041/0.1523, allocations: 1.494 MB / 339.6 MB, free: 7.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009428/0.1532, allocations: 0.5886 MB / 340.2 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000652/0.1539, allocations: 0.5602 MB / 340.8 MB, free: 6.039 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007504/0.1547, allocations: 0.6143 MB / 341.4 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002232/0.1549, allocations: 140 kB / 341.5 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003351/0.1552, allocations: 188 kB / 341.7 MB, free: 5.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.1555, allocations: 279 kB / 342 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006264/0.1561, allocations: 0.6804 MB / 342.7 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001703/0.1578, allocations: 1.729 MB / 344.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1578, allocations: 0 / 344.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1579, allocations: 3.938 kB / 344.4 MB, free: 2.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.1579, allocations: 0 / 344.4 MB, free: 2.406 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00262/0.1605, allocations: 1.476 MB / 345.9 MB, free: 0.875 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1606, allocations: 8.031 kB / 345.9 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006814/0.1613, allocations: 191.3 kB / 346.1 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.1623, allocations: 0.7503 MB / 346.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.287e-05/0.1624, allocations: 74 kB / 346.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.1625, allocations: 103.9 kB / 347 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.1642, allocations: 0.9464 MB / 347.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.1642, allocations: 3.984 kB / 347.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.532e-05/0.1643, allocations: 40 kB / 348 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.1643, allocations: 24 kB / 348 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.1657, allocations: 0.6597 MB / 348.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005516/0.1712, allocations: 3.941 MB / 352.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000886/0.1721, allocations: 447.9 kB / 353 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006094/0.1727, allocations: 272.7 kB / 353.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.419e-05/0.1728, allocations: 4 kB / 353.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.1728, allocations: 46.5 kB / 353.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.764e-06/0.1728, allocations: 0 / 353.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003302/0.1761, allocations: 1.541 MB / 354.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.909e-05/0.1762, allocations: 85.11 kB / 355 MB, free: 7.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.1773, allocations: 0.8294 MB / 355.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.1773, allocations: 37.7 kB / 355.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004858/0.1778, allocations: 0.5681 MB / 356.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.1781, allocations: 165.6 kB / 356.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.1783, allocations: 126.5 kB / 356.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000382/0.1786, allocations: 334 kB / 357 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.179, allocations: 181.8 kB / 357.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007666/0.1798, allocations: 471.6 kB / 357.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.181, allocations: 0.6758 MB / 358.3 MB, free: 3.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.181, allocations: 8 kB / 358.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00132/0.1823, allocations: 0.7826 MB / 359.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.1824, allocations: 8 kB / 359.1 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.1824, allocations: 11.98 kB / 359.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.1827, allocations: 85.94 kB / 359.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004837/0.1832, allocations: 155.7 kB / 359.4 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002938/0.1861, allocations: 3.157 MB / 362.5 MB, free: 15.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006002/0.1867, allocations: 39.89 kB / 362.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.1868, allocations: 32 kB / 362.6 MB, free: 15.08 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000442/0.1872, allocations: 265.5 kB / 362.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.1874, allocations: 90.95 kB / 363 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009457/0.1883, allocations: 0.4991 MB / 363.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1884, allocations: 7.938 kB / 363.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1884, allocations: 4 kB / 363.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1884, allocations: 7.984 kB / 363.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.1906, allocations: 1.476 MB / 365 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.1906, allocations: 4 kB / 365 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.1909, allocations: 76.11 kB / 365 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001927/0.1911, allocations: 65.69 kB / 365.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-05/0.1912, allocations: 15.98 kB / 365.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/0.1935, allocations: 3.122 MB / 368.2 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1936, allocations: 8.016 kB / 368.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.1949, allocations: 0.7971 MB / 369 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002614/0.1951, allocations: 196 kB / 369.2 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.1953, allocations: 15.94 kB / 369.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/0.1957, allocations: 23.98 kB / 369.3 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.33e-05/0.1958, allocations: 43.89 kB / 369.3 MB, free: 7.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.1958, allocations: 16 kB / 369.3 MB, free: 7.898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007765/0.1966, allocations: 0.5732 MB / 369.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1966, allocations: 0 / 369.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008778/0.1975, allocations: 208 kB / 370.1 MB, free: 7.125 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0002333/0.1978, allocations: 115.2 kB / 370.2 MB, free: 7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.1991, allocations: 0.7236 MB / 370.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1991, allocations: 0 / 370.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006244/0.1997, allocations: 451.3 kB / 371.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.2009, allocations: 231.2 kB / 371.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.2039, allocations: 2.169 MB / 373.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006429/0.2046, allocations: 1.013 MB / 374.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004441/0.205, allocations: 115.2 kB / 374.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.2052, allocations: 59.44 kB / 375 MB, free: 2.129 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2052, allocations: 4 kB / 375 MB, free: 2.125 MB / 318.1 MB Notification: Performance of Templates: time 0.2046/0.4098, allocations: 10.6 MB / 385.6 MB, free: 49.97 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)