Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 109 kB / 16.51 MB, free: 6.707 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.00165/0.00165, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.176/0.176, allocations: 38.03 MB / 329.3 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 61.66 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.121, allocations: 58.05 MB / 456.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008995/0.13, allocations: 6.095 MB / 462.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00341/0.1335, allocations: 1.834 MB / 464.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009583/0.1345, allocations: 39.75 kB / 464.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007822/0.1353, allocations: 95.36 kB / 464.2 MB, free: 448 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.137, allocations: 294.5 kB / 464.5 MB, free: 152 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008981/0.138, allocations: 135.8 kB / 464.6 MB, free: 16 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001703/0.1397, allocations: 0.876 MB / 465.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008368/0.1405, allocations: 370 kB / 465.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007281/0.1413, allocations: 258.9 kB / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006445/0.1419, allocations: 294.9 kB / 466.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.1421, allocations: 32 kB / 466.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001554/0.1422, allocations: 28 kB / 466.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001886/0.1424, allocations: 143.5 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003859/0.1428, allocations: 250.7 kB / 466.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006133/0.1434, allocations: 0.5723 MB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1435, allocations: 4 kB / 467.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1435, allocations: 0 / 467.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.1435, allocations: 0 / 467.4 MB, free: 13.2 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001675/0.1452, allocations: 0.7776 MB / 468.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1452, allocations: 8.031 kB / 468.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1454, allocations: 64.27 kB / 468.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007567/0.1461, allocations: 428 kB / 468.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.1462, allocations: 66.62 kB / 468.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.465e-05/0.1463, allocations: 51.91 kB / 468.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008953/0.1472, allocations: 0.5008 MB / 469.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.1473, allocations: 0 / 469.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.1473, allocations: 19.94 kB / 469.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.1473, allocations: 12 kB / 469.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006733/0.148, allocations: 343.7 kB / 469.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.1506, allocations: 1.98 MB / 471.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004602/0.1511, allocations: 220.8 kB / 471.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.1513, allocations: 98.66 kB / 472 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.1513, allocations: 8 kB / 472 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.1514, allocations: 34.5 kB / 472 MB, free: 8.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.1514, allocations: 0 / 472 MB, free: 8.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001996/0.1534, allocations: 0.8439 MB / 472.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.754e-05/0.1535, allocations: 102.8 kB / 473 MB, free: 7.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.1539, allocations: 333.6 kB / 473.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.1539, allocations: 33.69 kB / 473.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.1541, allocations: 271.5 kB / 473.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.941e-05/0.1542, allocations: 78.97 kB / 473.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.1543, allocations: 73.5 kB / 473.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1545, allocations: 346.8 kB / 474.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.1547, allocations: 79.95 kB / 474.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002966/0.155, allocations: 221 kB / 474.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.1563, allocations: 0.564 MB / 474.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.1563, allocations: 0 / 474.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008778/0.1572, allocations: 409.8 kB / 475.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.1572, allocations: 8 kB / 475.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1572, allocations: 4 kB / 475.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003425/0.1576, allocations: 80.78 kB / 475.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1578, allocations: 72.08 kB / 475.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/0.1602, allocations: 1.741 MB / 477.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.1605, allocations: 16 kB / 477.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.1605, allocations: 16 kB / 477.3 MB, free: 2.676 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003004/0.1608, allocations: 193.7 kB / 477.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.1609, allocations: 35.69 kB / 477.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.296e-05/0.161, allocations: 55.25 kB / 477.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.161, allocations: 0 / 477.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.161, allocations: 7.938 kB / 477.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1611, allocations: 0 / 477.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.1624, allocations: 0.7726 MB / 478.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1624, allocations: 0 / 478.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.1626, allocations: 47.91 kB / 478.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.73e-05/0.1627, allocations: 24.83 kB / 478.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1628, allocations: 8 kB / 478.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009508/0.1637, allocations: 1.284 MB / 479.7 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1637, allocations: 0 / 479.7 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000768/0.1645, allocations: 0.5056 MB / 480.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.1647, allocations: 120.7 kB / 480.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.214e-05/0.1647, allocations: 7.984 kB / 480.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1649, allocations: 11.94 kB / 480.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.165, allocations: 23.97 kB / 480.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.165, allocations: 4 kB / 480.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002553/0.1653, allocations: 235.2 kB / 480.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1653, allocations: 0 / 480.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005386/0.1658, allocations: 84 kB / 480.7 MB, free: 15.01 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001302/0.166, allocations: 103.2 kB / 480.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007686/0.1668, allocations: 365.5 kB / 481.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.1668, allocations: 1.188 kB / 481.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003757/0.1672, allocations: 229.8 kB / 481.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000698/0.1679, allocations: 100.7 kB / 481.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.1698, allocations: 1.107 MB / 482.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.1703, allocations: 0.8389 MB / 483.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002355/0.1705, allocations: 51.2 kB / 483.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.538e-05/0.1706, allocations: 27.44 kB / 483.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1706, allocations: 0 / 483.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of Templates: time 0.009615/0.1802, allocations: 4.247 MB / 487.7 MB, free: 7.918 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)