Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.001058/0.001058, allocations: 104.4 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.00117/0.00117, 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.413/1.413, 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.1917/0.1917, allocations: 38.03 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 71.42 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1117, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.006535/0.1183, allocations: 4.034 MB / 461 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.1199, allocations: 0.9075 MB / 461.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.1201, allocations: 7.938 kB / 461.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002076/0.1203, allocations: 47.58 kB / 462 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004889/0.1208, allocations: 179 kB / 462.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001907/0.121, allocations: 95.81 kB / 462.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000381/0.1214, allocations: 410.5 kB / 462.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.1217, allocations: 114.2 kB / 462.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.1219, allocations: 179.2 kB / 462.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.1223, allocations: 207.3 kB / 463.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.133e-05/0.1224, allocations: 20 kB / 463.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.631e-05/0.1224, allocations: 20 kB / 463.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1226, allocations: 103.7 kB / 463.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.1228, allocations: 151.2 kB / 463.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.1232, allocations: 310.8 kB / 463.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.1232, allocations: 3.938 kB / 463.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1232, allocations: 3.938 kB / 463.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.1232, allocations: 0 / 463.7 MB, free: 1.18 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001213/0.1244, allocations: 0.6167 MB / 464.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.1245, allocations: 11.89 kB / 464.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.11e-05/0.1246, allocations: 62.72 kB / 464.4 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.007e-05/0.1247, allocations: 36.47 kB / 464.5 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004615/0.1251, allocations: 319 kB / 464.8 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.1252, allocations: 16.94 kB / 464.8 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.694e-05/0.1252, allocations: 28.14 kB / 464.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004834/0.1257, allocations: 316.5 kB / 465.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1258, allocations: 0 / 465.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.1258, allocations: 12 kB / 465.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1258, allocations: 8 kB / 465.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003534/0.1262, allocations: 217.5 kB / 465.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.1277, allocations: 1.352 MB / 466.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.1281, allocations: 149.1 kB / 466.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.886e-05/0.1282, allocations: 61.75 kB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.1282, allocations: 4 kB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1282, allocations: 30.56 kB / 466.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 3.066e-06/0.1282, allocations: 3.984 kB / 466.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007308/0.129, allocations: 368.3 kB / 467.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.129, allocations: 85.09 kB / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.1293, allocations: 259.2 kB / 467.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.1293, allocations: 25.7 kB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.1295, allocations: 207.5 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.1296, allocations: 47.36 kB / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.671e-05/0.1297, allocations: 45.64 kB / 468 MB, free: 12.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.1299, allocations: 338.8 kB / 468.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.13, allocations: 55.95 kB / 468.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.1302, allocations: 153.7 kB / 468.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.1305, allocations: 220.7 kB / 468.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1305, allocations: 0 / 468.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004152/0.1309, allocations: 256.9 kB / 469 MB, free: 11.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.1309, allocations: 10.5 kB / 469 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1309, allocations: 4 kB / 469 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.131, allocations: 4 kB / 469 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.1312, allocations: 51.91 kB / 469 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/0.1312, allocations: 11.94 kB / 469 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.1313, allocations: 8 kB / 469.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.1314, allocations: 16.36 kB / 469.1 MB, free: 11.42 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.0001453/0.1315, allocations: 161.6 kB / 469.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.832e-05/0.1316, allocations: 27.66 kB / 469.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003194/0.1319, allocations: 199.3 kB / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1319, allocations: 0 / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1319, allocations: 4 kB / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1319, allocations: 0 / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006368/0.1326, allocations: 0.5577 MB / 470 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1326, allocations: 0 / 470 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.1327, allocations: 31.92 kB / 470 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1327, allocations: 0 / 470 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.1328, allocations: 4 kB / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1328, allocations: 3.938 kB / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1328, allocations: 0 / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003039/0.1331, allocations: 296.9 kB / 470.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.68e-05/0.1332, allocations: 96.73 kB / 470.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.52e-05/0.1332, allocations: 11.94 kB / 470.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1333, allocations: 7.922 kB / 470.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.598e-05/0.1334, allocations: 11.92 kB / 470.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.1334, allocations: 8 kB / 470.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.1335, allocations: 182 kB / 470.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1335, allocations: 0 / 470.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.1339, allocations: 56 kB / 470.7 MB, free: 9.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 16 * 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.0005439/0.1344, allocations: 0.8192 MB / 471.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002899/0.1347, allocations: 171.7 kB / 471.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1347, allocations: 0 / 471.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.1349, allocations: 75.89 kB / 471.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.1353, allocations: 66.86 kB / 471.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.138, allocations: 2.563 MB / 474.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.1384, allocations: 0.783 MB / 475.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.1385, allocations: 46.25 kB / 475.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.1387, allocations: 91.39 kB / 475.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1387, allocations: 0 / 475.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.161, allocations: 4.859 MB / 480.2 MB, free: 64 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.411/7.572, allocations: 15.55 kB / 480.2 MB, free: 52 kB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_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_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches