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.00146/0.00146, allocations: 113.9 kB / 17.06 MB, free: 6.004 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.001815/0.001816, allocations: 200 kB / 18 MB, free: 5.082 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.44/1.44, allocations: 205.1 MB / 223.9 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.1731/0.1731, allocations: 37.99 MB / 309.2 MB, free: 5.945 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.001438/0.001438, allocations: 67.91 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.1006, allocations: 55.24 MB / 487.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007523/0.1082, allocations: 5.157 MB / 492.3 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003736/0.1119, allocations: 1.948 MB / 494.2 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005039/0.1125, allocations: 15.88 kB / 494.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007414/0.1132, allocations: 150.9 kB / 494.4 MB, free: 1.031 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.001053/0.1143, allocations: 354.4 kB / 494.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.1149, allocations: 203.6 kB / 494.9 MB, free: 496 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.116, allocations: 0.6967 MB / 495.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006356/0.1166, allocations: 434.4 kB / 496 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007609/0.1174, allocations: 302.8 kB / 496.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006695/0.1181, allocations: 278.9 kB / 496.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.1182, allocations: 52 kB / 496.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003372/0.1186, allocations: 95.91 kB / 496.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.1188, allocations: 151.5 kB / 496.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000375/0.1192, allocations: 270.7 kB / 497.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000898/0.1201, allocations: 0.6462 MB / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1201, allocations: 0 / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1201, allocations: 0 / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.121e-05/0.1201, allocations: 0 / 497.8 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.001755/0.1219, allocations: 0.8351 MB / 498.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.1219, allocations: 11.89 kB / 498.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.1221, allocations: 60.28 kB / 498.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007817/0.1229, allocations: 490.1 kB / 499.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.1229, allocations: 32.98 kB / 499.2 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.637e-05/0.123, allocations: 39.91 kB / 499.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/0.1237, allocations: 461.1 kB / 499.7 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.1237, allocations: 7.938 kB / 499.7 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.1238, allocations: 16 kB / 499.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1238, allocations: 8 kB / 499.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.1243, allocations: 278.3 kB / 0.4883 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002323/0.1266, allocations: 1.851 MB / 0.4901 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005087/0.1271, allocations: 255.6 kB / 0.4904 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.1273, allocations: 86.98 kB / 0.4904 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.1273, allocations: 7.922 kB / 0.4904 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.1276, allocations: 173.7 kB / 0.4906 GB, free: 8.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.1276, allocations: 4 kB / 0.4906 GB, free: 8.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001689/0.1293, allocations: 0.9089 MB / 0.4915 GB, free: 7.742 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.706e-05/0.1294, allocations: 140.3 kB / 0.4916 GB, free: 7.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004428/0.1298, allocations: 398.2 kB / 0.492 GB, free: 7.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.1299, allocations: 37.7 kB / 0.492 GB, free: 7.133 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.1301, allocations: 263.6 kB / 0.4923 GB, free: 6.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.1301, allocations: 94.73 kB / 0.4924 GB, free: 6.777 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.1303, allocations: 69.69 kB / 0.4925 GB, free: 6.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1304, allocations: 350.8 kB / 0.4928 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.1306, allocations: 83.95 kB / 0.4929 GB, free: 6.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.1308, allocations: 220.1 kB / 0.4931 GB, free: 5.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003913/0.1312, allocations: 307.2 kB / 0.4934 GB, free: 5.641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1313, allocations: 4 kB / 0.4934 GB, free: 5.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000862/0.1321, allocations: 441.6 kB / 0.4938 GB, free: 5.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1322, allocations: 8 kB / 0.4938 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1322, allocations: 4 kB / 0.4938 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.1326, allocations: 92.77 kB / 0.4939 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.1329, allocations: 67.84 kB / 0.494 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.1353, allocations: 2.01 MB / 0.4959 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.1355, allocations: 20.05 kB / 0.4959 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.1356, allocations: 20 kB / 0.496 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.000228/0.1358, allocations: 197.6 kB / 0.4962 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.26e-05/0.1359, allocations: 39.53 kB / 0.4962 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005848/0.1365, allocations: 290 kB / 0.4965 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.1365, allocations: 4 kB / 0.4965 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.1365, allocations: 11.94 kB / 0.4965 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1365, allocations: 0 / 0.4965 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.1376, allocations: 0.765 MB / 0.4972 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1376, allocations: 4 kB / 0.4972 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002456/0.1378, allocations: 39.97 kB / 0.4973 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000206/0.1381, allocations: 48.81 kB / 0.4973 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.1381, allocations: 12 kB / 0.4973 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.1394, allocations: 1.543 MB / 0.4988 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1394, allocations: 4.031 kB / 0.4988 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007381/0.1402, allocations: 0.4991 MB / 0.4993 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.1403, allocations: 124.7 kB / 0.4994 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.026e-05/0.1404, allocations: 8 kB / 0.4995 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.1406, allocations: 19.92 kB / 0.4995 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.974e-05/0.1407, allocations: 23.97 kB / 0.4995 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.1407, allocations: 7.938 kB / 0.4995 GB, free: 14.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003145/0.1411, allocations: 287.1 kB / 0.4998 GB, free: 14.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1411, allocations: 0 / 0.4998 GB, free: 14.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005434/0.1416, allocations: 108 kB / 0.4999 GB, free: 14.55 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.001027/0.1427, allocations: 396.9 kB / 0.5003 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009438/0.1436, allocations: 407 kB / 0.5006 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.1436, allocations: 0 / 0.5006 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004031/0.144, allocations: 254.5 kB / 0.5009 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.0006864/0.1447, allocations: 135.4 kB / 0.501 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.1465, allocations: 1.08 MB / 0.5021 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.147, allocations: 0.8618 MB / 0.5029 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002052/0.1472, allocations: 59.36 kB / 0.503 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.157e-05/0.1473, allocations: 39.42 kB / 0.503 GB, free: 11.25 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.1473, allocations: 0 / 0.503 GB, free: 11.25 MB / 398.1 MB Notification: Performance of Templates: time 0.01445/0.1618, allocations: 6.399 MB / 0.5093 GB, free: 4.844 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)