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.00115/0.00115, allocations: 108.3 kB / 17.74 MB, free: 5.309 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.00109/0.00109, allocations: 187 kB / 18.67 MB, free: 4.387 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.306/1.306, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1796/0.1796, allocations: 37.98 MB / 309.9 MB, free: 5.949 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.002336/0.002336, allocations: 67.03 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1055, allocations: 55.25 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006495/0.112, allocations: 5.153 MB / 492.9 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.1149, allocations: 1.944 MB / 494.9 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.1153, allocations: 23.88 kB / 494.9 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000533/0.1158, allocations: 150.9 kB / 495.1 MB, free: 1.023 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.0009153/0.1168, allocations: 353.9 kB / 495.4 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.1172, allocations: 200.1 kB / 495.6 MB, free: 492 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008537/0.1181, allocations: 0.7044 MB / 496.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004889/0.1186, allocations: 430.5 kB / 496.7 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000413/0.119, allocations: 302.8 kB / 497 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003917/0.1194, allocations: 290.8 kB / 497.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.398e-05/0.1195, allocations: 44 kB / 497.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.1197, allocations: 91.98 kB / 497.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.1199, allocations: 147.5 kB / 497.6 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002539/0.1201, allocations: 270.7 kB / 497.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000709/0.1208, allocations: 0.6462 MB / 498.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1208, allocations: 4 kB / 498.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1209, allocations: 0 / 498.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.699e-06/0.1209, allocations: 0 / 498.5 MB, free: 13.57 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.001534/0.1224, allocations: 0.8429 MB / 499.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1225, allocations: 15.89 kB / 499.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.1226, allocations: 52.28 kB / 499.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007363/0.1233, allocations: 482.2 kB / 499.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.1234, allocations: 32.98 kB / 499.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.975e-05/0.1234, allocations: 47.84 kB / 499.9 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006488/0.1241, allocations: 457.1 kB / 0.4887 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.1241, allocations: 3.938 kB / 0.4887 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.1242, allocations: 16 kB / 0.4887 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1242, allocations: 8 kB / 0.4887 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004386/0.1246, allocations: 282.3 kB / 0.489 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1267, allocations: 1.843 MB / 0.4908 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004721/0.1272, allocations: 251.7 kB / 0.491 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.1273, allocations: 86.98 kB / 0.4911 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.1274, allocations: 7.938 kB / 0.4911 GB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.1276, allocations: 173.7 kB / 0.4913 GB, free: 8.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 2.004e-06/0.1276, allocations: 0 / 0.4913 GB, free: 8.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.00163/0.1293, allocations: 0.9171 MB / 0.4922 GB, free: 7.742 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/0.1294, allocations: 140.3 kB / 0.4923 GB, free: 7.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004323/0.1298, allocations: 398 kB / 0.4927 GB, free: 7.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.1299, allocations: 29.7 kB / 0.4927 GB, free: 7.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.13, allocations: 267.6 kB / 0.493 GB, free: 6.875 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.871e-05/0.1301, allocations: 90.66 kB / 0.493 GB, free: 6.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.1302, allocations: 65.64 kB / 0.4931 GB, free: 6.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1304, allocations: 362.8 kB / 0.4934 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1306, allocations: 79.95 kB / 0.4935 GB, free: 6.273 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.1308, allocations: 220.1 kB / 0.4937 GB, free: 6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003978/0.1312, allocations: 315.2 kB / 0.494 GB, free: 5.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1312, allocations: 4 kB / 0.494 GB, free: 5.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008272/0.132, allocations: 433.3 kB / 0.4944 GB, free: 5.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1321, allocations: 8 kB / 0.4945 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.1321, allocations: 4 kB / 0.4945 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004429/0.1325, allocations: 97.2 kB / 0.4946 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1328, allocations: 67.84 kB / 0.4946 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002354/0.1352, allocations: 2.014 MB / 0.4966 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.1354, allocations: 19.98 kB / 0.4966 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.1355, allocations: 16 kB / 0.4966 GB, free: 2.836 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.0002263/0.1357, allocations: 197.6 kB / 0.4968 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.1358, allocations: 47.59 kB / 0.4969 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005737/0.1364, allocations: 290 kB / 0.4971 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.1364, allocations: 4 kB / 0.4971 GB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1364, allocations: 4 kB / 0.4971 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1364, allocations: 3.984 kB / 0.4971 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.1374, allocations: 0.7649 MB / 0.4979 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1374, allocations: 0 / 0.4979 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.1377, allocations: 39.98 kB / 0.4979 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002176/0.1379, allocations: 48.8 kB / 0.498 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.1379, allocations: 8 kB / 0.498 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.1393, allocations: 1.551 MB / 0.4995 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1393, allocations: 0 / 0.4995 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007367/0.14, allocations: 0.4991 MB / 0.5 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1402, allocations: 132.6 kB / 0.5001 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.1402, allocations: 4 kB / 0.5001 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.1405, allocations: 15.98 kB / 0.5001 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.588e-05/0.1406, allocations: 27.97 kB / 0.5002 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.1406, allocations: 7.984 kB / 0.5002 GB, free: 14.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003121/0.1409, allocations: 287 kB / 0.5004 GB, free: 14.65 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1409, allocations: 0 / 0.5004 GB, free: 14.65 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005434/0.1415, allocations: 112 kB / 0.5005 GB, free: 14.54 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.0009244/0.1424, allocations: 392.8 kB / 0.5009 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008495/0.1432, allocations: 406.5 kB / 0.5013 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1433, allocations: 0 / 0.5013 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003802/0.1436, allocations: 251.3 kB / 0.5015 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.1443, allocations: 139.1 kB / 0.5017 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.1461, allocations: 1.12 MB / 0.5028 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.1467, allocations: 0.854 MB / 0.5036 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.911e-05/0.1468, allocations: 35.44 kB / 0.5036 GB, free: 11.27 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1468, allocations: 4 kB / 0.5036 GB, free: 11.27 MB / 398.1 MB Notification: Performance of Templates: time 0.01097/0.1578, allocations: 8.277 MB / 0.5117 GB, free: 2.969 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)