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.001172/0.001172, allocations: 103.6 kB / 17.59 MB, free: 5.422 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.001127/0.001127, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.313/1.313, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1815/0.1815, allocations: 38.02 MB / 330.4 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 71.17 kB / 399.5 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1133, allocations: 58.06 MB / 457.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008141/0.1215, allocations: 5.156 MB / 462.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003633/0.1252, allocations: 1.986 MB / 464.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005/0.1257, allocations: 15.88 kB / 464.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007222/0.1265, allocations: 150.9 kB / 464.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.1278, allocations: 357.9 kB / 465.2 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007442/0.1286, allocations: 219.5 kB / 465.4 MB, free: 112 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.1299, allocations: 0.6928 MB / 466.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006829/0.1306, allocations: 438.5 kB / 466.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006265/0.1312, allocations: 290.8 kB / 466.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005859/0.1318, allocations: 290.8 kB / 467.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.1319, allocations: 51.94 kB / 467.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.1322, allocations: 87.97 kB / 467.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.1324, allocations: 151.5 kB / 467.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003515/0.1328, allocations: 274.7 kB / 467.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008026/0.1336, allocations: 0.6308 MB / 468.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1336, allocations: 0 / 468.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1336, allocations: 0 / 468.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.093e-05/0.1337, allocations: 0 / 468.3 MB, free: 13.22 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.001798/0.1355, allocations: 0.839 MB / 469.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.1355, allocations: 12.03 kB / 469.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.1357, allocations: 56.28 kB / 469.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008214/0.1365, allocations: 474.1 kB / 469.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.1365, allocations: 29 kB / 469.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/0.1366, allocations: 36 kB / 469.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007658/0.1374, allocations: 457.1 kB / 470.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.1374, allocations: 4 kB / 470.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.1375, allocations: 16 kB / 470.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1375, allocations: 8 kB / 470.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/0.138, allocations: 278.3 kB / 470.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.1404, allocations: 1.874 MB / 472.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005293/0.141, allocations: 254.7 kB / 472.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.1411, allocations: 86.98 kB / 472.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.1412, allocations: 11.92 kB / 472.7 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.1415, allocations: 176.5 kB / 472.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.1415, allocations: 0 / 472.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.00183/0.1433, allocations: 0.9061 MB / 473.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/0.1434, allocations: 132.5 kB / 473.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005776/0.144, allocations: 410.1 kB / 474.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.144, allocations: 29.7 kB / 474.3 MB, free: 6.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.1442, allocations: 263.6 kB / 474.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.957e-05/0.1443, allocations: 94.8 kB / 474.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.1445, allocations: 69.62 kB / 474.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.1446, allocations: 354.8 kB / 475.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.1448, allocations: 83.91 kB / 475.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.1451, allocations: 212.2 kB / 475.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004474/0.1455, allocations: 319.9 kB / 475.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1455, allocations: 0 / 475.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009162/0.1465, allocations: 433.5 kB / 476.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.1465, allocations: 8 kB / 476.1 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.1465, allocations: 4 kB / 476.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004457/0.147, allocations: 97.05 kB / 476.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.1472, allocations: 63.91 kB / 476.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002611/0.1498, allocations: 2.014 MB / 478.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.1501, allocations: 19.98 kB / 478.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.1501, allocations: 20.06 kB / 478.3 MB, free: 2.5 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.0002512/0.1504, allocations: 193.6 kB / 478.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-05/0.1505, allocations: 47.45 kB / 478.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006064/0.1511, allocations: 298 kB / 478.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.1511, allocations: 4 kB / 478.9 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1511, allocations: 0 / 478.9 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1511, allocations: 4 kB / 478.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.1523, allocations: 0.7727 MB / 479.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.1523, allocations: 3.938 kB / 479.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.1526, allocations: 47.91 kB / 479.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.1528, allocations: 52.81 kB / 479.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.1528, allocations: 4 kB / 479.7 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.1542, allocations: 1.543 MB / 481.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1543, allocations: 0 / 481.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000787/0.155, allocations: 0.4954 MB / 481.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.1552, allocations: 132.6 kB / 481.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.62e-05/0.1553, allocations: 8.234 kB / 481.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1555, allocations: 15.98 kB / 481.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.713e-05/0.1556, allocations: 27.91 kB / 482 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.1556, allocations: 11.98 kB / 482 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003518/0.156, allocations: 291.1 kB / 482.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.156, allocations: 0 / 482.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005348/0.1565, allocations: 104 kB / 482.4 MB, free: 14.2 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.0009881/0.1575, allocations: 388.9 kB / 482.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009935/0.1585, allocations: 423.2 kB / 483.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1586, allocations: 0 / 483.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004249/0.159, allocations: 246.4 kB / 483.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007177/0.1597, allocations: 132.9 kB / 483.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002231/0.162, allocations: 1.132 MB / 484.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005149/0.1625, allocations: 0.8543 MB / 485.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1626, allocations: 31.44 kB / 485.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1626, allocations: 0 / 485.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of Templates: time 0.01362/0.1763, allocations: 8.194 MB / 493.7 MB, free: 2.91 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)