Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009661/0.0009664, allocations: 173.4 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008571/0.0008569, allocations: 90.28 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1756/0.1756, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004194/0.0004193, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1211, allocations: 56.33 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006591/0.1278, allocations: 5.608 MB / 484.7 MB, free: 12.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003546/0.1313, allocations: 2.137 MB / 486.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003923/0.1318, allocations: 27.81 kB / 486.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005282/0.1323, allocations: 147 kB / 487 MB, free: 10.08 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001033/0.1334, allocations: 397.8 kB / 487.4 MB, free: 9.691 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006379/0.134, allocations: 207.7 kB / 487.6 MB, free: 9.488 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.1351, allocations: 0.8915 MB / 488.5 MB, free: 8.594 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000491/0.1356, allocations: 370.1 kB / 488.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004174/0.1361, allocations: 290.8 kB / 489.1 MB, free: 7.945 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004234/0.1365, allocations: 314.7 kB / 489.4 MB, free: 7.637 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.209e-05/0.1366, allocations: 28 kB / 489.4 MB, free: 7.609 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.1368, allocations: 63.98 kB / 489.5 MB, free: 7.547 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.137, allocations: 151.5 kB / 489.7 MB, free: 7.398 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1371, allocations: 129.5 kB / 489.8 MB, free: 7.266 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.1377, allocations: 0.5687 MB / 490.4 MB, free: 6.695 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1377, allocations: 0 / 490.4 MB, free: 6.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.72e-05/0.1378, allocations: 4 kB / 490.4 MB, free: 6.691 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1378, allocations: 0 / 490.4 MB, free: 6.691 MB / 330.7 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.001685/0.1395, allocations: 0.7967 MB / 491.2 MB, free: 5.844 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.1395, allocations: 11.98 kB / 491.2 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.1397, allocations: 71.19 kB / 491.2 MB, free: 5.762 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008255/0.1405, allocations: 481.7 kB / 491.7 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.127e-05/0.1406, allocations: 37 kB / 491.7 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.1407, allocations: 47.94 kB / 491.8 MB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008416/0.1415, allocations: 0.5134 MB / 492.3 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.1416, allocations: 4 kB / 492.3 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.801e-05/0.1416, allocations: 20 kB / 492.3 MB, free: 4.586 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.426e-05/0.1417, allocations: 16.98 kB / 492.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005523/0.1423, allocations: 335.6 kB / 492.7 MB, free: 4.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00261/0.1449, allocations: 2.081 MB / 494.7 MB, free: 2.039 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.1453, allocations: 223.7 kB / 495 MB, free: 1.793 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.1455, allocations: 86.98 kB / 495.1 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.1455, allocations: 4 kB / 495.1 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002815/0.1458, allocations: 170 kB / 495.2 MB, free: 1.508 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.054e-06/0.1458, allocations: 0 / 495.2 MB, free: 1.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001689/0.1475, allocations: 0.9219 MB / 496.1 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.1476, allocations: 132.5 kB / 496.3 MB, free: 376 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004876/0.1481, allocations: 429.8 kB / 496.7 MB, free: 15.94 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1481, allocations: 33.69 kB / 496.7 MB, free: 15.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.1483, allocations: 295.9 kB / 497 MB, free: 15.61 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.254e-05/0.1484, allocations: 90.94 kB / 497.1 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/0.1484, allocations: 8 kB / 497.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1486, allocations: 350.8 kB / 497.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.1487, allocations: 80.83 kB / 497.5 MB, free: 15.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.149, allocations: 229.4 kB / 497.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.1492, allocations: 120 kB / 497.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1492, allocations: 4 kB / 497.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008167/0.15, allocations: 433.8 kB / 498.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1501, allocations: 8 kB / 498.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.1501, allocations: 4 kB / 498.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004218/0.1505, allocations: 96.77 kB / 498.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.1508, allocations: 67.91 kB / 498.5 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.1529, allocations: 1.706 MB / 0.4885 GB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.1532, allocations: 19.98 kB / 0.4885 GB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.1533, allocations: 16 kB / 0.4885 GB, free: 12.2 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002927/0.1536, allocations: 221.5 kB / 0.4887 GB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.103e-05/0.1536, allocations: 47.5 kB / 0.4887 GB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006136/0.1542, allocations: 274.1 kB / 0.489 GB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1543, allocations: 7.953 kB / 0.489 GB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1543, allocations: 4 kB / 0.489 GB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1543, allocations: 0 / 0.489 GB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.1555, allocations: 0.7844 MB / 0.4898 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1555, allocations: 0 / 0.4898 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/0.1558, allocations: 47.91 kB / 0.4898 GB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002067/0.156, allocations: 48.81 kB / 0.4899 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.156, allocations: 7.984 kB / 0.4899 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.1572, allocations: 1.433 MB / 0.4913 GB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1572, allocations: 0 / 0.4913 GB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000716/0.158, allocations: 485.3 kB / 0.4917 GB, free: 8.617 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.1581, allocations: 136.6 kB / 0.4919 GB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.1582, allocations: 4 kB / 0.4919 GB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.1584, allocations: 19.98 kB / 0.4919 GB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.1585, allocations: 19.92 kB / 0.4919 GB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.1585, allocations: 12 kB / 0.4919 GB, free: 8.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003404/0.1589, allocations: 299.1 kB / 0.4922 GB, free: 8.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1589, allocations: 0 / 0.4922 GB, free: 8.117 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004934/0.1594, allocations: 112 kB / 0.4923 GB, free: 8.008 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008792/0.1602, allocations: 406.4 kB / 0.4927 GB, free: 7.656 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000752/0.161, allocations: 382.8 kB / 0.4931 GB, free: 7.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.161, allocations: 3.938 kB / 0.4931 GB, free: 7.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003639/0.1614, allocations: 234.5 kB / 0.4933 GB, free: 7.023 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007061/0.1621, allocations: 126.6 kB / 0.4934 GB, free: 6.902 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.1642, allocations: 1.516 MB / 0.4949 GB, free: 5.348 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004732/0.1647, allocations: 0.8779 MB / 0.4958 GB, free: 4.445 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1648, allocations: 47.31 kB / 0.4958 GB, free: 4.398 MB / 346.7 MB Notification: Performance of SimCode: time 4.71e-07/0.1648, allocations: 0 / 0.4958 GB, free: 4.398 MB / 346.7 MB Notification: Performance of Templates: time 0.01229/0.1771, allocations: 8.743 MB / 0.5043 GB, free: 11.64 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)