Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001784/0.001784, allocations: 108 kB / 16.92 MB, free: 5.766 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.001889/0.001889, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.44/1.44, 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.1827/0.1827, allocations: 38.04 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 65.09 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1228, allocations: 58.07 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006753/0.1296, allocations: 4.073 MB / 461 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.1313, allocations: 0.8492 MB / 461.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003271/0.1317, allocations: 11.94 kB / 461.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002451/0.132, allocations: 47.52 kB / 462 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006404/0.1326, allocations: 163.1 kB / 462.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000275/0.1329, allocations: 91.81 kB / 462.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005766/0.1335, allocations: 394.5 kB / 462.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.1338, allocations: 114.2 kB / 462.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.1341, allocations: 167.3 kB / 462.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.1346, allocations: 187.2 kB / 463 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.437e-05/0.1346, allocations: 24 kB / 463.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.425e-05/0.1347, allocations: 20 kB / 463.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.1348, allocations: 83.72 kB / 463.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.135, allocations: 143.3 kB / 463.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.1354, allocations: 286.9 kB / 463.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.954e-06/0.1354, allocations: 0 / 463.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1354, allocations: 3.938 kB / 463.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.1354, allocations: 0 / 463.6 MB, free: 1.289 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.001345/0.1368, allocations: 0.6002 MB / 464.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.1368, allocations: 11.89 kB / 464.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.844e-05/0.1369, allocations: 62.72 kB / 464.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.746e-05/0.137, allocations: 32.56 kB / 464.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.1376, allocations: 319 kB / 464.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.1377, allocations: 20.81 kB / 464.6 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.1379, allocations: 35.84 kB / 464.7 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000572/0.1384, allocations: 290 kB / 464.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.1385, allocations: 4 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.1385, allocations: 7.938 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.1385, allocations: 12 kB / 465 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.1389, allocations: 187.8 kB / 465.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.1412, allocations: 1.276 MB / 466.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004432/0.1417, allocations: 119.8 kB / 466.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.1418, allocations: 46.62 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.1418, allocations: 4 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.1419, allocations: 34.56 kB / 466.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 6.302e-06/0.1419, allocations: 0 / 466.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.001304/0.1432, allocations: 0.5348 MB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/0.1433, allocations: 106.8 kB / 467.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.1436, allocations: 246.6 kB / 467.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.1436, allocations: 25.7 kB / 467.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.1438, allocations: 199.6 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.71e-05/0.1438, allocations: 39.7 kB / 467.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.866e-05/0.1439, allocations: 45.7 kB / 467.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1441, allocations: 334.8 kB / 468.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.98e-05/0.1442, allocations: 35.98 kB / 468.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.1443, allocations: 142.6 kB / 468.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.1446, allocations: 187.8 kB / 468.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1446, allocations: 0 / 468.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004658/0.145, allocations: 229.9 kB / 468.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.1451, allocations: 11.94 kB / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.1451, allocations: 4 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.1453, allocations: 33.19 kB / 468.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003516/0.1456, allocations: 63.88 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.1457, allocations: 4 kB / 468.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.1458, allocations: 8 kB / 468.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1459, allocations: 8 kB / 468.9 MB, free: 11.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002102/0.1461, allocations: 154.6 kB / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.861e-05/0.1462, allocations: 19.72 kB / 469 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.1465, allocations: 155.3 kB / 469.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.1465, allocations: 3.938 kB / 469.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.1465, allocations: 4 kB / 469.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.1465, allocations: 0 / 469.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005054/0.1471, allocations: 281.6 kB / 469.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1471, allocations: 3.938 kB / 469.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.1472, allocations: 27.98 kB / 469.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.1473, allocations: 7.938 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.1473, allocations: 11.98 kB / 469.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1473, allocations: 7.938 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1473, allocations: 0 / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004883/0.1478, allocations: 370.3 kB / 469.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.746e-05/0.1479, allocations: 92.95 kB / 470 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/0.1479, allocations: 0 / 470 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.1481, allocations: 15.92 kB / 470 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.1481, allocations: 8.062 kB / 470 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.1481, allocations: 7.984 kB / 470 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.1483, allocations: 170 kB / 470.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1483, allocations: 0 / 470.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003631/0.1487, allocations: 44 kB / 470.2 MB, free: 10.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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): 13 * 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.0006057/0.1493, allocations: 0.9036 MB / 471.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004058/0.1497, allocations: 209.7 kB / 471.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1498, allocations: 0.875 kB / 471.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.871e-05/0.1499, allocations: 47.92 kB / 471.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.1504, allocations: 58.67 kB / 471.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.1537, allocations: 2.625 MB / 474 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.1541, allocations: 0.7791 MB / 474.8 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.1542, allocations: 30.28 kB / 474.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.1544, allocations: 87.41 kB / 474.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1544, allocations: 0 / 474.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.1803, allocations: 4.784 MB / 479.7 MB, free: 456 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.322/9.502, allocations: 11.88 kB / 479.7 MB, free: 444 kB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000270051 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches