Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.001596/0.001596, allocations: 105.4 kB / 16.92 MB, free: 5.781 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.001744/0.001744, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.324/1.324, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1744/0.1744, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002289/0.002289, allocations: 64.97 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1426, allocations: 58.07 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.009502/0.1521, allocations: 4.697 MB / 461.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003319/0.1555, allocations: 1.348 MB / 463 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003118/0.1558, allocations: 11.94 kB / 463 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001632/0.1574, allocations: 410.3 kB / 463.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008671/0.1583, allocations: 230.8 kB / 463.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007382/0.1591, allocations: 187.5 kB / 463.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009303/0.16, allocations: 0.5451 MB / 464.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007645/0.1608, allocations: 345.8 kB / 464.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005753/0.1614, allocations: 250.9 kB / 465 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007138/0.1621, allocations: 279.1 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.242e-05/0.1622, allocations: 31.94 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000446/0.1627, allocations: 127.8 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.163, allocations: 183.5 kB / 465.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003995/0.1634, allocations: 226.9 kB / 465.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008473/0.1643, allocations: 0.5217 MB / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1643, allocations: 0 / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1643, allocations: 0 / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.1643, allocations: 0 / 466.3 MB, free: 14.59 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001697/0.1661, allocations: 0.7184 MB / 467 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.1661, allocations: 15.89 kB / 467.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001356/0.1663, allocations: 74.72 kB / 467.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.1675, allocations: 84.31 kB / 467.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.1685, allocations: 400 kB / 467.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.1686, allocations: 25.38 kB / 467.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.1688, allocations: 51.92 kB / 467.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.17, allocations: 484.8 kB / 468.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.17, allocations: 0 / 468.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.656e-05/0.1701, allocations: 12 kB / 468.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001736/0.1703, allocations: 28.98 kB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009627/0.1712, allocations: 339.7 kB / 468.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003689/0.1749, allocations: 1.641 MB / 470.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005525/0.1755, allocations: 173.1 kB / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.1758, allocations: 113.7 kB / 470.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.124e-05/0.1759, allocations: 7.984 kB / 470.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.1759, allocations: 34.5 kB / 470.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 2.976e-06/0.176, allocations: 4 kB / 470.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.002191/0.1782, allocations: 0.7755 MB / 471.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.1782, allocations: 81.11 kB / 471.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005205/0.1788, allocations: 308.5 kB / 471.6 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.1788, allocations: 29.7 kB / 471.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.1791, allocations: 255.5 kB / 471.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.1792, allocations: 79.05 kB / 472 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.1794, allocations: 65.59 kB / 472.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.1796, allocations: 338.8 kB / 472.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.1799, allocations: 95.94 kB / 472.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.1803, allocations: 212.5 kB / 472.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007664/0.1811, allocations: 323.4 kB / 473 MB, free: 7.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.1811, allocations: 3.984 kB / 473 MB, free: 7.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0014/0.1825, allocations: 425.8 kB / 473.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.1826, allocations: 8 kB / 473.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008626/0.1834, allocations: 270.8 kB / 473.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000539/0.184, allocations: 80.77 kB / 473.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004418/0.1845, allocations: 63.91 kB / 473.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/0.187, allocations: 1.707 MB / 475.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/0.1874, allocations: 16 kB / 475.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.1875, allocations: 15.92 kB / 475.6 MB, free: 4.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * 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.0003448/0.1878, allocations: 193.7 kB / 475.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.1879, allocations: 31.62 kB / 475.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007025/0.1886, allocations: 266.5 kB / 476.1 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.1887, allocations: 4 kB / 476.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.1887, allocations: 0 / 476.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.1887, allocations: 7.922 kB / 476.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001919/0.1906, allocations: 0.7382 MB / 476.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.1907, allocations: 0 / 476.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004928/0.1912, allocations: 55.97 kB / 476.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.604e-05/0.1912, allocations: 11.94 kB / 476.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.1912, allocations: 4 kB / 476.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.1913, allocations: 4 kB / 476.9 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1913, allocations: 0 / 476.9 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008963/0.1922, allocations: 462.2 kB / 477.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.1923, allocations: 108.9 kB / 477.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.1924, allocations: 8 kB / 477.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.1927, allocations: 8 kB / 477.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/0.1928, allocations: 19.95 kB / 477.5 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.1928, allocations: 8 kB / 477.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003414/0.1932, allocations: 219 kB / 477.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1932, allocations: 0 / 477.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007337/0.1939, allocations: 88 kB / 477.8 MB, free: 2.395 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (23): * Single equations (assignments): 22 * 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.001271/0.1952, allocations: 0.9931 MB / 478.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.1963, allocations: 402.2 kB / 479.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1963, allocations: 0 / 479.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002643/0.1966, allocations: 100.8 kB / 479.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008159/0.1974, allocations: 78.58 kB / 479.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006462/0.2039, allocations: 3.546 MB / 482.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.2043, allocations: 0.8538 MB / 483.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002137/0.2045, allocations: 70.91 kB / 483.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.2047, allocations: 139.4 kB / 484 MB, free: 11.98 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2047, allocations: 0 / 484 MB, free: 11.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.2314, allocations: 7.08 MB / 491 MB, free: 5.043 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.238/9.469, allocations: 15.75 kB / 491 MB, free: 5.027 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches