Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.ImpedanceYD,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.001639/0.001639, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.00162/0.00162, 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.355/1.355, 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.1817/0.1817, allocations: 38.04 MB / 329.7 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 65.16 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 58.06 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.006863/0.1128, allocations: 4.552 MB / 461.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002931/0.1158, allocations: 1.558 MB / 463.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.1162, allocations: 11.94 kB / 463.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009799/0.1172, allocations: 294.6 kB / 463.4 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008117/0.118, allocations: 266.6 kB / 463.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007455/0.1188, allocations: 263.4 kB / 463.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007255/0.1195, allocations: 0.604 MB / 464.5 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000478/0.12, allocations: 252.3 kB / 464.8 MB, free: 176 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005739/0.1206, allocations: 266.9 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006351/0.1212, allocations: 326.9 kB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.907e-05/0.1213, allocations: 32 kB / 465.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003539/0.1217, allocations: 143.8 kB / 465.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002444/0.122, allocations: 223.4 kB / 465.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003228/0.1223, allocations: 246.7 kB / 466 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007729/0.1231, allocations: 0.584 MB / 466.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1231, allocations: 4 kB / 466.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1231, allocations: 0 / 466.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.1231, allocations: 0 / 466.5 MB, free: 14.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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001556/0.1247, allocations: 0.7698 MB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.1247, allocations: 15.89 kB / 467.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001175/0.1249, allocations: 82.7 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006776/0.1255, allocations: 92.22 kB / 467.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008036/0.1264, allocations: 404 kB / 467.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.1264, allocations: 29.38 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.1266, allocations: 55.91 kB / 468 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009829/0.1276, allocations: 0.6599 MB / 468.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.1276, allocations: 0 / 468.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-05/0.1277, allocations: 19.98 kB / 468.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001706/0.1279, allocations: 56.89 kB / 468.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008167/0.1287, allocations: 495.5 kB / 469.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00369/0.1324, allocations: 3.152 MB / 472.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.1329, allocations: 245.3 kB / 472.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.1331, allocations: 125.6 kB / 472.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.1331, allocations: 8 kB / 472.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.1331, allocations: 38.55 kB / 472.8 MB, free: 7.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.803e-06/0.1332, allocations: 0 / 472.8 MB, free: 7.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001524/0.1347, allocations: 0.8874 MB / 473.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.1347, allocations: 81.11 kB / 473.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003431/0.1351, allocations: 336.5 kB / 474.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1351, allocations: 25.7 kB / 474.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.1354, allocations: 299 kB / 474.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.147e-05/0.1354, allocations: 86.81 kB / 474.5 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1356, allocations: 89.97 kB / 474.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1357, allocations: 346.7 kB / 474.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.1359, allocations: 136.8 kB / 475 MB, free: 5.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003236/0.1363, allocations: 329.1 kB / 475.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000622/0.1369, allocations: 0.4924 MB / 475.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1369, allocations: 0 / 475.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001173/0.1381, allocations: 0.5998 MB / 476.4 MB, free: 3.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.1381, allocations: 10.34 kB / 476.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007741/0.1389, allocations: 325.3 kB / 476.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004094/0.1393, allocations: 114.1 kB / 476.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.1396, allocations: 91.83 kB / 477 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003362/0.143, allocations: 3.278 MB / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.1433, allocations: 19.98 kB / 480.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.1433, allocations: 24.06 kB / 480.3 MB, free: 15.67 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002639/0.1436, allocations: 217.8 kB / 480.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.761e-05/0.1437, allocations: 27.62 kB / 480.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000552/0.1442, allocations: 316.6 kB / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1442, allocations: 8 kB / 480.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1442, allocations: 7.938 kB / 480.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.1443, allocations: 3.984 kB / 480.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.1455, allocations: 0.8004 MB / 481.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1456, allocations: 0 / 481.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.1459, allocations: 63.84 kB / 481.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.1459, allocations: 4 kB / 481.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.1459, allocations: 15.98 kB / 481.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.146, allocations: 4 kB / 481.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.146, allocations: 0 / 481.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007197/0.1467, allocations: 0.4942 MB / 482.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.1468, allocations: 136.6 kB / 482.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.623e-05/0.1469, allocations: 12 kB / 482.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.1471, allocations: 7.984 kB / 482.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.1471, allocations: 15.98 kB / 482.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.1471, allocations: 4 kB / 482.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002656/0.1474, allocations: 227 kB / 482.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1474, allocations: 0 / 482.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004899/0.1479, allocations: 96 kB / 482.7 MB, free: 13.11 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.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 (27): * Single equations (assignments): 26 * 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.0009196/0.1488, allocations: 1.056 MB / 483.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.1499, allocations: 0.6135 MB / 484.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1499, allocations: 0 / 484.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.1501, allocations: 128.9 kB / 484.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.1506, allocations: 79.22 kB / 484.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005282/0.1559, allocations: 4.075 MB / 488.7 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.1564, allocations: 0.866 MB / 489.5 MB, free: 5.938 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.1567, allocations: 107.2 kB / 489.6 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.1569, allocations: 147.4 kB / 489.8 MB, free: 5.691 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.157, allocations: 4 kB / 489.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03065/0.1876, allocations: 7.493 MB / 497.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.382/9.57, allocations: 11.02 kB / 497.3 MB, free: 14.31 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches