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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.001259/0.001259, allocations: 108.2 kB / 17.74 MB, free: 5.359 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.001286/0.001286, allocations: 183.1 kB / 18.67 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1923/0.1923, allocations: 37.98 MB / 309.9 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1126, allocations: 55.25 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.009084/0.1217, allocations: 5.259 MB / 493 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003129/0.1249, allocations: 1.613 MB / 494.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005134/0.1254, allocations: 19.88 kB / 494.7 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005666/0.126, allocations: 119 kB / 494.8 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.1272, allocations: 322.1 kB / 495.1 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005459/0.1278, allocations: 155.7 kB / 495.3 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.129, allocations: 0.7005 MB / 496 MB, free: 140 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000673/0.1297, allocations: 443.7 kB / 496.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006191/0.1303, allocations: 290.8 kB / 496.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005881/0.1309, allocations: 286.9 kB / 496.9 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.1311, allocations: 44 kB / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.1312, allocations: 48 kB / 497 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.1314, allocations: 159.5 kB / 497.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004042/0.1318, allocations: 266.7 kB / 497.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008009/0.1326, allocations: 0.5918 MB / 498 MB, free: 14.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1327, allocations: 0 / 498 MB, free: 14.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1327, allocations: 0 / 498 MB, free: 14.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.1327, allocations: 0 / 498 MB, free: 14.03 MB / 382.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.001706/0.1344, allocations: 0.7854 MB / 498.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.1345, allocations: 11.89 kB / 498.8 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.1346, allocations: 56.28 kB / 498.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000783/0.1354, allocations: 456 kB / 499.3 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.75e-05/0.1355, allocations: 66.64 kB / 499.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.238e-05/0.1356, allocations: 40 kB / 499.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008626/0.1365, allocations: 0.5047 MB / 500 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.1365, allocations: 3.906 kB / 500 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.1366, allocations: 28 kB / 500 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1366, allocations: 8 kB / 500 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006623/0.1372, allocations: 339.7 kB / 0.4886 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002624/0.1399, allocations: 1.968 MB / 0.4905 GB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004561/0.1404, allocations: 227.5 kB / 0.4907 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.1406, allocations: 98.61 kB / 0.4908 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.1406, allocations: 3.938 kB / 0.4908 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.1407, allocations: 50.48 kB / 0.4909 GB, free: 9.125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.1407, allocations: 0 / 0.4909 GB, free: 9.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.001858/0.1425, allocations: 0.8349 MB / 0.4917 GB, free: 8.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.1426, allocations: 106.8 kB / 0.4918 GB, free: 8.102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.143, allocations: 337.5 kB / 0.4921 GB, free: 7.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.1431, allocations: 29.7 kB / 0.4921 GB, free: 7.723 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.1433, allocations: 267.9 kB / 0.4924 GB, free: 7.457 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.386e-05/0.1433, allocations: 78.89 kB / 0.4925 GB, free: 7.379 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.1435, allocations: 81.47 kB / 0.4926 GB, free: 7.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1436, allocations: 338.8 kB / 0.4929 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.1439, allocations: 87.94 kB / 0.493 GB, free: 6.867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.1442, allocations: 220.7 kB / 0.4932 GB, free: 6.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.1454, allocations: 0.5525 MB / 0.4937 GB, free: 5.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.1454, allocations: 4 kB / 0.4937 GB, free: 5.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009055/0.1463, allocations: 413.8 kB / 0.4941 GB, free: 5.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1464, allocations: 8 kB / 0.4941 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.1464, allocations: 4 kB / 0.4941 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003404/0.1467, allocations: 81.06 kB / 0.4942 GB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.147, allocations: 67.84 kB / 0.4943 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002052/0.1491, allocations: 1.924 MB / 0.4961 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.1493, allocations: 23.84 kB / 0.4962 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.1493, allocations: 15.98 kB / 0.4962 GB, free: 3.277 MB / 382.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.0002685/0.1496, allocations: 193.8 kB / 0.4964 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.1497, allocations: 31.62 kB / 0.4964 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.828e-05/0.1498, allocations: 47.25 kB / 0.4964 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1498, allocations: 4 kB / 0.4964 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1498, allocations: 0 / 0.4964 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1498, allocations: 0 / 0.4964 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.1511, allocations: 0.7765 MB / 0.4972 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1512, allocations: 64 / 0.4972 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.1514, allocations: 51.91 kB / 0.4973 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.003e-05/0.1515, allocations: 24.84 kB / 0.4973 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1515, allocations: 8 kB / 0.4973 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.1526, allocations: 1.375 MB / 0.4986 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1526, allocations: 8 kB / 0.4986 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007655/0.1533, allocations: 0.5124 MB / 0.4991 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.1535, allocations: 120.8 kB / 0.4993 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.1536, allocations: 4 kB / 0.4993 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.1538, allocations: 8 kB / 0.4993 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.1538, allocations: 19.97 kB / 0.4993 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.1539, allocations: 4 kB / 0.4993 GB, free: 15.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.1541, allocations: 235.2 kB / 0.4995 GB, free: 15.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1541, allocations: 0 / 0.4995 GB, free: 15.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005183/0.1547, allocations: 88 kB / 0.4996 GB, free: 15.52 MB / 398.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.0001315/0.1548, allocations: 107.1 kB / 0.4997 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007804/0.1556, allocations: 375.1 kB / 0.5001 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1556, allocations: 0 / 0.5001 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003655/0.156, allocations: 214.6 kB / 0.5003 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007165/0.1567, allocations: 98.44 kB / 0.5004 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.1585, allocations: 0.9614 MB / 0.5013 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.159, allocations: 0.8465 MB / 0.5021 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.1591, allocations: 27.44 kB / 0.5021 GB, free: 12.8 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1591, allocations: 0 / 0.5021 GB, free: 12.8 MB / 398.1 MB Notification: Performance of Templates: time 0.01113/0.1703, allocations: 6.921 MB / 0.5089 GB, free: 5.871 MB / 398.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)