Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest.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.Generic.Test.AdmittanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_AdmittanceTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.AdmittanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_AdmittanceTest",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.001185/0.001185, allocations: 106.9 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.001215/0.001215, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.421/1.421, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1854/0.1854, allocations: 38.03 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 65.7 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1218, allocations: 58.07 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.AdmittanceTest): time 0.005757/0.1276, allocations: 3.422 MB / 460.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.1298, allocations: 1.453 MB / 461.8 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002007/0.13, allocations: 7.938 kB / 461.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000884/0.1309, allocations: 255 kB / 462.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007111/0.1316, allocations: 279 kB / 462.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.132, allocations: 111.7 kB / 462.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000424/0.1324, allocations: 335 kB / 462.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002776/0.1327, allocations: 133.9 kB / 462.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.133, allocations: 147.4 kB / 463.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.1332, allocations: 163.3 kB / 463.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.598e-05/0.1333, allocations: 16 kB / 463.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.1338, allocations: 311.2 kB / 463.6 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.134, allocations: 91.77 kB / 463.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1341, allocations: 111.5 kB / 463.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005279/0.1346, allocations: 339 kB / 464.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1347, allocations: 4 kB / 464.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1347, allocations: 0 / 464.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.1347, allocations: 0 / 464.1 MB, free: 0.8164 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007162/0.1354, allocations: 0.5056 MB / 464.6 MB, free: 272 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1355, allocations: 11.89 kB / 464.6 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.35e-05/0.1355, allocations: 62.67 kB / 464.7 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009253/0.1365, allocations: 92.55 kB / 464.8 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.1368, allocations: 256.4 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.1368, allocations: 20.33 kB / 465 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/0.1369, allocations: 23.94 kB / 465.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.1374, allocations: 314.4 kB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.1375, allocations: 3.938 kB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.1375, allocations: 4 kB / 465.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-05/0.1375, allocations: 23.98 kB / 465.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004555/0.138, allocations: 283.8 kB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.1397, allocations: 1.289 MB / 467 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.1402, allocations: 238.3 kB / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.842e-05/0.1403, allocations: 57.7 kB / 467.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.1403, allocations: 11.92 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.1404, allocations: 34.56 kB / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.964e-06/0.1404, allocations: 0 / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006453/0.141, allocations: 286.7 kB / 467.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.1411, allocations: 85.09 kB / 467.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.1413, allocations: 190.4 kB / 467.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.1413, allocations: 29.7 kB / 467.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.1414, allocations: 163.9 kB / 468 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.378e-05/0.1414, allocations: 51.3 kB / 468.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.296e-05/0.1415, allocations: 45.61 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1416, allocations: 330.8 kB / 468.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.847e-05/0.1417, allocations: 43.97 kB / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.1419, allocations: 153.6 kB / 468.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.1421, allocations: 224.9 kB / 468.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.1421, allocations: 3.984 kB / 468.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003233/0.1425, allocations: 221.4 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1425, allocations: 12.06 kB / 469.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1425, allocations: 4 kB / 469.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.1425, allocations: 7.938 kB / 469.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.1427, allocations: 47.92 kB / 469.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.1427, allocations: 4 kB / 469.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.1428, allocations: 7.984 kB / 469.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.1429, allocations: 12 kB / 469.2 MB, free: 11.3 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 (25): * Single equations (assignments): 25 * 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.0001234/0.143, allocations: 161.6 kB / 469.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/0.143, allocations: 19.8 kB / 469.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002473/0.1433, allocations: 159.1 kB / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.1433, allocations: 4 kB / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.1433, allocations: 0 / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1433, allocations: 0 / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1444, allocations: 0.6612 MB / 470.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.1444, allocations: 4 kB / 470.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.1445, allocations: 32.3 kB / 470.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.1446, allocations: 8 kB / 470.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.1446, allocations: 8 kB / 470.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1446, allocations: 4 kB / 470.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.996e-06/0.1446, allocations: 15.98 kB / 470.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.145, allocations: 335.3 kB / 470.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.161e-05/0.1451, allocations: 96.86 kB / 470.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.1451, allocations: 11.98 kB / 470.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.1453, allocations: 4 kB / 470.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.1453, allocations: 23.86 kB / 470.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.1453, allocations: 12 kB / 470.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001214/0.1455, allocations: 144.3 kB / 470.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1455, allocations: 0 / 470.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003617/0.1458, allocations: 44 kB / 470.9 MB, free: 9.387 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (15): * Single equations (assignments): 14 * 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.000571/0.1464, allocations: 0.8683 MB / 471.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002601/0.1467, allocations: 148.5 kB / 471.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.1467, allocations: 7.938 kB / 471.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.837e-05/0.1468, allocations: 55.86 kB / 472 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004288/0.1472, allocations: 39.91 kB / 472 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.1498, allocations: 2.397 MB / 474.4 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.1501, allocations: 0.7593 MB / 475.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.1502, allocations: 45.53 kB / 475.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.132e-05/0.1503, allocations: 63.41 kB / 475.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1503, allocations: 3.938 kB / 475.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.1729, allocations: 3.406 MB / 478.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.493/7.666, allocations: 18.34 kB / 478.7 MB, free: 1.316 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest_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_Generic_Test_AdmittanceTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.AdmittanceTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.AdmittanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches