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 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_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.001203/0.001204, allocations: 111.4 kB / 17.74 MB, free: 5.23 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.001064/0.001064, allocations: 188.5 kB / 18.66 MB, free: 4.312 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.375/1.375, 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.1832/0.1832, allocations: 37.99 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.001441/0.001441, allocations: 63.91 kB / 432.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.118, allocations: 55.25 MB / 487.8 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007497/0.1255, allocations: 5.168 MB / 492.9 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003629/0.1292, allocations: 1.944 MB / 494.9 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005616/0.1298, allocations: 11.94 kB / 494.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007807/0.1306, allocations: 150.9 kB / 495 MB, free: 1.16 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001434/0.1321, allocations: 365.8 kB / 495.4 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006583/0.1328, allocations: 195.6 kB / 495.6 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.1339, allocations: 0.6967 MB / 496.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005795/0.1345, allocations: 430.5 kB / 496.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004771/0.135, allocations: 302.8 kB / 497 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.1354, allocations: 298.8 kB / 497.3 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.332e-05/0.1355, allocations: 44 kB / 497.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.1357, allocations: 91.98 kB / 497.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.1359, allocations: 151.5 kB / 497.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002515/0.1362, allocations: 270.6 kB / 497.8 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000772/0.1369, allocations: 0.6463 MB / 498.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.137, allocations: 0 / 498.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.137, allocations: 0 / 498.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.137, allocations: 0 / 498.5 MB, free: 13.7 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001661/0.1387, allocations: 0.8429 MB / 499.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.1387, allocations: 15.83 kB / 499.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.1388, allocations: 56.28 kB / 499.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007827/0.1396, allocations: 486.2 kB / 499.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.1397, allocations: 29 kB / 499.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.137e-05/0.1398, allocations: 43.91 kB / 499.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006778/0.1404, allocations: 461 kB / 0.4887 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.1405, allocations: 4 kB / 0.4887 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.1405, allocations: 16 kB / 0.4887 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1405, allocations: 8 kB / 0.4887 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004564/0.141, allocations: 278.3 kB / 0.489 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.1432, allocations: 1.847 MB / 0.4908 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004922/0.1437, allocations: 243.7 kB / 0.491 GB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.1438, allocations: 90.98 kB / 0.4911 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.1439, allocations: 3.938 kB / 0.4911 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.1441, allocations: 173.7 kB / 0.4913 GB, free: 8.852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1442, allocations: 0 / 0.4913 GB, free: 8.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.00176/0.1459, allocations: 0.9167 MB / 0.4922 GB, free: 7.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.224e-05/0.146, allocations: 136.4 kB / 0.4923 GB, free: 7.711 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004731/0.1465, allocations: 394 kB / 0.4927 GB, free: 7.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.1465, allocations: 33.7 kB / 0.4927 GB, free: 7.277 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.1468, allocations: 268 kB / 0.4929 GB, free: 7.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.166e-05/0.1469, allocations: 98.58 kB / 0.493 GB, free: 6.914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.147, allocations: 69.7 kB / 0.4931 GB, free: 6.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.1472, allocations: 350.8 kB / 0.4934 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.1474, allocations: 79.97 kB / 0.4935 GB, free: 6.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/0.1476, allocations: 228 kB / 0.4937 GB, free: 6.129 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004724/0.1481, allocations: 307.2 kB / 0.494 GB, free: 5.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1481, allocations: 7.984 kB / 0.494 GB, free: 5.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008122/0.149, allocations: 433.7 kB / 0.4944 GB, free: 5.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.149, allocations: 12.06 kB / 0.4945 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.149, allocations: 4 kB / 0.4945 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004157/0.1494, allocations: 100.7 kB / 0.4946 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.1497, allocations: 63.91 kB / 0.4946 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/0.1524, allocations: 2.006 MB / 0.4966 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.1527, allocations: 23.92 kB / 0.4966 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/0.1527, allocations: 16.06 kB / 0.4966 GB, free: 2.969 MB / 382.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.0002664/0.153, allocations: 201.6 kB / 0.4968 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.153, allocations: 39.53 kB / 0.4968 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005887/0.1536, allocations: 290 kB / 0.4971 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.1537, allocations: 4 kB / 0.4971 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.1537, allocations: 4 kB / 0.4971 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1537, allocations: 3.984 kB / 0.4971 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.1549, allocations: 0.7649 MB / 0.4979 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.155, allocations: 3.984 kB / 0.4979 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.1552, allocations: 43.92 kB / 0.4979 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.1554, allocations: 44.81 kB / 0.498 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.1555, allocations: 11.98 kB / 0.498 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.1569, allocations: 1.555 MB / 0.4995 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1569, allocations: 0 / 0.4995 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007754/0.1577, allocations: 0.4912 MB / 0.5 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.1578, allocations: 128.7 kB / 0.5001 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.477e-05/0.1579, allocations: 8.062 kB / 0.5001 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/0.1582, allocations: 15.98 kB / 0.5001 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.146e-05/0.1583, allocations: 23.97 kB / 0.5001 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.1583, allocations: 11.94 kB / 0.5002 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003978/0.1587, allocations: 283.1 kB / 0.5004 GB, free: 14.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1587, allocations: 0 / 0.5004 GB, free: 14.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005785/0.1593, allocations: 112 kB / 0.5005 GB, free: 14.68 MB / 398.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.0009684/0.1603, allocations: 404.8 kB / 0.5009 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009637/0.1612, allocations: 403.2 kB / 0.5013 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1613, allocations: 4.062 kB / 0.5013 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004248/0.1617, allocations: 250.4 kB / 0.5015 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007608/0.1625, allocations: 131.2 kB / 0.5017 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.1647, allocations: 1.12 MB / 0.5028 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.1653, allocations: 0.8579 MB / 0.5036 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.1655, allocations: 35.44 kB / 0.5036 GB, free: 11.4 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1655, allocations: 0 / 0.5036 GB, free: 11.4 MB / 398.1 MB Notification: Performance of Templates: time 0.01393/0.1794, allocations: 8.223 MB / 0.5117 GB, free: 3.156 MB / 398.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)