Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.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.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 110.9 kB / 17.74 MB, free: 5.348 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.001108/0.001108, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.369/1.369, 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.1792/0.1792, allocations: 37.98 MB / 309.9 MB, free: 5.965 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.001512/0.001512, allocations: 71.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.0918, allocations: 55.24 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006099/0.09793, allocations: 4.515 MB / 492.3 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.1005, allocations: 1.457 MB / 493.8 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003154/0.1009, allocations: 15.88 kB / 493.8 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009424/0.1018, allocations: 286.7 kB / 494 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007098/0.1026, allocations: 286.6 kB / 494.3 MB, free: 1.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007626/0.1033, allocations: 255.4 kB / 494.6 MB, free: 1.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000866/0.1042, allocations: 0.6626 MB / 495.2 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004129/0.1046, allocations: 244.2 kB / 495.5 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005102/0.1052, allocations: 302.9 kB / 495.8 MB, free: 328 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000666/0.1058, allocations: 414.8 kB / 496.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.106, allocations: 44 kB / 496.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004298/0.1064, allocations: 223.6 kB / 496.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.1067, allocations: 251.3 kB / 496.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003247/0.107, allocations: 286.6 kB / 497 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008067/0.1078, allocations: 0.7438 MB / 497.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1078, allocations: 4 kB / 497.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1078, allocations: 4 kB / 497.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.1079, allocations: 0 / 497.7 MB, free: 14.37 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001687/0.1096, allocations: 0.8844 MB / 498.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.1096, allocations: 11.89 kB / 498.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005788/0.1102, allocations: 92.22 kB / 498.7 MB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006476/0.1108, allocations: 435.9 kB / 499.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.217e-05/0.1109, allocations: 37.36 kB / 499.2 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.153e-05/0.111, allocations: 44.06 kB / 499.2 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.1122, allocations: 0.859 MB / 0.4883 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.1122, allocations: 4 kB / 0.4884 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.529e-05/0.1123, allocations: 20 kB / 0.4884 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/0.1124, allocations: 56.95 kB / 0.4884 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1136, allocations: 0.7924 MB / 0.4892 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.1171, allocations: 2.714 MB / 0.4918 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008482/0.118, allocations: 0.5798 MB / 0.4924 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.1185, allocations: 462.7 kB / 0.4929 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.387e-05/0.1185, allocations: 7.984 kB / 0.4929 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.1186, allocations: 42.5 kB / 0.4929 GB, free: 7.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 1.954e-06/0.1186, allocations: 0 / 0.4929 GB, free: 7.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=57): time 0.002719/0.1213, allocations: 1.887 MB / 0.4947 GB, free: 5.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.702e-05/0.1214, allocations: 134.8 kB / 0.4949 GB, free: 4.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002754/0.1217, allocations: 300.5 kB / 0.4952 GB, free: 4.645 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.1217, allocations: 33.7 kB / 0.4952 GB, free: 4.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1219, allocations: 256.3 kB / 0.4954 GB, free: 4.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.122, allocations: 193.2 kB / 0.4956 GB, free: 4.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.1222, allocations: 98.11 kB / 0.4957 GB, free: 4.059 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1224, allocations: 354.7 kB / 0.4961 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004408/0.1228, allocations: 340.9 kB / 0.4964 GB, free: 3.371 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005189/0.1233, allocations: 489.8 kB / 0.4968 GB, free: 2.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.1245, allocations: 0.9799 MB / 0.4978 GB, free: 1.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.1245, allocations: 4 kB / 0.4978 GB, free: 1.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001386/0.1259, allocations: 0.9848 MB / 0.4988 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.062e-05/0.126, allocations: 77.59 kB / 0.4988 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.126, allocations: 4 kB / 0.4988 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000197/0.1262, allocations: 36.84 kB / 0.4989 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003359/0.1265, allocations: 91.81 kB / 0.499 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.1278, allocations: 1.551 MB / 0.5005 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.1281, allocations: 27.97 kB / 0.5005 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.939e-05/0.1282, allocations: 31.98 kB / 0.5005 GB, free: 14.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003584/0.1285, allocations: 307.2 kB / 0.5008 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.1287, allocations: 47.52 kB / 0.5009 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/0.1301, allocations: 1.072 MB / 0.5019 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/0.1302, allocations: 12 kB / 0.5019 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1302, allocations: 0 / 0.5019 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1302, allocations: 4.125 kB / 0.5019 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.1326, allocations: 1.796 MB / 0.5037 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.1326, allocations: 0 / 0.5037 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/0.1329, allocations: 59.89 kB / 0.5038 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.133, allocations: 32.84 kB / 0.5038 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.118e-05/0.133, allocations: 15.98 kB / 0.5038 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.1342, allocations: 1.555 MB / 0.5053 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1342, allocations: 4 kB / 0.5053 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.1357, allocations: 1.175 MB / 0.5065 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.1359, allocations: 172.5 kB / 0.5066 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.403e-05/0.136, allocations: 15.98 kB / 0.5066 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.1363, allocations: 27.97 kB / 0.5067 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.1364, allocations: 43.89 kB / 0.5067 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.892e-05/0.1365, allocations: 27.92 kB / 0.5067 GB, free: 8.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.1367, allocations: 203.1 kB / 0.5069 GB, free: 7.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1367, allocations: 0 / 0.5069 GB, free: 7.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005507/0.1372, allocations: 136 kB / 0.5071 GB, free: 7.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * 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.0002589/0.1375, allocations: 151.3 kB / 0.5072 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.1393, allocations: 1.371 MB / 0.5085 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.1393, allocations: 0 / 0.5085 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.1404, allocations: 0.9165 MB / 0.5094 GB, free: 5.344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.141, allocations: 77.41 kB / 0.5095 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.1432, allocations: 1.438 MB / 0.5109 GB, free: 3.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.1437, allocations: 0.9015 MB / 0.5118 GB, free: 2.852 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.1439, allocations: 35.42 kB / 0.5118 GB, free: 2.82 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1439, allocations: 0 / 0.5118 GB, free: 2.82 MB / 398.1 MB Notification: Performance of Templates: time 0.01192/0.1558, allocations: 8.557 MB / 0.5202 GB, free: 10.25 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)