Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.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.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",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.001144/0.001144, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001105/0.001105, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.368/1.368, allocations: 222.9 MB / 241.6 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.1745/0.1745, allocations: 38.04 MB / 329.7 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 66.36 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1019, allocations: 58.07 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.006568/0.1085, allocations: 4.478 MB / 461.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004296/0.1129, allocations: 1.531 MB / 463 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003873/0.1133, allocations: 15.94 kB / 463 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.1145, allocations: 278.6 kB / 463.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.1157, allocations: 262.7 kB / 463.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009228/0.1166, allocations: 259.4 kB / 463.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009487/0.1176, allocations: 0.6429 MB / 464.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006314/0.1183, allocations: 284.7 kB / 464.7 MB, free: 220 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005934/0.1189, allocations: 278.9 kB / 465 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009773/0.1199, allocations: 390.8 kB / 465.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002143/0.1201, allocations: 40 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007143/0.1208, allocations: 155.8 kB / 465.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005182/0.1214, allocations: 243.3 kB / 465.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001389/0.1228, allocations: 278.6 kB / 466.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002125/0.1249, allocations: 0.6425 MB / 466.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.1249, allocations: 0 / 466.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.125, allocations: 0 / 466.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.329e-05/0.125, allocations: 0 / 466.7 MB, free: 14.21 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00383/0.1289, allocations: 0.8866 MB / 467.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/0.1289, allocations: 15.89 kB / 467.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001792/0.1291, allocations: 94.7 kB / 467.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008891/0.13, allocations: 92.12 kB / 467.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.1314, allocations: 475.9 kB / 468.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.331e-05/0.1315, allocations: 37.36 kB / 468.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002062/0.1317, allocations: 55.83 kB / 468.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.1332, allocations: 0.684 MB / 469 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.1333, allocations: 0 / 469 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.034e-05/0.1333, allocations: 27.97 kB / 469.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/0.1335, allocations: 36.92 kB / 469.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.1348, allocations: 0.5267 MB / 469.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005545/0.1404, allocations: 3.094 MB / 472.7 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008843/0.1413, allocations: 325.2 kB / 473 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003856/0.1417, allocations: 174.7 kB / 473.2 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/0.1418, allocations: 7.984 kB / 473.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/0.1419, allocations: 42.55 kB / 473.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 3.467e-06/0.1419, allocations: 4 kB / 473.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003057/0.1449, allocations: 1.214 MB / 474.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/0.145, allocations: 81.11 kB / 474.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006263/0.1457, allocations: 385.6 kB / 474.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.1457, allocations: 33.69 kB / 475 MB, free: 5.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/0.146, allocations: 303.1 kB / 475.2 MB, free: 5.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1462, allocations: 110.4 kB / 475.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.1464, allocations: 106.3 kB / 475.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.1466, allocations: 358.7 kB / 475.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000459/0.1471, allocations: 189 kB / 476 MB, free: 4.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006275/0.1477, allocations: 381.5 kB / 476.4 MB, free: 4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.1489, allocations: 0.6049 MB / 477 MB, free: 3.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1489, allocations: 0 / 477 MB, free: 3.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002787/0.1517, allocations: 0.8263 MB / 477.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/0.1518, allocations: 12.03 kB / 477.8 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.1518, allocations: 7.938 kB / 477.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00175/0.1535, allocations: 269.4 kB / 478.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008878/0.1544, allocations: 135.8 kB / 478.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007345/0.1618, allocations: 4.058 MB / 482.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005879/0.1624, allocations: 31.89 kB / 482.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.411e-05/0.1625, allocations: 27.98 kB / 482.3 MB, free: 13.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004308/0.163, allocations: 217.9 kB / 482.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.1631, allocations: 43.53 kB / 482.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.1643, allocations: 489.1 kB / 483.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.1643, allocations: 7.938 kB / 483.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1643, allocations: 4 kB / 483.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1643, allocations: 0 / 483.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.1665, allocations: 1.007 MB / 484.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/0.1666, allocations: 8 kB / 484.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006252/0.1672, allocations: 87.88 kB / 484.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.1672, allocations: 0 / 484.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.486e-05/0.1673, allocations: 19.97 kB / 484.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.1673, allocations: 4 kB / 484.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1673, allocations: 0 / 484.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.1688, allocations: 0.7472 MB / 484.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001732/0.169, allocations: 124.6 kB / 485.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-05/0.1691, allocations: 12 kB / 485.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003721/0.1695, allocations: 11.98 kB / 485.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.043e-05/0.1696, allocations: 27.95 kB / 485.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.1696, allocations: 12 kB / 485.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000438/0.1701, allocations: 271.1 kB / 485.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1701, allocations: 4 kB / 485.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009086/0.171, allocations: 120 kB / 485.5 MB, free: 10.33 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (load.psi[1],load.psi[2],load.psi[3],load.Z[1],load.Z[2]) * 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 (38): * Single equations (assignments): 37 * 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.001854/0.1729, allocations: 1.304 MB / 486.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.1752, allocations: 0.8493 MB / 487.7 MB, free: 8.117 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.1752, allocations: 0 / 487.7 MB, free: 8.117 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.1756, allocations: 199.8 kB / 487.9 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008679/0.1765, allocations: 88.7 kB / 488 MB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/0.1894, allocations: 5.338 MB / 493.3 MB, free: 2.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007048/0.1902, allocations: 0.8937 MB / 494.2 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006019/0.1908, allocations: 131.3 kB / 494.3 MB, free: 1.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000382/0.1912, allocations: 175.4 kB / 494.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1912, allocations: 0 / 494.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04571/0.2369, allocations: 10.48 MB / 0.4931 GB, free: 6.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.63, allocations: 11.86 kB / 0.4931 GB, free: 6.656 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_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_AC3ph_Elementary_Load.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Load.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches