Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007369/0.007369, allocations: 100.6 kB / 15.73 MB, free: 6.02 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.001361/0.001361, allocations: 187.3 kB / 16.67 MB, free: 5.941 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.721/1.721, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.00118/0.00118, allocations: 57 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1298, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01438/0.1443, allocations: 12.11 MB / 385.3 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007152/0.1515, allocations: 3.304 MB / 388.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.1526, allocations: 39.88 kB / 388.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001657/0.1543, allocations: 0.6712 MB / 389.3 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001629/0.1559, allocations: 0.7169 MB / 390 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008253/0.1567, allocations: 403.6 kB / 390.4 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002676/0.1594, allocations: 2.409 MB / 392.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.1607, allocations: 0.9968 MB / 393.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.1619, allocations: 0.8949 MB / 394.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.1629, allocations: 0.9917 MB / 395.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002796/0.1632, allocations: 228 kB / 395.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004574/0.1637, allocations: 268 kB / 396.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003525/0.1641, allocations: 462.3 kB / 396.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001036/0.1651, allocations: 1.081 MB / 397.7 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003195/0.1683, allocations: 2.833 MB / 400.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.1683, allocations: 0 / 400.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1683, allocations: 0 / 400.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.049e-05/0.1684, allocations: 0 / 400.6 MB, free: 5.77 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.0043/0.1727, allocations: 2.216 MB / 402.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.1728, allocations: 12.03 kB / 402.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008536/0.1736, allocations: 291.5 kB / 403.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001935/0.1756, allocations: 1.131 MB / 404.2 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.305e-05/0.1757, allocations: 115.5 kB / 404.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.1759, allocations: 159.9 kB / 404.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002722/0.1786, allocations: 1.508 MB / 406 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.018e-05/0.1787, allocations: 11.95 kB / 406 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.1788, allocations: 64 kB / 406 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.381e-05/0.1789, allocations: 43.92 kB / 406.1 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/0.1809, allocations: 1.045 MB / 407.1 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007999/0.189, allocations: 6.259 MB / 413.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.1904, allocations: 0.6114 MB / 414 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009429/0.1914, allocations: 466.2 kB / 414.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.607e-05/0.1914, allocations: 8.562 kB / 414.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/0.1915, allocations: 39.12 kB / 414.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 4.538e-06/0.1915, allocations: 0 / 414.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005743/0.1972, allocations: 2.398 MB / 416.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1974, allocations: 115.5 kB / 417 MB, free: 4.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002165/0.1995, allocations: 1.306 MB / 418.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.092e-05/0.1996, allocations: 37.7 kB / 418.4 MB, free: 3.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008212/0.2004, allocations: 0.8671 MB / 419.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002447/0.2007, allocations: 273.7 kB / 419.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003042/0.201, allocations: 206.8 kB / 419.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.2012, allocations: 345.9 kB / 420 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005711/0.2018, allocations: 286.5 kB / 420.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.2029, allocations: 0.7381 MB / 421.1 MB, free: 396 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.2046, allocations: 1.088 MB / 422.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.2046, allocations: 4 kB / 422.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002325/0.2069, allocations: 1.272 MB / 423.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.207, allocations: 13.09 kB / 423.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.207, allocations: 16 kB / 423.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006083/0.2076, allocations: 142.5 kB / 423.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008486/0.2085, allocations: 255.6 kB / 423.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004819/0.2133, allocations: 4.638 MB / 428.5 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.2145, allocations: 59.88 kB / 428.5 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.086e-05/0.2146, allocations: 55.98 kB / 428.6 MB, free: 8.199 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008792/0.2155, allocations: 357.3 kB / 428.9 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/0.2157, allocations: 147.1 kB / 429.1 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.2176, allocations: 0.8295 MB / 429.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.2176, allocations: 7.938 kB / 429.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2176, allocations: 4 kB / 429.9 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.2176, allocations: 3.984 kB / 429.9 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.2215, allocations: 2.335 MB / 432.3 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.2216, allocations: 4 kB / 432.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005629/0.2221, allocations: 131.8 kB / 432.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.2226, allocations: 130.7 kB / 432.5 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.2227, allocations: 20 kB / 432.5 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005236/0.2279, allocations: 4.783 MB / 437.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.2279, allocations: 4 kB / 437.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.2305, allocations: 1.308 MB / 438.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006434/0.2312, allocations: 296 kB / 438.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.2313, allocations: 16 kB / 438.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006039/0.2319, allocations: 43.97 kB / 439 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.2321, allocations: 60.36 kB / 439 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.2321, allocations: 24 kB / 439.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001423/0.2335, allocations: 0.8742 MB / 439.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2336, allocations: 4 kB / 439.9 MB, free: 12.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001323/0.2349, allocations: 336 kB / 440.3 MB, free: 11.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002899/0.2352, allocations: 123.1 kB / 440.4 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.2372, allocations: 1.129 MB / 441.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2373, allocations: 0 / 441.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.2384, allocations: 0.71 MB / 442.2 MB, free: 9.797 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.24, allocations: 369.8 kB / 442.6 MB, free: 9.438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005485/0.2455, allocations: 2.945 MB / 445.5 MB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009572/0.2465, allocations: 1.217 MB / 446.8 MB, free: 5.164 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006554/0.2472, allocations: 175.5 kB / 446.9 MB, free: 4.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.2474, allocations: 95.42 kB / 447 MB, free: 4.895 MB / 382.1 MB Notification: Performance of SimCode: time 2.595e-06/0.2474, allocations: 0 / 447 MB, free: 4.895 MB / 382.1 MB Notification: Performance of Templates: time 0.3572/0.6046, allocations: 17.97 MB / 465 MB, free: 65.07 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)