Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Display.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.Introductory.Display,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Display",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Display,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Display",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.001259/0.001259, allocations: 106.8 kB / 16.51 MB, free: 6.707 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.001269/0.001269, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.231/1.231, allocations: 222.9 MB / 241.1 MB, free: 13.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1624/0.1624, allocations: 38.03 MB / 329.3 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.19 kB / 398.2 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1037, allocations: 58.06 MB / 456.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.007765/0.1115, allocations: 7.681 MB / 463.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003732/0.1153, allocations: 2.345 MB / 466.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004056/0.1157, allocations: 43.75 kB / 466.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.1173, allocations: 0.6685 MB / 467 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.1183, allocations: 0.5448 MB / 467.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004946/0.1188, allocations: 211.7 kB / 467.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.1202, allocations: 1.8 MB / 469.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007658/0.121, allocations: 0.587 MB / 470.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005446/0.1216, allocations: 449.9 kB / 470.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007669/0.1223, allocations: 0.6581 MB / 471.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.1225, allocations: 48 kB / 471.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004532/0.1229, allocations: 247.7 kB / 471.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003733/0.1233, allocations: 458.9 kB / 472 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004144/0.1237, allocations: 485.5 kB / 472.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000913/0.1246, allocations: 1.145 MB / 473.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1247, allocations: 0 / 473.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1247, allocations: 0 / 473.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1247, allocations: 0 / 473.6 MB, free: 6.988 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.001908/0.1266, allocations: 1.215 MB / 474.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.1267, allocations: 8.031 kB / 474.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.1268, allocations: 143.9 kB / 474.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008961/0.1277, allocations: 163.6 kB / 475.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008635/0.1286, allocations: 0.5889 MB / 475.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.841e-05/0.1287, allocations: 66.36 kB / 475.8 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/0.1289, allocations: 103.8 kB / 475.9 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.1304, allocations: 1.153 MB / 477 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.1304, allocations: 11.83 kB / 477 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.307e-05/0.1305, allocations: 32 kB / 477.1 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001765/0.1307, allocations: 89.95 kB / 477.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.1322, allocations: 0.999 MB / 478.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004734/0.137, allocations: 4.362 MB / 482.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1381, allocations: 0.6228 MB / 483.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/0.1385, allocations: 307.3 kB / 483.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.1385, allocations: 12.53 kB / 483.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.1386, allocations: 51 kB / 483.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 3.787e-06/0.1386, allocations: 0 / 483.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.002627/0.1412, allocations: 1.738 MB / 485.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.1413, allocations: 85.67 kB / 485.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005152/0.1418, allocations: 0.5417 MB / 485.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.1419, allocations: 33.7 kB / 485.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.1421, allocations: 442.9 kB / 486.3 MB, free: 9.723 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.1423, allocations: 220.8 kB / 486.5 MB, free: 9.504 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.1425, allocations: 190.4 kB / 486.7 MB, free: 9.312 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1427, allocations: 378.8 kB / 487.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004277/0.1431, allocations: 285.8 kB / 487.4 MB, free: 8.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006172/0.1437, allocations: 0.6153 MB / 488 MB, free: 7.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.1449, allocations: 0.9769 MB / 489 MB, free: 6.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1449, allocations: 4 kB / 489 MB, free: 6.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00196/0.1469, allocations: 1.164 MB / 490.1 MB, free: 5.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.1469, allocations: 8 kB / 490.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001261/0.1482, allocations: 0.7268 MB / 490.9 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006854/0.1489, allocations: 214.3 kB / 491.1 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006836/0.1496, allocations: 223.7 kB / 491.3 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004199/0.1538, allocations: 4.922 MB / 496.2 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/0.1543, allocations: 39.89 kB / 496.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-05/0.1543, allocations: 40 kB / 496.3 MB, free: 14.99 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 33 (system.initime,phasor_cap.color_n[3],phasor_cap.color_n[1],phasor_cap.color_p[3],phasor_cap.color_p[1],phasor_ind.color_n[3],phasor_ind.color_n[1],phasor_ind.color_p[3],phasor_ind.color_p[1],phasor_cap.color2[3],phasor_cap.color2[2],phasor_cap.color2[1],phasor_cap.color1[3],phasor_cap.color1[2],phasor_cap.color1[1],phasor_cap.colorR[3],phasor_cap.colorR[2],phasor_cap.colorR[1],phasor_cap.colorL[3],phasor_cap.colorL[2],phasor_cap.colorL[1],phasor_ind.color2[3],phasor_ind.color2[2],phasor_ind.color2[1],phasor_ind.color1[3],phasor_ind.color1[2],phasor_ind.color1[1],phasor_ind.colorR[3],phasor_ind.colorR[2],phasor_ind.colorR[1],phasor_ind.colorL[3],phasor_ind.colorL[2],phasor_ind.colorL[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004284/0.1548, allocations: 355.5 kB / 496.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-05/0.1549, allocations: 63.31 kB / 496.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.1559, allocations: 0.6576 MB / 497.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1559, allocations: 4 kB / 497.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.1559, allocations: 0 / 497.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1559, allocations: 7.984 kB / 497.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.1581, allocations: 1.531 MB / 498.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1581, allocations: 0 / 498.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007452/0.1589, allocations: 179.8 kB / 499.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1589, allocations: 8.156 kB / 499.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.1589, allocations: 16 kB / 499.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.159, allocations: 4 kB / 499.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.159, allocations: 3.938 kB / 499.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.1603, allocations: 1.026 MB / 0.4884 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002017/0.1605, allocations: 176.3 kB / 0.4886 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.1606, allocations: 19.98 kB / 0.4886 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002817/0.1609, allocations: 19.94 kB / 0.4886 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.161, allocations: 52.42 kB / 0.4887 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.161, allocations: 23.94 kB / 0.4887 GB, free: 10.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003507/0.1614, allocations: 366.8 kB / 0.489 GB, free: 10.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1614, allocations: 0 / 0.489 GB, free: 10.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007512/0.1621, allocations: 216 kB / 0.4892 GB, free: 10.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (ind.i[1],ind.i[2],ind.i[3],cap.v[1],cap.v[2],cap.v[3]) * Number of discrete variables: 9 (system.initime,phasor_ind.color_p[1],phasor_ind.color_p[3],phasor_ind.color_n[1],phasor_ind.color_n[3],phasor_cap.color_p[1],phasor_cap.color_p[3],phasor_cap.color_n[1],phasor_cap.color_n[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * 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.001583/0.1637, allocations: 1.591 MB / 0.4908 GB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.1653, allocations: 1.103 MB / 0.4919 GB, free: 7.379 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1653, allocations: 0 / 0.4919 GB, free: 7.379 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004381/0.1658, allocations: 311 kB / 0.4922 GB, free: 7.074 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008382/0.1666, allocations: 142.7 kB / 0.4923 GB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009603/0.1762, allocations: 7.635 MB / 0.4998 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006314/0.1769, allocations: 1.075 MB / 0.5008 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006267/0.1775, allocations: 229.6 kB / 0.501 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.1779, allocations: 307.3 kB / 0.5013 GB, free: 13.23 MB / 398.1 MB Notification: Performance of SimCode: time 9.71e-07/0.1779, allocations: 0 / 0.5013 GB, free: 13.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1964/0.3743, allocations: 14.63 MB / 0.5156 GB, free: 68.2 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/0.3745, allocations: 218.7 kB / 0.5158 GB, free: 67.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/2.486, allocations: 0 / 0.5158 GB, free: 67.95 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Display.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Display_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Display_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Display.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Display_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Display.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Display.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches