Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001102/0.001102, allocations: 109.2 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.001214/0.001214, 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.416/1.416, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1905/0.1905, allocations: 38.04 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 64.67 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 58.07 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.007039/0.1156, allocations: 4.899 MB / 461.9 MB, free: 3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1178, allocations: 1.305 MB / 463.2 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003333/0.1181, allocations: 19.88 kB / 463.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000506/0.1186, allocations: 119.1 kB / 463.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008477/0.1195, allocations: 330.4 kB / 463.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.12, allocations: 159.7 kB / 463.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007628/0.1208, allocations: 0.6854 MB / 464.5 MB, free: 396 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.121, allocations: 164.1 kB / 464.6 MB, free: 236 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004855/0.1215, allocations: 302.8 kB / 464.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006735/0.1222, allocations: 438.8 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.1224, allocations: 48 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.1225, allocations: 48 kB / 465.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002479/0.1228, allocations: 239.4 kB / 465.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000339/0.1231, allocations: 278.7 kB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005888/0.1237, allocations: 0.6035 MB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1237, allocations: 0 / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1237, allocations: 0 / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.1237, allocations: 0 / 466.6 MB, free: 14.3 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001983/0.1257, allocations: 0.944 MB / 467.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1258, allocations: 15.89 kB / 467.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.138e-05/0.1259, allocations: 70.72 kB / 467.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.126, allocations: 48.38 kB / 467.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.1271, allocations: 0.5914 MB / 468.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.1271, allocations: 32.66 kB / 468.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.05e-05/0.1272, allocations: 43.91 kB / 468.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007797/0.128, allocations: 0.5518 MB / 468.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.128, allocations: 0 / 468.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.794e-05/0.1281, allocations: 16 kB / 468.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003346/0.1284, allocations: 84.52 kB / 469 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005511/0.129, allocations: 358.3 kB / 469.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002757/0.1318, allocations: 2.07 MB / 471.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008359/0.1326, allocations: 385.2 kB / 471.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005726/0.1332, allocations: 313.5 kB / 472.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1332, allocations: 3.984 kB / 472.1 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.1333, allocations: 42.55 kB / 472.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.284e-06/0.1333, allocations: 0 / 472.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00446/0.1377, allocations: 2.54 MB / 474.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1378, allocations: 81.11 kB / 474.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003879/0.1382, allocations: 385.5 kB / 475.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.629e-05/0.1382, allocations: 29.7 kB / 475.1 MB, free: 5.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.1384, allocations: 260.2 kB / 475.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1386, allocations: 134.1 kB / 475.5 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.1387, allocations: 98.16 kB / 475.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1389, allocations: 362.7 kB / 476 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.1392, allocations: 245 kB / 476.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004437/0.1397, allocations: 366.7 kB / 476.6 MB, free: 3.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008068/0.1405, allocations: 0.6274 MB / 477.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1405, allocations: 0 / 477.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00166/0.1422, allocations: 1.017 MB / 478.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1422, allocations: 8 kB / 478.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1422, allocations: 0 / 478.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009809/0.1432, allocations: 413.5 kB / 478.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00033/0.1436, allocations: 87.83 kB / 478.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005282/0.1488, allocations: 5.131 MB / 483.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000371/0.1492, allocations: 43.94 kB / 483.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.1493, allocations: 19.94 kB / 483.9 MB, free: 12.06 MB / 366.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 (48): * Single equations (assignments): 46 * 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%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002841/0.1496, allocations: 201.7 kB / 484.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.1497, allocations: 39.53 kB / 484.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.1512, allocations: 0.8388 MB / 485 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.1512, allocations: 4 kB / 485 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.1513, allocations: 4 kB / 485 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1513, allocations: 0 / 485 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.1535, allocations: 1.414 MB / 486.4 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1535, allocations: 0 / 486.4 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.1537, allocations: 47.91 kB / 486.4 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.1549, allocations: 445.3 kB / 486.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.043e-05/0.155, allocations: 35.91 kB / 486.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005765/0.1608, allocations: 6.714 MB / 493.6 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1608, allocations: 4.031 kB / 493.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.1625, allocations: 1.124 MB / 494.8 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.1627, allocations: 120.5 kB / 494.9 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.627e-05/0.1628, allocations: 31.98 kB / 494.9 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003253/0.1631, allocations: 39.94 kB / 494.9 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.1632, allocations: 35.94 kB / 495 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.1633, allocations: 11.98 kB / 495 MB, free: 200 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003267/0.1636, allocations: 263.1 kB / 495.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1636, allocations: 7.938 kB / 495.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006965/0.1643, allocations: 156 kB / 495.4 MB, free: 15.78 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (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.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]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002022/0.1663, allocations: 1.69 MB / 497.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.1682, allocations: 0.9855 MB / 498.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.1683, allocations: 0 / 498.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.1699, allocations: 1.083 MB / 499.2 MB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007812/0.1707, allocations: 113.8 kB / 499.3 MB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009231/0.18, allocations: 6.326 MB / 0.4938 GB, free: 5.195 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005367/0.1805, allocations: 0.8858 MB / 0.4946 GB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002954/0.1808, allocations: 76.33 kB / 0.4947 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.1811, allocations: 151.4 kB / 0.4948 GB, free: 4.062 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1811, allocations: 0 / 0.4948 GB, free: 4.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04047/0.2215, allocations: 12.33 MB / 0.5069 GB, free: 7.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.582/9.804, allocations: 21.89 kB / 0.5069 GB, free: 7.875 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches