Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",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.001469/0.001469, allocations: 109.6 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.0019/0.0019, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.235/0.235, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 64.8 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1189, allocations: 58.06 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.005114/0.1241, allocations: 3.445 MB / 460.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.1261, allocations: 1.438 MB / 461.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.1263, allocations: 8 kB / 461.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008015/0.1271, allocations: 254.9 kB / 462.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006732/0.1278, allocations: 275 kB / 462.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.1281, allocations: 111.7 kB / 462.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/0.1286, allocations: 335.1 kB / 462.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003005/0.1289, allocations: 137.9 kB / 462.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.1292, allocations: 147.4 kB / 463.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.1295, allocations: 151.4 kB / 463.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.1295, allocations: 15.94 kB / 463.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005338/0.13, allocations: 311.2 kB / 463.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.1302, allocations: 99.77 kB / 463.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.1303, allocations: 103.5 kB / 463.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005733/0.1309, allocations: 343 kB / 464.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.1309, allocations: 4 kB / 464.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1309, allocations: 0 / 464.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.131, 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.0007299/0.1317, allocations: 0.5065 MB / 464.6 MB, free: 268 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.1317, allocations: 19.83 kB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.457e-05/0.1318, allocations: 54.67 kB / 464.7 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009494/0.1328, allocations: 92.55 kB / 464.8 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.1332, allocations: 252.5 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.1332, allocations: 20.31 kB / 465 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.1332, allocations: 23.94 kB / 465.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000477/0.1337, allocations: 310.3 kB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.1337, allocations: 3.984 kB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.1338, allocations: 11.98 kB / 465.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.498e-05/0.1338, allocations: 12 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.1343, allocations: 291.8 kB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.136, allocations: 1.297 MB / 467 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005896/0.1366, allocations: 209.2 kB / 467.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.785e-05/0.1367, allocations: 61.69 kB / 467.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.1368, allocations: 4.219 kB / 467.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.1368, allocations: 34.5 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.904e-06/0.1368, allocations: 0 / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.00101/0.1378, allocations: 438.5 kB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.1379, allocations: 81.05 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.1381, allocations: 190.3 kB / 468 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.1382, allocations: 29.7 kB / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1383, allocations: 159.8 kB / 468.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.868e-05/0.1383, allocations: 51.28 kB / 468.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.876e-05/0.1384, allocations: 53.73 kB / 468.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1385, allocations: 326.8 kB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.038e-05/0.1386, allocations: 51.97 kB / 468.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.1388, allocations: 153.7 kB / 468.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.1391, allocations: 240.5 kB / 469 MB, free: 11.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1391, allocations: 4 kB / 469 MB, free: 11.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004454/0.1396, allocations: 254.4 kB / 469.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1396, allocations: 14.38 kB / 469.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1396, allocations: 4 kB / 469.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002462/0.1399, allocations: 36.83 kB / 469.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.14, allocations: 43.86 kB / 469.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.1413, allocations: 1.445 MB / 470.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.1415, allocations: 12 kB / 470.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.1415, allocations: 12.12 kB / 470.8 MB, free: 9.504 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): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001768/0.1417, allocations: 161.7 kB / 471 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.1417, allocations: 23.69 kB / 471 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004086/0.1421, allocations: 187.9 kB / 471.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.1422, allocations: 4 kB / 471.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1422, allocations: 0 / 471.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1422, allocations: 0 / 471.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009522/0.1431, allocations: 0.5601 MB / 471.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1432, allocations: 0 / 471.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.706e-05/0.1432, allocations: 23.98 kB / 471.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000155/0.1434, allocations: 44.8 kB / 471.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.1434, allocations: 0 / 471.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.1446, allocations: 1.418 MB / 473.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1446, allocations: 3.938 kB / 473.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.145, allocations: 303.6 kB / 473.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.1451, allocations: 88.92 kB / 473.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.1451, allocations: 7.938 kB / 473.6 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.1452, allocations: 11.92 kB / 473.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.1452, allocations: 19.92 kB / 473.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.1453, allocations: 12 kB / 473.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001071/0.1454, allocations: 140.3 kB / 473.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1454, allocations: 0 / 473.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003621/0.1457, allocations: 52 kB / 473.9 MB, free: 6.191 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (14): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0006293/0.1464, allocations: 0.8314 MB / 474.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000471/0.1469, allocations: 270.8 kB / 475 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1469, allocations: 4 kB / 475 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.1471, allocations: 179.3 kB / 475.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.1475, allocations: 37.72 kB / 475.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002826/0.1503, allocations: 2.362 MB / 477.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.1507, allocations: 0.7515 MB / 478.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.1509, allocations: 45.45 kB / 478.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.151, allocations: 59.41 kB / 478.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.151, allocations: 0 / 478.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02495/0.1759, allocations: 3.813 MB / 482.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.179/9.355, allocations: 7.875 kB / 482.2 MB, free: 13.65 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_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_ImpedanceTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches