Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 106.3 kB / 16.92 MB, free: 5.766 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.001701/0.001701, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.438/1.438, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.227/0.227, allocations: 38.03 MB / 329.7 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 55.75 kB / 398.8 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1111, allocations: 58.06 MB / 456.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007662/0.1189, allocations: 5.694 MB / 462.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003626/0.1225, allocations: 2.122 MB / 464.7 MB, free: 192 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003648/0.1229, allocations: 15.94 kB / 464.7 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006287/0.1236, allocations: 178.8 kB / 464.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009008/0.1246, allocations: 425.5 kB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.1252, allocations: 243.5 kB / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.1262, allocations: 0.8409 MB / 466.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000574/0.1268, allocations: 0.4928 MB / 466.8 MB, free: 14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004344/0.1273, allocations: 338.7 kB / 467.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004454/0.1277, allocations: 346.6 kB / 467.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-05/0.1278, allocations: 52 kB / 467.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.128, allocations: 104 kB / 467.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.1282, allocations: 183.5 kB / 467.8 MB, free: 13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002992/0.1285, allocations: 306.5 kB / 468.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007205/0.1293, allocations: 0.7281 MB / 468.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.1293, allocations: 0 / 468.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1293, allocations: 0 / 468.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.1293, allocations: 0 / 468.9 MB, free: 11.96 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001596/0.1309, allocations: 0.8979 MB / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.131, allocations: 11.89 kB / 469.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.1311, allocations: 68.19 kB / 469.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008105/0.1319, allocations: 498.1 kB / 470.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.132, allocations: 37 kB / 470.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.1321, allocations: 51.88 kB / 470.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007899/0.1329, allocations: 0.5134 MB / 470.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1329, allocations: 0 / 470.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/0.133, allocations: 20 kB / 471 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.195e-05/0.1331, allocations: 16.98 kB / 471 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005346/0.1336, allocations: 339.6 kB / 471.3 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.1361, allocations: 2.07 MB / 473.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.1365, allocations: 235.6 kB / 473.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.1367, allocations: 82.62 kB / 473.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.1367, allocations: 8.203 kB / 473.7 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.1369, allocations: 172.6 kB / 473.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.137, allocations: 0 / 473.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00166/0.1386, allocations: 0.9105 MB / 474.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.1387, allocations: 132.5 kB / 474.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000472/0.1392, allocations: 429.8 kB / 475.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.1392, allocations: 33.7 kB / 475.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.1394, allocations: 299.5 kB / 475.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/0.1395, allocations: 86.73 kB / 475.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1396, allocations: 78.03 kB / 475.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1398, allocations: 362.7 kB / 476.2 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.1399, allocations: 84.83 kB / 476.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.1402, allocations: 225.8 kB / 476.5 MB, free: 3.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.1407, allocations: 321.7 kB / 476.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1407, allocations: 4 kB / 476.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008793/0.1416, allocations: 449.3 kB / 477.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1416, allocations: 4 kB / 477.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1416, allocations: 4.562 kB / 477.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004482/0.1421, allocations: 96.78 kB / 477.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.1423, allocations: 71.84 kB / 477.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.1444, allocations: 1.824 MB / 479.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.1447, allocations: 23.98 kB / 479.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.1447, allocations: 20 kB / 479.3 MB, free: 0.8672 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0002564/0.145, allocations: 216.9 kB / 479.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.435e-05/0.145, allocations: 47.38 kB / 479.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005675/0.1456, allocations: 274.1 kB / 479.8 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1456, allocations: 4 kB / 479.8 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.1456, allocations: 3.938 kB / 479.8 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.1457, allocations: 7.984 kB / 479.8 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.1468, allocations: 0.7707 MB / 480.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1468, allocations: 3.984 kB / 480.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.1471, allocations: 47.92 kB / 480.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002131/0.1473, allocations: 56.73 kB / 480.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.1474, allocations: 8 kB / 480.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.1487, allocations: 1.547 MB / 482.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1487, allocations: 3.938 kB / 482.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007133/0.1494, allocations: 490.5 kB / 482.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.1496, allocations: 128.6 kB / 482.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.529e-05/0.1496, allocations: 11.94 kB / 482.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.1499, allocations: 12 kB / 482.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.1499, allocations: 19.97 kB / 482.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.15, allocations: 11.98 kB / 482.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003449/0.1503, allocations: 295.1 kB / 483.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1503, allocations: 0 / 483.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000522/0.1509, allocations: 120 kB / 483.3 MB, free: 12.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0008953/0.1518, allocations: 398.2 kB / 483.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008671/0.1526, allocations: 403 kB / 484.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1527, allocations: 0 / 484.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.153, allocations: 246.4 kB / 484.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007144/0.1538, allocations: 137.7 kB / 484.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/0.1558, allocations: 1.192 MB / 485.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.1563, allocations: 0.8777 MB / 486.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000251/0.1565, allocations: 64.23 kB / 486.6 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.588e-05/0.1566, allocations: 31.44 kB / 486.6 MB, free: 9.309 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1566, allocations: 0 / 486.6 MB, free: 9.309 MB / 366.1 MB Notification: Performance of Templates: time 0.01372/0.1703, allocations: 6.459 MB / 493.1 MB, free: 2.922 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)