Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009947/0.0009949, allocations: 175.6 kB / 15.77 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.4 MB / 221.9 MB, free: 13.68 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001166/0.001166, allocations: 82.31 kB / 270.3 MB, free: 13.21 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.186/0.186, allocations: 38.05 MB / 356.6 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.000366, allocations: 8 kB / 422.7 MB, free: 26.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1028, allocations: 56.34 MB / 479.1 MB, free: 1.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.004744/0.1076, allocations: 4.536 MB / 483.6 MB, free: 13.43 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.1099, allocations: 1.548 MB / 485.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.1102, allocations: 27.81 kB / 485.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002568/0.1105, allocations: 83.39 kB / 485.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007118/0.1112, allocations: 298.6 kB / 485.5 MB, free: 11.47 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006755/0.1119, allocations: 239.6 kB / 485.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007216/0.1126, allocations: 0.7911 MB / 486.6 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006615/0.1133, allocations: 383.5 kB / 486.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000323/0.1136, allocations: 247 kB / 487.2 MB, free: 9.809 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005629/0.1142, allocations: 414.9 kB / 487.6 MB, free: 9.402 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.404e-05/0.1143, allocations: 24 kB / 487.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003403/0.1146, allocations: 163.7 kB / 487.8 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.1148, allocations: 227.5 kB / 488 MB, free: 8.996 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.115, allocations: 125.4 kB / 488.1 MB, free: 8.867 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005079/0.1155, allocations: 0.5338 MB / 488.7 MB, free: 8.332 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1155, allocations: 4 kB / 488.7 MB, free: 8.328 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1155, allocations: 0 / 488.7 MB, free: 8.328 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1155, allocations: 0 / 488.7 MB, free: 8.328 MB / 330.7 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.001331/0.1169, allocations: 0.787 MB / 489.4 MB, free: 7.488 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.1169, allocations: 12.03 kB / 489.5 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005315/0.1174, allocations: 99.08 kB / 489.6 MB, free: 7.379 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.118, allocations: 418.8 kB / 490 MB, free: 6.922 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.1181, allocations: 25 kB / 490 MB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-05/0.1182, allocations: 39.98 kB / 490 MB, free: 6.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.1193, allocations: 0.8629 MB / 490.9 MB, free: 5.957 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1194, allocations: 0 / 490.9 MB, free: 5.957 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/0.1194, allocations: 23.98 kB / 490.9 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/0.1196, allocations: 56.95 kB / 491 MB, free: 5.875 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.1206, allocations: 0.8001 MB / 491.8 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003288/0.1239, allocations: 2.733 MB / 494.5 MB, free: 2.195 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007877/0.1247, allocations: 0.5798 MB / 495.1 MB, free: 1.598 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004908/0.1252, allocations: 450.7 kB / 495.5 MB, free: 1.152 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.1253, allocations: 7.984 kB / 495.5 MB, free: 1.145 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.1253, allocations: 42.81 kB / 495.6 MB, free: 1.094 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 1.913e-06/0.1253, allocations: 0 / 495.6 MB, free: 1.094 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.002842/0.1282, allocations: 1.891 MB / 497.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.021e-05/0.1283, allocations: 142.8 kB / 497.6 MB, free: 15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.1286, allocations: 288.5 kB / 497.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.1286, allocations: 33.7 kB / 497.9 MB, free: 14.67 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.1288, allocations: 260.2 kB / 498.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.1289, allocations: 181.3 kB / 498.4 MB, free: 14.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.1289, allocations: 12 kB / 498.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1291, allocations: 350.8 kB / 498.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004218/0.1295, allocations: 348.9 kB / 499 MB, free: 13.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005038/0.13, allocations: 481.7 kB / 499.5 MB, free: 13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005679/0.1306, allocations: 468.5 kB / 500 MB, free: 12.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1306, allocations: 4 kB / 500 MB, free: 12.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001283/0.1319, allocations: 0.9805 MB / 0.4892 GB, free: 11.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.072e-05/0.132, allocations: 73.66 kB / 0.4893 GB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.132, allocations: 4 kB / 0.4893 GB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.1322, allocations: 40.83 kB / 0.4893 GB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.1325, allocations: 83.89 kB / 0.4894 GB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.1337, allocations: 1.449 MB / 0.4908 GB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.134, allocations: 35.97 kB / 0.4909 GB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.638e-05/0.1341, allocations: 20 kB / 0.4909 GB, free: 9.688 MB / 346.7 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[1],voltage.h_mod3[2],voltage.h_mod3[3],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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000374/0.1345, allocations: 315.2 kB / 0.4912 GB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.1346, allocations: 47.44 kB / 0.4912 GB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.1363, allocations: 1.072 MB / 0.4923 GB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/0.1363, allocations: 8 kB / 0.4923 GB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1363, allocations: 3.938 kB / 0.4923 GB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.1364, allocations: 15.94 kB / 0.4923 GB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002751/0.1391, allocations: 1.792 MB / 0.494 GB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1391, allocations: 0 / 0.494 GB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003156/0.1395, allocations: 55.89 kB / 0.4941 GB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001278/0.1396, allocations: 36.84 kB / 0.4941 GB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.047e-05/0.1397, allocations: 24.03 kB / 0.4942 GB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/0.141, allocations: 1.433 MB / 0.4956 GB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.141, allocations: 8.094 kB / 0.4956 GB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.1427, allocations: 1.171 MB / 0.4967 GB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.1429, allocations: 172.6 kB / 0.4969 GB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.727e-05/0.143, allocations: 8 kB / 0.4969 GB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.1432, allocations: 31.97 kB / 0.4969 GB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.1433, allocations: 47.89 kB / 0.497 GB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.446e-05/0.1434, allocations: 16 kB / 0.497 GB, free: 3.145 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000179/0.1436, allocations: 199.1 kB / 0.4972 GB, free: 2.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1436, allocations: 0 / 0.4972 GB, free: 2.953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005237/0.1441, allocations: 147.9 kB / 0.4973 GB, free: 2.809 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002156/0.1443, allocations: 131.2 kB / 0.4974 GB, free: 2.672 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.146, allocations: 1.362 MB / 0.4988 GB, free: 1.285 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.146, allocations: 1.125 kB / 0.4988 GB, free: 1.285 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000945/0.1469, allocations: 0.9375 MB / 0.4997 GB, free: 332 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.1475, allocations: 61.06 kB / 0.4997 GB, free: 268 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.1495, allocations: 1.655 MB / 0.5013 GB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.1499, allocations: 0.9093 MB / 0.5022 GB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.15, allocations: 31.42 kB / 0.5023 GB, free: 13.6 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.15, allocations: 4 kB / 0.5023 GB, free: 13.6 MB / 362.7 MB Notification: Performance of Templates: time 0.01681/0.1668, allocations: 8.346 MB / 0.5104 GB, free: 5.242 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)