Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001169/0.001169, 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.001109/0.00111, 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.354/1.354, 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.177/0.177, allocations: 38.04 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001395, allocations: 61.39 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1129, allocations: 58.06 MB / 457 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005776/0.1187, allocations: 4.058 MB / 461 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1204, allocations: 0.9116 MB / 461.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002822/0.1207, allocations: 15.88 kB / 462 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.121, allocations: 51.5 kB / 462 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005954/0.1216, allocations: 171 kB / 462.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.1219, allocations: 95.75 kB / 462.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005885/0.1225, allocations: 398.6 kB / 462.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.1228, allocations: 118.2 kB / 462.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003103/0.1231, allocations: 175.2 kB / 463 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003682/0.1235, allocations: 183.3 kB / 463.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.1236, allocations: 24 kB / 463.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.381e-05/0.1236, allocations: 16 kB / 463.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.1237, allocations: 95.7 kB / 463.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.1239, allocations: 143.3 kB / 463.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.1243, allocations: 278.9 kB / 463.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1243, allocations: 0 / 463.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1243, allocations: 4 kB / 463.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1243, allocations: 0 / 463.7 MB, free: 1.188 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001183/0.1255, allocations: 0.5932 MB / 464.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.1256, allocations: 12.03 kB / 464.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.381e-05/0.1256, allocations: 54.73 kB / 464.3 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.602e-05/0.1257, allocations: 32.56 kB / 464.4 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004809/0.1262, allocations: 322.9 kB / 464.7 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1262, allocations: 20.38 kB / 464.7 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.134e-05/0.1263, allocations: 20 kB / 464.7 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004503/0.1267, allocations: 294.8 kB / 465 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1268, allocations: 4 kB / 465 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.1268, allocations: 7.984 kB / 465 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1268, allocations: 8 kB / 465 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.1271, allocations: 184.9 kB / 465.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001413/0.1285, allocations: 1.228 MB / 466.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.1288, allocations: 109.2 kB / 466.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.965e-05/0.1289, allocations: 45.75 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.129, allocations: 3.938 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.129, allocations: 38.56 kB / 466.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.984e-06/0.129, allocations: 0 / 466.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000906/0.1299, allocations: 488.6 kB / 467.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.13, allocations: 85.05 kB / 467.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.1302, allocations: 250.7 kB / 467.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1303, allocations: 37.7 kB / 467.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.1304, allocations: 195.6 kB / 467.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.1304, allocations: 31.47 kB / 467.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.935e-05/0.1305, allocations: 49.61 kB / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1307, allocations: 330.8 kB / 468.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.053e-05/0.1308, allocations: 39.97 kB / 468.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.1309, allocations: 128.9 kB / 468.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.1311, allocations: 188.6 kB / 468.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1311, allocations: 0 / 468.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003052/0.1314, allocations: 201.4 kB / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1315, allocations: 8 kB / 468.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1315, allocations: 4 kB / 468.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1315, allocations: 4.562 kB / 468.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.1317, allocations: 51.91 kB / 468.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.1317, allocations: 7.938 kB / 468.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.1318, allocations: 19.78 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.1319, allocations: 8 kB / 468.7 MB, free: 11.69 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001406/0.132, allocations: 158 kB / 468.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.1321, allocations: 19.75 kB / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/0.1323, allocations: 135.2 kB / 469 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.1323, allocations: 4 kB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1323, allocations: 0 / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.1323, allocations: 7.922 kB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005498/0.1329, allocations: 479.4 kB / 469.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1329, allocations: 4.031 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.1331, allocations: 16 kB / 469.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.1331, allocations: 4 kB / 469.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1331, allocations: 7.938 kB / 469.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-05/0.1331, allocations: 7.938 kB / 469.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1331, allocations: 3.984 kB / 469.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003584/0.1335, allocations: 280.9 kB / 469.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.209e-05/0.1335, allocations: 96.86 kB / 469.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.533e-05/0.1336, allocations: 7.938 kB / 469.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.895e-05/0.1337, allocations: 0 / 469.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.518e-05/0.1337, allocations: 7.984 kB / 469.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.1337, allocations: 8 kB / 469.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.1339, allocations: 174 kB / 470.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1339, allocations: 3.938 kB / 470.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.1342, allocations: 44 kB / 470.2 MB, free: 10.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0007278/0.135, allocations: 0.8144 MB / 471 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002291/0.1352, allocations: 124.1 kB / 471.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1352, allocations: 4 kB / 471.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.25e-05/0.1353, allocations: 39.92 kB / 471.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004926/0.1358, allocations: 63.42 kB / 471.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.1385, allocations: 2.448 MB / 473.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.1389, allocations: 0.7714 MB / 474.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.1391, allocations: 34.27 kB / 474.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.1392, allocations: 79.41 kB / 474.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of SimCode: time 1.703e-06/0.1392, allocations: 0 / 474.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.1654, allocations: 4.537 MB / 479.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.707, allocations: 4 kB / 479.1 MB, free: 1.117 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches