Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",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.001057/0.001057, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001042/0.001042, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1849/0.1849, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 64.67 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/0.09197, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.005916/0.09792, allocations: 4.408 MB / 461.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1003, allocations: 1.523 MB / 462.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000329/0.1007, allocations: 15.88 kB / 462.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.1017, allocations: 286.2 kB / 463.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008373/0.1026, allocations: 286.7 kB / 463.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007179/0.1033, allocations: 247.4 kB / 463.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006554/0.104, allocations: 0.604 MB / 464.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003673/0.1043, allocations: 223.8 kB / 464.5 MB, free: 364 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003868/0.1047, allocations: 263 kB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005373/0.1053, allocations: 378.8 kB / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.696e-05/0.1054, allocations: 36 kB / 465.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000454/0.1058, allocations: 235.6 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002092/0.106, allocations: 235.4 kB / 465.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003122/0.1064, allocations: 254.8 kB / 465.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006695/0.107, allocations: 0.6542 MB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1071, allocations: 0 / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1071, allocations: 0 / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.1071, allocations: 0 / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001376/0.1085, allocations: 0.7738 MB / 467.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.1085, allocations: 11.89 kB / 467.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.478e-05/0.1086, allocations: 86.7 kB / 467.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006351/0.1093, allocations: 92.2 kB / 467.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005815/0.1099, allocations: 403.2 kB / 467.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.1099, allocations: 25.31 kB / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.11, allocations: 51.92 kB / 468 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009393/0.111, allocations: 0.6915 MB / 468.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.111, allocations: 0 / 468.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.1111, allocations: 23.97 kB / 468.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000215/0.1113, allocations: 68.94 kB / 468.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009686/0.1123, allocations: 0.6674 MB / 469.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003368/0.1156, allocations: 2.658 MB / 472.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000502/0.1162, allocations: 317.3 kB / 472.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.1164, allocations: 197.7 kB / 472.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.1165, allocations: 11.98 kB / 472.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.1165, allocations: 38.56 kB / 472.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.966e-06/0.1165, allocations: 3.938 kB / 472.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002007/0.1185, allocations: 1.294 MB / 473.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.1186, allocations: 81.11 kB / 474 MB, free: 6.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000269/0.1189, allocations: 291.2 kB / 474.3 MB, free: 6.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.1189, allocations: 37.83 kB / 474.3 MB, free: 6.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.1191, allocations: 247.7 kB / 474.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/0.1192, allocations: 145.9 kB / 474.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.1193, allocations: 82.03 kB / 474.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1194, allocations: 350.8 kB / 475.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002579/0.1197, allocations: 184.9 kB / 475.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.12, allocations: 329.2 kB / 475.7 MB, free: 4.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006412/0.1206, allocations: 0.5623 MB / 476.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1207, allocations: 0 / 476.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001216/0.1219, allocations: 0.6819 MB / 476.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.1219, allocations: 8 kB / 476.9 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008309/0.1228, allocations: 483.5 kB / 477.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004377/0.1232, allocations: 117.9 kB / 477.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.1235, allocations: 83.83 kB / 477.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00286/0.1264, allocations: 3.266 MB / 480.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.1266, allocations: 19.98 kB / 480.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.1267, allocations: 20 kB / 480.9 MB, free: 15.14 MB / 366.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: 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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000237/0.1269, allocations: 201.9 kB / 481.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.1271, allocations: 47.58 kB / 481.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007192/0.1278, allocations: 465.1 kB / 481.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/0.1278, allocations: 19.98 kB / 481.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1278, allocations: 3.938 kB / 481.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1279, allocations: 0 / 481.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.1293, allocations: 1.021 MB / 482.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.1293, allocations: 4 kB / 482.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003487/0.1297, allocations: 67.83 kB / 482.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.1297, allocations: 7.938 kB / 482.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.1297, allocations: 8 kB / 482.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.1298, allocations: 0 / 482.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1298, allocations: 0 / 482.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.1308, allocations: 0.7435 MB / 483.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.131, allocations: 144.6 kB / 483.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.895e-05/0.131, allocations: 8 kB / 483.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.1312, allocations: 15.98 kB / 483.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.76e-05/0.1313, allocations: 15.97 kB / 483.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.1313, allocations: 16 kB / 483.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002103/0.1316, allocations: 211.1 kB / 483.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1316, allocations: 0 / 483.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005732/0.1321, allocations: 115.9 kB / 484 MB, free: 11.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001432/0.1336, allocations: 1.328 MB / 485.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.1348, allocations: 0.7914 MB / 486.1 MB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1348, allocations: 0 / 486.1 MB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.1351, allocations: 217.4 kB / 486.3 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.1356, allocations: 56.06 kB / 486.4 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005824/0.1414, allocations: 4.392 MB / 490.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.1419, allocations: 0.8704 MB / 491.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002995/0.1422, allocations: 111.2 kB / 491.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.1424, allocations: 147.4 kB / 491.9 MB, free: 3.73 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1425, allocations: 0 / 491.9 MB, free: 3.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02838/0.1708, allocations: 7.955 MB / 499.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.319/9.49, allocations: 0 / 499.8 MB, free: 11.86 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)