Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 111.6 kB / 16.63 MB, free: 6.953 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.00145/0.00145, allocations: 193.9 kB / 17.55 MB, free: 6.043 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.402/1.402, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1759/0.1759, allocations: 38.02 MB / 329.4 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 61.17 kB / 398.3 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.118, allocations: 58.07 MB / 456.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007306/0.1254, allocations: 5.793 MB / 462.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003342/0.1288, allocations: 2.173 MB / 464.3 MB, free: 404 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003612/0.1292, allocations: 31.81 kB / 464.3 MB, free: 372 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005907/0.1298, allocations: 127.2 kB / 464.5 MB, free: 244 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.1308, allocations: 326.3 kB / 464.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.1313, allocations: 187.8 kB / 465 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007568/0.1321, allocations: 0.7006 MB / 465.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004501/0.1326, allocations: 434.5 kB / 466.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003618/0.1329, allocations: 290.8 kB / 466.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.1333, allocations: 294.8 kB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.508e-05/0.1334, allocations: 48 kB / 466.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001589/0.1335, allocations: 91.97 kB / 466.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.1337, allocations: 151.5 kB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.1339, allocations: 270.7 kB / 467.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.1345, allocations: 0.6424 MB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1345, allocations: 0 / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1345, allocations: 0 / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1345, allocations: 0 / 467.8 MB, free: 12.83 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00137/0.1359, allocations: 0.8428 MB / 468.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.136, allocations: 11.89 kB / 468.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.1361, allocations: 60.27 kB / 468.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006494/0.1367, allocations: 466.2 kB / 469.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.1368, allocations: 32.98 kB / 469.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.71e-05/0.1369, allocations: 40 kB / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006509/0.1375, allocations: 457.1 kB / 469.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.1375, allocations: 3.938 kB / 469.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.053e-05/0.1376, allocations: 16 kB / 469.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1376, allocations: 8 kB / 469.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004366/0.138, allocations: 278.3 kB / 470 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.14, allocations: 1.862 MB / 471.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/0.1405, allocations: 254.5 kB / 472.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.1407, allocations: 83.05 kB / 472.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.1407, allocations: 7.938 kB / 472.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.141, allocations: 188.6 kB / 472.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.141, allocations: 4 kB / 472.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001584/0.1426, allocations: 0.8984 MB / 473.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/0.1427, allocations: 144.4 kB / 473.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004069/0.1431, allocations: 406.1 kB / 473.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/0.1431, allocations: 33.7 kB / 473.9 MB, free: 6.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.1433, allocations: 259.7 kB / 474.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.934e-05/0.1434, allocations: 94.64 kB / 474.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1435, allocations: 69.61 kB / 474.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1436, allocations: 354.8 kB / 474.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.1438, allocations: 87.91 kB / 474.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.144, allocations: 215 kB / 474.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.1444, allocations: 319.9 kB / 475.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1445, allocations: 0 / 475.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008111/0.1453, allocations: 425.7 kB / 475.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1453, allocations: 6.031 kB / 475.7 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1453, allocations: 4 kB / 475.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004203/0.1457, allocations: 101 kB / 475.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.146, allocations: 63.84 kB / 475.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.1483, allocations: 2.026 MB / 477.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.1485, allocations: 16 kB / 477.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.1486, allocations: 24.06 kB / 477.9 MB, free: 2.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002163/0.1488, allocations: 197.6 kB / 478.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.1488, allocations: 39.53 kB / 478.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006018/0.1495, allocations: 301.9 kB / 478.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1495, allocations: 4 kB / 478.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1495, allocations: 4 kB / 478.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1495, allocations: 4 kB / 478.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.1506, allocations: 0.7649 MB / 479.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1506, allocations: 0 / 479.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.1508, allocations: 39.98 kB / 479.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002078/0.151, allocations: 52.8 kB / 479.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.1511, allocations: 8 kB / 479.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.1523, allocations: 1.555 MB / 480.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1523, allocations: 3.938 kB / 480.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007204/0.1531, allocations: 0.4975 MB / 481.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.1532, allocations: 132.6 kB / 481.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.983e-05/0.1533, allocations: 7.984 kB / 481.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.1535, allocations: 12 kB / 481.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.867e-05/0.1536, allocations: 23.97 kB / 481.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1536, allocations: 7.984 kB / 481.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.1539, allocations: 287.1 kB / 481.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1539, allocations: 0 / 481.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004992/0.1544, allocations: 108 kB / 481.9 MB, free: 13.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008553/0.1553, allocations: 394.4 kB / 482.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008972/0.1562, allocations: 419.2 kB / 482.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1562, allocations: 3.938 kB / 482.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.1566, allocations: 234.6 kB / 483 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006975/0.1573, allocations: 125.7 kB / 483.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.1592, allocations: 1.263 MB / 484.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.1596, allocations: 0.8582 MB / 485.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002477/0.1599, allocations: 67.36 kB / 485.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.097e-05/0.1599, allocations: 31.44 kB / 485.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.16, allocations: 0 / 485.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of Templates: time 0.01124/0.1712, allocations: 6.13 MB / 491.4 MB, free: 4.414 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)