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.001163/0.001169, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001306/0.001306, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.413/1.413, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1795/0.1795, allocations: 37.99 MB / 309.9 MB, free: 5.961 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.001411/0.001411, allocations: 63.91 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1026, allocations: 55.25 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007456/0.1101, allocations: 5.161 MB / 492.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003349/0.1135, allocations: 1.944 MB / 494.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004119/0.114, allocations: 19.88 kB / 494.9 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000553/0.1145, allocations: 146.9 kB / 495.1 MB, free: 1.043 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.0009807/0.1155, allocations: 365.9 kB / 495.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004795/0.116, allocations: 192.1 kB / 495.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008359/0.1169, allocations: 0.6967 MB / 496.3 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004982/0.1174, allocations: 442.4 kB / 496.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004145/0.1178, allocations: 298.8 kB / 497 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000368/0.1182, allocations: 282.9 kB / 497.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.432e-05/0.1183, allocations: 55.98 kB / 497.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1185, allocations: 99.91 kB / 497.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.1186, allocations: 143.6 kB / 497.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002757/0.1189, allocations: 266.7 kB / 497.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007061/0.1196, allocations: 0.6541 MB / 498.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1197, allocations: 0 / 498.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1197, allocations: 0 / 498.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1197, allocations: 0 / 498.5 MB, free: 13.58 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.001538/0.1212, allocations: 0.8352 MB / 499.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1213, allocations: 11.89 kB / 499.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.1214, allocations: 56.28 kB / 499.4 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007863/0.1222, allocations: 498.1 kB / 499.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.1222, allocations: 29 kB / 499.9 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.774e-05/0.1223, allocations: 39.91 kB / 500 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006691/0.123, allocations: 457.1 kB / 0.4887 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.123, allocations: 4 kB / 0.4887 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.123, allocations: 12 kB / 0.4887 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.1231, allocations: 15.98 kB / 0.4887 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004619/0.1235, allocations: 278.3 kB / 0.489 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.1257, allocations: 1.847 MB / 0.4908 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004724/0.1262, allocations: 247.6 kB / 0.491 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.1263, allocations: 87.03 kB / 0.4911 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.1264, allocations: 7.938 kB / 0.4911 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002627/0.1266, allocations: 169.7 kB / 0.4913 GB, free: 8.734 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.1267, allocations: 4 kB / 0.4913 GB, free: 8.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001672/0.1283, allocations: 0.905 MB / 0.4922 GB, free: 7.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.394e-05/0.1284, allocations: 140.4 kB / 0.4923 GB, free: 7.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004468/0.1289, allocations: 398.2 kB / 0.4927 GB, free: 7.199 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.1289, allocations: 33.7 kB / 0.4927 GB, free: 7.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.1291, allocations: 263.8 kB / 0.4929 GB, free: 6.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.129e-05/0.1292, allocations: 98.64 kB / 0.493 GB, free: 6.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.1293, allocations: 69.62 kB / 0.4931 GB, free: 6.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1295, allocations: 350.8 kB / 0.4934 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.1296, allocations: 87.89 kB / 0.4935 GB, free: 6.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.1299, allocations: 220.1 kB / 0.4937 GB, free: 6.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/0.1303, allocations: 307.2 kB / 0.494 GB, free: 5.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1303, allocations: 8 kB / 0.494 GB, free: 5.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008659/0.1312, allocations: 437.6 kB / 0.4945 GB, free: 5.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1312, allocations: 8 kB / 0.4945 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.1312, allocations: 4 kB / 0.4945 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004333/0.1317, allocations: 88.77 kB / 0.4946 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.1319, allocations: 71.89 kB / 0.4946 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/0.1344, allocations: 2.01 MB / 0.4966 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.1346, allocations: 32.05 kB / 0.4966 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.1347, allocations: 12 kB / 0.4966 GB, free: 2.852 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.0002384/0.1349, allocations: 197.6 kB / 0.4968 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.056e-05/0.135, allocations: 39.53 kB / 0.4969 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005864/0.1356, allocations: 294 kB / 0.4971 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1356, allocations: 3.938 kB / 0.4971 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1356, allocations: 4 kB / 0.4971 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.1358, allocations: 128.6 kB / 0.4973 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.957e-05/0.1358, allocations: 7.984 kB / 0.4973 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.136, allocations: 12 kB / 0.4973 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.1361, allocations: 27.91 kB / 0.4973 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009273/0.137, allocations: 0.5312 MB / 0.4978 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006579/0.1377, allocations: 0.6812 MB / 0.4985 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001611/0.1379, allocations: 107.8 kB / 0.4986 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003068/0.1382, allocations: 279.1 kB / 0.4989 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of Backend: time 5.01e-07/0.1382, allocations: 0 / 0.4989 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002153/0.1404, allocations: 0.7488 MB / 0.4996 GB, free: 15.72 MB / 398.1 MB Notification: Performance of SimCode: time 0.002378/0.1427, allocations: 1.598 MB / 0.5012 GB, free: 14.07 MB / 398.1 MB Notification: Performance of Templates: time 0.01256/0.1553, allocations: 6.603 MB / 0.5076 GB, free: 7.461 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)