Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001881/0.001882, allocations: 104.5 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.001848/0.001848, 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.424/1.424, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1805/0.1805, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 65.72 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1206, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.007381/0.128, allocations: 4.19 MB / 461.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1299, allocations: 0.9431 MB / 462.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003296/0.1302, allocations: 15.88 kB / 462.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1305, allocations: 51.5 kB / 462.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008002/0.1314, allocations: 198.9 kB / 462.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.1317, allocations: 107.8 kB / 462.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006687/0.1324, allocations: 478.3 kB / 462.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.1327, allocations: 147.6 kB / 463.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004025/0.1331, allocations: 207.1 kB / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004948/0.1336, allocations: 247.1 kB / 463.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.467e-05/0.1337, allocations: 24 kB / 463.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.013e-05/0.1338, allocations: 28 kB / 463.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.1339, allocations: 135.5 kB / 463.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.1342, allocations: 171.1 kB / 463.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003975/0.1346, allocations: 374.6 kB / 464.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1346, allocations: 4 kB / 464.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1346, allocations: 0 / 464.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.1346, allocations: 0 / 464.3 MB, free: 0.6484 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001444/0.1361, allocations: 0.6945 MB / 464.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.1361, allocations: 11.89 kB / 465 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.221e-05/0.1362, allocations: 66.72 kB / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.219e-05/0.1363, allocations: 36.47 kB / 465.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006471/0.1369, allocations: 386.9 kB / 465.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.137, allocations: 24.5 kB / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.683e-05/0.137, allocations: 24 kB / 465.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.1376, allocations: 360.7 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1376, allocations: 4 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.1377, allocations: 8 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1377, allocations: 8 kB / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004431/0.1381, allocations: 257.9 kB / 466.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.1402, allocations: 1.446 MB / 467.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.1405, allocations: 153.1 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.1407, allocations: 81.67 kB / 467.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.1407, allocations: 0 / 467.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/0.1408, allocations: 46.48 kB / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 3.367e-06/0.1408, allocations: 4 kB / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001227/0.142, allocations: 0.6678 MB / 468.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.1421, allocations: 81.05 kB / 468.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.1424, allocations: 304.5 kB / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.1424, allocations: 29.7 kB / 468.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.1426, allocations: 219.5 kB / 469.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.547e-05/0.1426, allocations: 59.33 kB / 469.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.289e-05/0.1427, allocations: 53.59 kB / 469.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1428, allocations: 338.8 kB / 469.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.1429, allocations: 71.89 kB / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.1431, allocations: 169.3 kB / 469.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.1434, allocations: 260.6 kB / 470.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.1434, allocations: 0 / 470.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004085/0.1439, allocations: 284.9 kB / 470.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1439, allocations: 8.438 kB / 470.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1439, allocations: 8 kB / 470.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1439, allocations: 4 kB / 470.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.1442, allocations: 55.91 kB / 470.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1442, allocations: 7.984 kB / 470.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.1444, allocations: 12 kB / 470.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.1444, allocations: 15.98 kB / 470.4 MB, free: 10 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 (29): * Single equations (assignments): 29 * 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.0001805/0.1446, allocations: 169.7 kB / 470.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.199e-05/0.1447, allocations: 31.56 kB / 470.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004017/0.1451, allocations: 237.5 kB / 470.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1451, allocations: 4 kB / 470.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1451, allocations: 0 / 470.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1451, allocations: 3.984 kB / 470.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008182/0.1459, allocations: 0.6162 MB / 471.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.146, allocations: 4 kB / 471.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.1462, allocations: 39.92 kB / 471.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.343e-06/0.1462, allocations: 4 kB / 471.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.1462, allocations: 8.031 kB / 471.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1462, allocations: 0 / 471.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1462, allocations: 0 / 471.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005435/0.1468, allocations: 428.6 kB / 472 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.1469, allocations: 108.7 kB / 472.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.1469, allocations: 8 kB / 472.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.1471, allocations: 16.05 kB / 472.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.1471, allocations: 7.984 kB / 472.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1472, allocations: 11.94 kB / 472.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002062/0.1474, allocations: 207.1 kB / 472.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1474, allocations: 0 / 472.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003416/0.1477, allocations: 60 kB / 472.4 MB, free: 7.949 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0007924/0.1485, allocations: 0.9589 MB / 473.3 MB, free: 6.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003542/0.1489, allocations: 208.3 kB / 473.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1489, allocations: 192 / 473.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.149, allocations: 91.89 kB / 473.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.1496, allocations: 72.42 kB / 473.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.1531, allocations: 2.893 MB / 476.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.1535, allocations: 0.818 MB / 477.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.1537, allocations: 54.94 kB / 477.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.1539, allocations: 107.4 kB / 477.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1539, allocations: 0 / 477.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.1804, allocations: 5.909 MB / 483.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.505/7.686, allocations: 3.984 kB / 483.5 MB, free: 12.72 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches