Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.001643/0.001643, allocations: 107 kB / 16.92 MB, free: 5.68 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.002056/0.002056, allocations: 190.1 kB / 17.85 MB, free: 5.176 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.382/1.382, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1737/0.1737, allocations: 38.03 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 69.38 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1139, allocations: 58.06 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006151/0.1201, allocations: 4.397 MB / 461.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.1226, allocations: 1.519 MB / 462.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002705/0.1229, allocations: 11.94 kB / 462.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008848/0.1238, allocations: 288.6 kB / 463.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006584/0.1245, allocations: 282.7 kB / 463.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.1252, allocations: 243.5 kB / 463.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006832/0.1259, allocations: 0.6118 MB / 464.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.1263, allocations: 231.8 kB / 464.5 MB, free: 396 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004233/0.1268, allocations: 263 kB / 464.8 MB, free: 132 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005664/0.1273, allocations: 366.8 kB / 465.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.1274, allocations: 40 kB / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004878/0.1279, allocations: 235.6 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002496/0.1282, allocations: 231.4 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002979/0.1285, allocations: 254.8 kB / 465.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007195/0.1292, allocations: 0.6542 MB / 466.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1293, allocations: 7.984 kB / 466.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1293, allocations: 4 kB / 466.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.1293, allocations: 3.938 kB / 466.6 MB, free: 14.35 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001492/0.1308, allocations: 0.766 MB / 467.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1308, allocations: 11.89 kB / 467.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.131, allocations: 86.7 kB / 467.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006722/0.1316, allocations: 96.22 kB / 467.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000643/0.1323, allocations: 399.2 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.1323, allocations: 33.36 kB / 467.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.1325, allocations: 51.91 kB / 468 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.1335, allocations: 0.6954 MB / 468.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.1336, allocations: 0 / 468.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.1336, allocations: 15.98 kB / 468.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/0.1339, allocations: 68.95 kB / 468.8 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.1349, allocations: 0.6635 MB / 469.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00368/0.1386, allocations: 2.654 MB / 472.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.1391, allocations: 321.3 kB / 472.4 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.1394, allocations: 205.7 kB / 472.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.1395, allocations: 11.92 kB / 472.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.1395, allocations: 38.56 kB / 472.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.475e-06/0.1395, allocations: 0 / 472.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002003/0.1415, allocations: 1.298 MB / 473.9 MB, free: 6.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.1416, allocations: 81.11 kB / 474 MB, free: 6.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.1419, allocations: 287.2 kB / 474.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.1419, allocations: 29.7 kB / 474.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002263/0.1421, allocations: 251.7 kB / 474.6 MB, free: 5.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.1422, allocations: 138 kB / 474.7 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.1424, allocations: 94.14 kB / 474.8 MB, free: 5.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1425, allocations: 350.7 kB / 475.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.1428, allocations: 188.9 kB / 475.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.1431, allocations: 328.2 kB / 475.7 MB, free: 4.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006714/0.1438, allocations: 0.5584 MB / 476.2 MB, free: 4.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1438, allocations: 4 kB / 476.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001197/0.145, allocations: 0.6737 MB / 476.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1451, allocations: 10.59 kB / 476.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008082/0.1459, allocations: 495.5 kB / 477.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004169/0.1463, allocations: 105.6 kB / 477.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.1466, allocations: 91.81 kB / 477.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/0.1494, allocations: 3.254 MB / 480.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.1496, allocations: 36.02 kB / 480.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.1497, allocations: 16 kB / 480.9 MB, free: 15.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * 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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002297/0.1499, allocations: 205.7 kB / 481.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.075e-05/0.15, allocations: 35.53 kB / 481.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006998/0.1507, allocations: 473.1 kB / 481.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.1508, allocations: 15.94 kB / 481.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1508, allocations: 3.938 kB / 481.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1508, allocations: 3.984 kB / 481.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.1522, allocations: 1.021 MB / 482.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1522, allocations: 0 / 482.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.1526, allocations: 67.89 kB / 482.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.1526, allocations: 8 kB / 482.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.1527, allocations: 11.98 kB / 482.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1527, allocations: 4 kB / 482.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1527, allocations: 0 / 482.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000932/0.1536, allocations: 0.7356 MB / 483.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.1538, allocations: 148.6 kB / 483.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.392e-05/0.1538, allocations: 11.98 kB / 483.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.154, allocations: 15.98 kB / 483.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.1541, allocations: 15.97 kB / 483.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.1541, allocations: 12 kB / 483.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.1543, allocations: 203.1 kB / 483.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1543, allocations: 0 / 483.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004856/0.1548, allocations: 112 kB / 484 MB, free: 11.97 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.001293/0.1561, allocations: 1.336 MB / 485.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.1574, allocations: 0.7865 MB / 486.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1574, allocations: 1.125 kB / 486.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.1577, allocations: 209.4 kB / 486.3 MB, free: 9.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005558/0.1582, allocations: 76.7 kB / 486.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005998/0.1642, allocations: 4.391 MB / 490.8 MB, free: 4.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.1648, allocations: 0.8626 MB / 491.6 MB, free: 4.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003006/0.1651, allocations: 115.2 kB / 491.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.1653, allocations: 139.4 kB / 491.9 MB, free: 3.766 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1653, allocations: 0 / 491.9 MB, free: 3.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.1955, allocations: 7.967 MB / 499.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.402/9.598, allocations: 0.875 kB / 499.8 MB, free: 11.91 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_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_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches