Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.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.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",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.00176/0.00176, 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.001868/0.001868, 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.378/1.378, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1784/0.1784, allocations: 38.04 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 64.42 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1101, allocations: 58.07 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.007967/0.1181, allocations: 5.168 MB / 462.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003486/0.1217, allocations: 1.757 MB / 463.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005269/0.1222, allocations: 15.88 kB / 463.9 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001557/0.1238, allocations: 437.9 kB / 464.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.1249, allocations: 306.4 kB / 464.6 MB, free: 268 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.126, allocations: 359.2 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.1271, allocations: 0.7559 MB / 465.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006233/0.1278, allocations: 374.2 kB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006516/0.1284, allocations: 334.8 kB / 466.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008609/0.1293, allocations: 462.6 kB / 466.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.1295, allocations: 52 kB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004804/0.13, allocations: 175.7 kB / 467.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003361/0.1303, allocations: 283.3 kB / 467.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004573/0.1308, allocations: 334.4 kB / 467.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00094/0.1317, allocations: 0.7983 MB / 468.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1317, allocations: 0 / 468.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.1318, allocations: 3.984 kB / 468.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.1318, allocations: 0 / 468.5 MB, free: 12.37 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001989/0.1338, allocations: 0.9175 MB / 469.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1338, allocations: 11.89 kB / 469.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001485/0.134, allocations: 94.7 kB / 469.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.135, allocations: 143.9 kB / 469.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009586/0.136, allocations: 0.5081 MB / 470.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.929e-05/0.1361, allocations: 44.92 kB / 470.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003512/0.1364, allocations: 127.8 kB / 470.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.1378, allocations: 0.8587 MB / 471.2 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.1378, allocations: 7.938 kB / 471.2 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.745e-05/0.1379, allocations: 20 kB / 471.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004934/0.1384, allocations: 68.94 kB / 471.3 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009802/0.1394, allocations: 0.6205 MB / 471.9 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004511/0.1439, allocations: 3.8 MB / 475.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.145, allocations: 0.5372 MB / 476.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.1455, allocations: 326.9 kB / 476.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-05/0.1456, allocations: 12.36 kB / 476.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.1457, allocations: 42.94 kB / 476.6 MB, free: 3.879 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.124e-06/0.1457, allocations: 4 kB / 476.6 MB, free: 3.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003112/0.1488, allocations: 1.826 MB / 478.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.1489, allocations: 89.53 kB / 478.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000469/0.1493, allocations: 421.7 kB / 479 MB, free: 1.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.007e-05/0.1494, allocations: 29.7 kB / 479 MB, free: 1.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.1497, allocations: 335.8 kB / 479.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000181/0.1499, allocations: 197.3 kB / 479.5 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/0.1501, allocations: 150.1 kB / 479.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1503, allocations: 374.7 kB / 480 MB, free: 396 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000553/0.1508, allocations: 373.5 kB / 480.4 MB, free: 24 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007078/0.1516, allocations: 0.6018 MB / 481 MB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.153, allocations: 1.065 MB / 482.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.153, allocations: 0 / 482.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004529/0.1575, allocations: 1.996 MB / 484.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.639e-05/0.1576, allocations: 12.09 kB / 484.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.342e-05/0.1576, allocations: 11.94 kB / 484.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00258/0.1602, allocations: 0.973 MB / 485.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004871/0.1607, allocations: 115.8 kB / 485.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/0.1725, allocations: 8.204 MB / 493.4 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006153/0.1732, allocations: 27.98 kB / 493.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.1733, allocations: 43.92 kB / 493.4 MB, free: 2.465 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (60): * Single equations (assignments): 58 * Array equations: 0 * 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,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004374/0.1738, allocations: 245.7 kB / 493.7 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.1739, allocations: 47.44 kB / 493.7 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.1753, allocations: 0.7256 MB / 494.5 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.1753, allocations: 8 kB / 494.5 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1753, allocations: 0 / 494.5 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1753, allocations: 7.984 kB / 494.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.1783, allocations: 1.517 MB / 496 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.1783, allocations: 0 / 496 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.1794, allocations: 187.8 kB / 496.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.507e-06/0.1794, allocations: 4 kB / 496.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-05/0.1795, allocations: 35.92 kB / 496.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.124e-05/0.1795, allocations: 7.984 kB / 496.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1795, allocations: 0 / 496.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.181, allocations: 1.005 MB / 497.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.1812, allocations: 120.5 kB / 497.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.1813, allocations: 31.92 kB / 497.4 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.1817, allocations: 23.97 kB / 497.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.254e-05/0.1818, allocations: 36.39 kB / 497.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.1819, allocations: 19.98 kB / 497.5 MB, free: 14.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003152/0.1822, allocations: 279.1 kB / 497.7 MB, free: 14.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1822, allocations: 0 / 497.7 MB, free: 14.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009206/0.1831, allocations: 212 kB / 497.9 MB, free: 13.85 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * 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 (52): * Single equations (assignments): 51 * 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.001905/0.185, allocations: 1.569 MB / 499.5 MB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003038/0.1881, allocations: 1.656 MB / 0.4894 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.1881, allocations: 0 / 0.4894 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004523/0.1886, allocations: 302.3 kB / 0.4897 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006947/0.1893, allocations: 133.7 kB / 0.4898 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/0.2059, allocations: 9.779 MB / 0.4994 GB, free: 44 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006474/0.2066, allocations: 0.9843 MB / 0.5003 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005782/0.2072, allocations: 204.6 kB / 0.5005 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003625/0.2076, allocations: 231.4 kB / 0.5008 GB, free: 14.6 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2076, allocations: 0 / 0.5008 GB, free: 14.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2277/0.4354, allocations: 17.23 MB / 0.5176 GB, free: 71.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.44/9.876, allocations: 13.17 kB / 0.5176 GB, free: 71.02 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches