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.001554/0.001554, allocations: 111.8 kB / 17.06 MB, free: 6.09 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.001885/0.001885, allocations: 199 kB / 18 MB, free: 5.168 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.409/1.409, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1725/0.1725, allocations: 37.98 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.002356/0.002356, allocations: 63.89 kB / 431.4 MB, free: 16.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1126, allocations: 55.25 MB / 486.6 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005532/0.1181, allocations: 4.502 MB / 491.1 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.1204, allocations: 1.462 MB / 492.6 MB, free: 2.949 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.1207, allocations: 15.88 kB / 492.6 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.1218, allocations: 294.6 kB / 492.9 MB, free: 2.645 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008354/0.1227, allocations: 278.6 kB / 493.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008053/0.1235, allocations: 255.4 kB / 493.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.1245, allocations: 0.6665 MB / 494.1 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005211/0.1251, allocations: 240.2 kB / 494.3 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005397/0.1256, allocations: 306.9 kB / 494.6 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006342/0.1263, allocations: 406.8 kB / 495 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.1264, allocations: 48 kB / 495 MB, free: 484 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004322/0.1268, allocations: 219.5 kB / 495.3 MB, free: 264 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.1271, allocations: 251.4 kB / 495.5 MB, free: 12 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003794/0.1275, allocations: 286.7 kB / 495.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008716/0.1284, allocations: 0.7553 MB / 496.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1284, allocations: 0 / 496.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1284, allocations: 0 / 496.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1284, allocations: 0 / 496.5 MB, free: 14.97 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.001633/0.13, allocations: 0.8844 MB / 497.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1301, allocations: 15.89 kB / 497.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.1302, allocations: 98.69 kB / 497.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005329/0.1308, allocations: 88.22 kB / 497.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006899/0.1315, allocations: 443.8 kB / 498.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.843e-05/0.1315, allocations: 29.36 kB / 498.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.077e-05/0.1316, allocations: 43.94 kB / 498.1 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.1327, allocations: 0.8629 MB / 499 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1327, allocations: 0 / 499 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.133e-05/0.1328, allocations: 23.94 kB / 499 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/0.1329, allocations: 56.95 kB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.134, allocations: 0.7962 MB / 499.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00331/0.1373, allocations: 2.721 MB / 0.4908 GB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000852/0.1382, allocations: 0.5797 MB / 0.4914 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005221/0.1387, allocations: 450.7 kB / 0.4918 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-05/0.1387, allocations: 8 kB / 0.4918 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.1388, allocations: 38.56 kB / 0.4918 GB, free: 7.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.194e-06/0.1388, allocations: 0 / 0.4918 GB, free: 7.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=57): time 0.002778/0.1416, allocations: 1.883 MB / 0.4937 GB, free: 5.605 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.026e-05/0.1417, allocations: 146.8 kB / 0.4938 GB, free: 5.438 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002616/0.142, allocations: 296.3 kB / 0.4941 GB, free: 5.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.142, allocations: 33.7 kB / 0.4941 GB, free: 5.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.1421, allocations: 248.4 kB / 0.4944 GB, free: 4.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.1423, allocations: 189.2 kB / 0.4946 GB, free: 4.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.1424, allocations: 106.1 kB / 0.4947 GB, free: 4.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1426, allocations: 354.8 kB / 0.495 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004143/0.143, allocations: 340.9 kB / 0.4953 GB, free: 3.867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000511/0.1435, allocations: 493.7 kB / 0.4958 GB, free: 3.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.1446, allocations: 0.976 MB / 0.4967 GB, free: 2.285 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1446, allocations: 3.938 kB / 0.4967 GB, free: 2.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001313/0.1459, allocations: 0.9805 MB / 0.4977 GB, free: 1.285 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.746e-05/0.146, allocations: 77.59 kB / 0.4978 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.146, allocations: 4 kB / 0.4978 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.1462, allocations: 44.77 kB / 0.4978 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003395/0.1466, allocations: 84.42 kB / 0.4979 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.148, allocations: 1.551 MB / 0.4994 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.1483, allocations: 36.02 kB / 0.4995 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-05/0.1484, allocations: 27.94 kB / 0.4995 GB, free: 15.31 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.0003519/0.1487, allocations: 307.2 kB / 0.4998 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.1488, allocations: 39.53 kB / 0.4998 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.1503, allocations: 1.076 MB / 0.5009 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/0.1504, allocations: 12 kB / 0.5009 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1504, allocations: 4 kB / 0.5009 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1504, allocations: 3.984 kB / 0.5009 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002449/0.1529, allocations: 1.796 MB / 0.5026 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1529, allocations: 0 / 0.5026 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.1531, allocations: 51.95 kB / 0.5027 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001068/0.1533, allocations: 40.91 kB / 0.5027 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.345e-05/0.1533, allocations: 15.98 kB / 0.5027 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.1544, allocations: 1.555 MB / 0.5043 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.1544, allocations: 7.969 kB / 0.5043 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.1559, allocations: 1.183 MB / 0.5054 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002675/0.1562, allocations: 172.5 kB / 0.5056 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/0.1562, allocations: 12 kB / 0.5056 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.1565, allocations: 27.97 kB / 0.5056 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.1566, allocations: 43.89 kB / 0.5057 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.1567, allocations: 19.98 kB / 0.5057 GB, free: 8.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001896/0.1569, allocations: 203.1 kB / 0.5059 GB, free: 8.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1569, allocations: 0 / 0.5059 GB, free: 8.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005625/0.1574, allocations: 140 kB / 0.506 GB, free: 8.328 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.001845/0.1593, allocations: 1.77 MB / 0.5077 GB, free: 6.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.1609, allocations: 1.366 MB / 0.5091 GB, free: 5.117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.161, allocations: 0 / 0.5091 GB, free: 5.117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009325/0.1619, allocations: 0.9281 MB / 0.51 GB, free: 4.164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.1624, allocations: 76.91 kB / 0.5101 GB, free: 4.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007197/0.1696, allocations: 5.878 MB / 0.5158 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/0.1702, allocations: 0.9131 MB / 0.5167 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003011/0.1706, allocations: 99.2 kB / 0.5168 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002314/0.1708, allocations: 159.4 kB / 0.5169 GB, free: 12.79 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1708, allocations: 0 / 0.5169 GB, free: 12.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.2005, allocations: 10.43 MB / 0.5271 GB, free: 2.301 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.699/9.899, allocations: 11.88 kB / 0.5271 GB, free: 2.289 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)