Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",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.001638/0.001638, allocations: 104 kB / 16.92 MB, free: 5.793 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.001816/0.001816, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.384/1.384, allocations: 222.9 MB / 241.5 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.1856/0.1856, allocations: 38.03 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 66.09 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1157, allocations: 58.06 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005748/0.1215, allocations: 4.416 MB / 461.4 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.124, allocations: 1.429 MB / 462.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002731/0.1243, allocations: 11.94 kB / 462.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.1254, allocations: 370.5 kB / 463.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006714/0.1261, allocations: 230.8 kB / 463.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007129/0.1268, allocations: 247.4 kB / 463.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006927/0.1276, allocations: 0.5262 MB / 464.2 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.128, allocations: 285 kB / 464.5 MB, free: 472 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004375/0.1285, allocations: 243 kB / 464.7 MB, free: 228 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.129, allocations: 291 kB / 465 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.404e-05/0.129, allocations: 32 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003092/0.1294, allocations: 151.8 kB / 465.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.1296, allocations: 215.5 kB / 465.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.1298, allocations: 230.9 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006021/0.1304, allocations: 0.5607 MB / 466.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1305, allocations: 0 / 466.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1305, allocations: 0 / 466.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.1305, allocations: 4 kB / 466.2 MB, free: 14.75 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001276/0.1318, allocations: 0.731 MB / 466.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1318, allocations: 11.89 kB / 466.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.063e-05/0.1319, allocations: 82.72 kB / 467 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005541/0.1325, allocations: 84.31 kB / 467.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006005/0.1331, allocations: 387.2 kB / 467.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.1331, allocations: 29.38 kB / 467.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1332, allocations: 55.91 kB / 467.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000876/0.1341, allocations: 0.6248 MB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.1342, allocations: 7.938 kB / 468.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.357e-05/0.1342, allocations: 16 kB / 468.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001217/0.1343, allocations: 32.98 kB / 468.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007855/0.1351, allocations: 475.5 kB / 468.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003496/0.1386, allocations: 2.888 MB / 471.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.139, allocations: 240.8 kB / 471.8 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.1393, allocations: 150.6 kB / 471.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.1393, allocations: 7.984 kB / 472 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.1394, allocations: 34.5 kB / 472 MB, free: 8.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.215e-06/0.1394, allocations: 0 / 472 MB, free: 8.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001512/0.1409, allocations: 0.9583 MB / 472.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.1409, allocations: 85.23 kB / 473 MB, free: 7.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.1413, allocations: 328.4 kB / 473.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.1413, allocations: 33.7 kB / 473.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.1415, allocations: 267.2 kB / 473.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.595e-05/0.1416, allocations: 106.6 kB / 473.7 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.1417, allocations: 90.16 kB / 473.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1419, allocations: 346.8 kB / 474.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.1421, allocations: 149 kB / 474.3 MB, free: 6.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.1425, allocations: 347.8 kB / 474.7 MB, free: 5.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005836/0.1431, allocations: 0.5286 MB / 475.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1431, allocations: 4 kB / 475.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00077/0.1438, allocations: 0.52 MB / 475.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1439, allocations: 11.98 kB / 475.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.1439, allocations: 8 kB / 475.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.1439, allocations: 8.781 kB / 475.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.1443, allocations: 119.8 kB / 475.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.1444, allocations: 23.92 kB / 475.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.1446, allocations: 27.97 kB / 475.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.1446, allocations: 24 kB / 475.9 MB, free: 4.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0002092/0.1449, allocations: 217.5 kB / 476.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.554e-05/0.1449, allocations: 31.62 kB / 476.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005642/0.1455, allocations: 365.6 kB / 476.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1455, allocations: 8 kB / 476.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1455, allocations: 0 / 476.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1455, allocations: 3.938 kB / 476.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.1469, allocations: 0.8871 MB / 477.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1469, allocations: 3.938 kB / 477.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003176/0.1472, allocations: 68 kB / 477.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.1472, allocations: 0 / 477.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.1472, allocations: 15.92 kB / 477.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.1472, allocations: 4 kB / 477.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1473, allocations: 0 / 477.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007309/0.148, allocations: 0.5891 MB / 478.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.64e-05/0.1481, allocations: 104.8 kB / 478.2 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.269e-05/0.1481, allocations: 11.94 kB / 478.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.1483, allocations: 11.98 kB / 478.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.1484, allocations: 19.98 kB / 478.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.1484, allocations: 7.984 kB / 478.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.1486, allocations: 223.1 kB / 478.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1486, allocations: 4 kB / 478.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004432/0.1491, allocations: 88 kB / 478.6 MB, free: 1.562 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (31): * Single equations (assignments): 30 * 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.0009988/0.1501, allocations: 1.138 MB / 479.7 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006114/0.1507, allocations: 400.9 kB / 480.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1507, allocations: 4 kB / 480.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.1509, allocations: 148.2 kB / 480.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005116/0.1514, allocations: 82.67 kB / 480.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004736/0.1562, allocations: 3.97 MB / 484.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.1566, allocations: 0.8582 MB / 485.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003576/0.157, allocations: 127.1 kB / 485.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.1572, allocations: 139.4 kB / 485.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1572, allocations: 4 kB / 485.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.1819, allocations: 6.962 MB / 492.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/7.848, allocations: 15.67 kB / 492.4 MB, free: 3.508 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches