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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001107, allocations: 116.2 kB / 17.07 MB, free: 6 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.001304/0.001304, allocations: 198.9 kB / 18 MB, free: 5.078 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.376/1.376, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1818/0.1818, allocations: 37.99 MB / 309.2 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.001592/0.001592, allocations: 67.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1172, allocations: 55.25 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006937/0.1242, allocations: 4.494 MB / 491.1 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.1271, allocations: 1.462 MB / 492.6 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003219/0.1274, allocations: 15.88 kB / 492.6 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.1285, allocations: 302.6 kB / 492.9 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007445/0.1293, allocations: 270.7 kB / 493.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006942/0.13, allocations: 255.4 kB / 493.4 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008179/0.1308, allocations: 0.6626 MB / 494.1 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.1312, allocations: 244.2 kB / 494.3 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005359/0.1318, allocations: 310.9 kB / 494.6 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006368/0.1324, allocations: 402.8 kB / 495 MB, free: 420 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.1325, allocations: 44 kB / 495 MB, free: 376 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004409/0.133, allocations: 223.5 kB / 495.3 MB, free: 152 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.1333, allocations: 251.4 kB / 495.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000373/0.1336, allocations: 290.6 kB / 495.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008835/0.1345, allocations: 0.7477 MB / 496.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1346, allocations: 0 / 496.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1346, allocations: 3.938 kB / 496.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.934e-05/0.1346, allocations: 0 / 496.5 MB, free: 14.86 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.001562/0.1362, allocations: 0.8806 MB / 497.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1362, allocations: 15.89 kB / 497.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.1363, allocations: 98.67 kB / 497.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/0.1369, allocations: 92.23 kB / 497.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008217/0.1378, allocations: 439.8 kB / 498 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.332e-05/0.1378, allocations: 33.36 kB / 498.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.643e-05/0.1379, allocations: 47.92 kB / 498.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.1391, allocations: 0.8591 MB / 499 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.1391, allocations: 0 / 499 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.1392, allocations: 19.98 kB / 499 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.1393, allocations: 60.95 kB / 499.1 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.1404, allocations: 0.8001 MB / 499.9 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.1438, allocations: 2.721 MB / 0.4908 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007986/0.1446, allocations: 0.5759 MB / 0.4914 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005041/0.1451, allocations: 450.7 kB / 0.4918 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.1451, allocations: 8 kB / 0.4918 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.1452, allocations: 38.56 kB / 0.4918 GB, free: 7.418 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 1.933e-06/0.1452, allocations: 0 / 0.4918 GB, free: 7.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=57): time 0.002755/0.1479, allocations: 1.887 MB / 0.4937 GB, free: 5.492 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.059e-05/0.1481, allocations: 142.8 kB / 0.4938 GB, free: 5.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/0.1483, allocations: 300.3 kB / 0.4941 GB, free: 5.023 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.1484, allocations: 33.7 kB / 0.4941 GB, free: 4.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1485, allocations: 248.4 kB / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.1487, allocations: 193.2 kB / 0.4946 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.1489, allocations: 98.09 kB / 0.4947 GB, free: 4.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.149, allocations: 350.8 kB / 0.495 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004355/0.1495, allocations: 348.9 kB / 0.4953 GB, free: 3.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006177/0.1501, allocations: 485.8 kB / 0.4958 GB, free: 3.227 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001406/0.1515, allocations: 0.9875 MB / 0.4967 GB, free: 2.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1515, allocations: 4 kB / 0.4968 GB, free: 2.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001436/0.153, allocations: 0.9727 MB / 0.4977 GB, free: 1.176 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.998e-05/0.1531, allocations: 77.59 kB / 0.4978 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.1531, allocations: 4 kB / 0.4978 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002043/0.1533, allocations: 44.77 kB / 0.4978 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003378/0.1537, allocations: 80.42 kB / 0.4979 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.155, allocations: 1.567 MB / 0.4994 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.1554, allocations: 36.03 kB / 0.4995 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.076e-05/0.1554, allocations: 27.94 kB / 0.4995 GB, free: 15.2 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.0003612/0.1558, allocations: 299.2 kB / 0.4998 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.1559, allocations: 43.53 kB / 0.4998 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.1575, allocations: 1.08 MB / 0.5009 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/0.1575, allocations: 15.98 kB / 0.5009 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1575, allocations: 4 kB / 0.5009 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1575, allocations: 0 / 0.5009 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/0.1604, allocations: 1.788 MB / 0.5026 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/0.1604, allocations: 3.984 kB / 0.5026 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.1607, allocations: 51.91 kB / 0.5027 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00015/0.1609, allocations: 48.83 kB / 0.5027 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.881e-05/0.1609, allocations: 8 kB / 0.5027 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001417/0.1624, allocations: 1.551 MB / 0.5043 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1624, allocations: 0 / 0.5043 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.1642, allocations: 1.183 MB / 0.5054 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/0.1645, allocations: 176.5 kB / 0.5056 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.804e-05/0.1646, allocations: 12 kB / 0.5056 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.1649, allocations: 31.97 kB / 0.5056 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.165, allocations: 51.81 kB / 0.5057 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.597e-05/0.1651, allocations: 12 kB / 0.5057 GB, free: 8.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.1653, allocations: 203.1 kB / 0.5059 GB, free: 8.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1654, allocations: 0 / 0.5059 GB, free: 8.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006225/0.166, allocations: 140 kB / 0.506 GB, free: 8.219 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.002032/0.168, allocations: 1.774 MB / 0.5077 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.1702, allocations: 1.358 MB / 0.5091 GB, free: 5.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.1702, allocations: 0 / 0.5091 GB, free: 5.012 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.1713, allocations: 0.932 MB / 0.51 GB, free: 4.055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000627/0.1719, allocations: 77.36 kB / 0.5101 GB, free: 3.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008057/0.18, allocations: 5.882 MB / 0.5158 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.1806, allocations: 0.9015 MB / 0.5167 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002884/0.1809, allocations: 107.1 kB / 0.5168 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.1811, allocations: 155.4 kB / 0.5169 GB, free: 12.68 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1811, allocations: 0 / 0.5169 GB, free: 12.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03391/0.215, allocations: 10.44 MB / 0.5271 GB, free: 2.184 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.08, allocations: 4.062 kB / 0.5271 GB, free: 2.18 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)