Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.Transmission.VoltageStability,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",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: 106.3 kB / 16.92 MB, free: 6.332 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.001742/0.001742, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.334/1.334, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1751/0.1751, allocations: 38.04 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.19 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08727/0.08857, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.VoltageStability): time 0.008977/0.09758, allocations: 8.924 MB / 465.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004761/0.1024, allocations: 3.037 MB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005834/0.103, allocations: 35.81 kB / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002528/0.1055, allocations: 1.073 MB / 470 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.1069, allocations: 0.6258 MB / 470.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.1086, allocations: 0.7288 MB / 471.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001902/0.1105, allocations: 1.625 MB / 473 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001316/0.1119, allocations: 0.9014 MB / 473.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.113, allocations: 0.7276 MB / 474.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.1144, allocations: 0.9346 MB / 475.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002589/0.1147, allocations: 104 kB / 475.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.1158, allocations: 455.3 kB / 476.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000644/0.1164, allocations: 0.6624 MB / 476.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008675/0.1173, allocations: 0.7114 MB / 477.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001748/0.119, allocations: 1.756 MB / 479.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1191, allocations: 0 / 479.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1191, allocations: 0 / 479.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.404e-05/0.1191, allocations: 0 / 479.3 MB, free: 1.57 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: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.003098/0.1222, allocations: 1.643 MB / 480.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1223, allocations: 11.89 kB / 480.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002413/0.1225, allocations: 198.4 kB / 481.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001686/0.1242, allocations: 275 kB / 481.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.1256, allocations: 0.8363 MB / 482.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.918e-05/0.1257, allocations: 90.66 kB / 482.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003191/0.126, allocations: 155.7 kB / 482.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002435/0.1285, allocations: 1.854 MB / 484.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.815e-05/0.1285, allocations: 7.938 kB / 484.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.1286, allocations: 55.98 kB / 484.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002972/0.1289, allocations: 102.1 kB / 484.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002345/0.1313, allocations: 1.491 MB / 486 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00825/0.1395, allocations: 8.292 MB / 494.3 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.1409, allocations: 1.17 MB / 495.4 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006315/0.1415, allocations: 484.2 kB / 495.9 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.867e-05/0.1416, allocations: 20.64 kB / 495.9 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.1416, allocations: 39.2 kB / 496 MB, free: 92 kB / 366.1 MB Notification: Performance of pre-optimization done (n=82): time 2.565e-06/0.1416, allocations: 4 kB / 496 MB, free: 88 kB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.003706/0.1453, allocations: 2.441 MB / 498.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.1454, allocations: 89.7 kB / 498.5 MB, free: 13.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008469/0.1463, allocations: 0.8173 MB / 499.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.1463, allocations: 41.7 kB / 499.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004386/0.1468, allocations: 0.6802 MB / 0.4883 GB, free: 11.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002383/0.147, allocations: 303.7 kB / 0.4886 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003231/0.1473, allocations: 251.3 kB / 0.4888 GB, free: 11.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1475, allocations: 418.8 kB / 0.4892 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000669/0.1482, allocations: 455.7 kB / 0.4897 GB, free: 10.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009665/0.1492, allocations: 1.001 MB / 0.4907 GB, free: 9.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/0.1509, allocations: 1.592 MB / 0.4922 GB, free: 7.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.151, allocations: 4 kB / 0.4922 GB, free: 7.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003005/0.154, allocations: 1.771 MB / 0.4939 GB, free: 5.605 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.154, allocations: 12 kB / 0.494 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001658/0.1557, allocations: 0.9968 MB / 0.4949 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008455/0.1565, allocations: 246.3 kB / 0.4952 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000994/0.1575, allocations: 311.5 kB / 0.4955 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/0.1619, allocations: 5.18 MB / 0.5005 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007907/0.1627, allocations: 51.89 kB / 0.5006 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.1628, allocations: 71.98 kB / 0.5006 GB, free: 14.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * 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 (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (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.0005675/0.1634, allocations: 429.1 kB / 0.501 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.1635, allocations: 102.7 kB / 0.5011 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.165, allocations: 0.9571 MB / 0.5021 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.1651, allocations: 11.94 kB / 0.5021 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1651, allocations: 0 / 0.5021 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.1651, allocations: 3.984 kB / 0.5021 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.1686, allocations: 2.123 MB / 0.5042 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.1687, allocations: 4 kB / 0.5042 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008825/0.1695, allocations: 183.8 kB / 0.5043 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.1696, allocations: 4 kB / 0.5043 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-05/0.1696, allocations: 27.98 kB / 0.5044 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.1696, allocations: 11.94 kB / 0.5044 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1697, allocations: 4.188 kB / 0.5044 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.1715, allocations: 1.404 MB / 0.5058 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.1717, allocations: 163.9 kB / 0.5059 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.1718, allocations: 20 kB / 0.5059 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/0.1723, allocations: 27.98 kB / 0.506 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.1724, allocations: 52.52 kB / 0.506 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.685e-05/0.1724, allocations: 24 kB / 0.506 GB, free: 8.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006251/0.1731, allocations: 0.5419 MB / 0.5066 GB, free: 8.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1731, allocations: 4 kB / 0.5066 GB, free: 8.078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00098/0.1741, allocations: 296 kB / 0.5069 GB, free: 7.789 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (line0.i[1],line0.i[2],line0.i[3],line1.i[1],line1.i[2],line1.i[3],line2.i[1],line2.i[2],line2.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 (86): * Single equations (assignments): 85 * Array equations: 0 * 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.001986/0.1761, allocations: 1.969 MB / 0.5088 GB, free: 5.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002685/0.1788, allocations: 1.754 MB / 0.5105 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1788, allocations: 0 / 0.5105 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00052/0.1793, allocations: 409.2 kB / 0.5109 GB, free: 3.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000853/0.1802, allocations: 190.1 kB / 0.5111 GB, free: 3.406 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1744/0.3545, allocations: 10.67 MB / 0.5215 GB, free: 66.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000727/0.3553, allocations: 1.249 MB / 0.5227 GB, free: 65.6 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001079/0.3564, allocations: 416.7 kB / 0.5231 GB, free: 65.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004956/0.3569, allocations: 467.3 kB / 0.5235 GB, free: 65.24 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3569, allocations: 0 / 0.5235 GB, free: 65.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04188/0.3988, allocations: 20.5 MB / 0.5436 GB, free: 55.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.51/9.909, allocations: 15.02 kB / 0.5436 GB, free: 55.51 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability_res.csv --start-time 0 --stop-time 180 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.18 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_VoltageStability.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.VoltageStability.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches