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.0008821/0.0008822, allocations: 91.36 kB / 16.65 MB, free: 6.234 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.0009463/0.0009465, allocations: 177.5 kB / 17.56 MB, free: 5.848 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.178/1.178, allocations: 223.2 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.161/0.161, allocations: 38.09 MB / 330.8 MB, free: 8.535 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002794, allocations: 8.812 kB / 400.8 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08112/0.08141, allocations: 59.16 MB / 460 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.006733/0.08817, allocations: 7.228 MB / 467.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003484/0.09167, allocations: 2.325 MB / 469.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004964/0.09219, allocations: 43.69 kB / 469.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002928/0.0925, allocations: 107.2 kB / 469.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.09361, allocations: 0.5292 MB / 470.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005047/0.09413, allocations: 215.6 kB / 470.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001401/0.09554, allocations: 1.804 MB / 472.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.09687, allocations: 0.9541 MB / 473.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004773/0.09736, allocations: 418 kB / 473.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007322/0.0981, allocations: 0.6151 MB / 474.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.088e-05/0.09818, allocations: 32 kB / 474.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003783/0.09857, allocations: 231.7 kB / 474.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003571/0.09893, allocations: 450.8 kB / 474.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000372/0.09931, allocations: 471.2 kB / 475.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008665/0.1002, allocations: 1.113 MB / 476.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1002, allocations: 0 / 476.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1002, allocations: 0 / 476.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1002, allocations: 0 / 476.5 MB, free: 6.367 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.001574/0.1018, allocations: 1.048 MB / 477.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1018, allocations: 16.02 kB / 477.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.102, allocations: 139.9 kB / 477.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008688/0.1029, allocations: 163.6 kB / 477.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008352/0.1037, allocations: 0.5889 MB / 478.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.684e-05/0.1038, allocations: 66.36 kB / 478.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002085/0.104, allocations: 107.8 kB / 478.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.1055, allocations: 1.161 MB / 479.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.1056, allocations: 3.906 kB / 479.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.1056, allocations: 36 kB / 479.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001558/0.1058, allocations: 81.89 kB / 479.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.1073, allocations: 1.007 MB / 480.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004736/0.1121, allocations: 4.377 MB / 485.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.1132, allocations: 0.6345 MB / 485.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004362/0.1136, allocations: 301 kB / 486.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.1137, allocations: 12.56 kB / 486.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.1137, allocations: 39.12 kB / 486.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 1.703e-06/0.1137, allocations: 0 / 486.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.002605/0.1163, allocations: 1.749 MB / 488 MB, free: 10.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.1164, allocations: 85.67 kB / 488.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005274/0.1169, allocations: 0.5416 MB / 488.6 MB, free: 9.719 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.117, allocations: 33.7 kB / 488.6 MB, free: 9.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.1172, allocations: 442.8 kB / 489.1 MB, free: 9.238 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.1174, allocations: 224.8 kB / 489.3 MB, free: 9.016 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1175, allocations: 93.67 kB / 489.4 MB, free: 8.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1176, allocations: 378.8 kB / 489.7 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004383/0.1181, allocations: 289.8 kB / 490 MB, free: 8.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006224/0.1187, allocations: 0.6075 MB / 490.6 MB, free: 7.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.1199, allocations: 0.973 MB / 491.6 MB, free: 6.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/0.1199, allocations: 4 kB / 491.6 MB, free: 6.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001964/0.1219, allocations: 1.172 MB / 492.8 MB, free: 5.184 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1219, allocations: 8 kB / 492.8 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001272/0.1232, allocations: 0.7144 MB / 493.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006772/0.1238, allocations: 222.5 kB / 493.7 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007286/0.1246, allocations: 211.7 kB / 493.9 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004144/0.1287, allocations: 4.934 MB / 498.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006355/0.1294, allocations: 31.91 kB / 498.9 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.112e-05/0.1295, allocations: 47.98 kB / 498.9 MB, free: 14.6 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.0005213/0.13, allocations: 349.3 kB / 499.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/0.1301, allocations: 63.25 kB / 499.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/0.1312, allocations: 0.6538 MB / 0.4883 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.1312, allocations: 12 kB / 0.4883 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.1312, allocations: 3.938 kB / 0.4883 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/0.1312, allocations: 3.984 kB / 0.4883 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.1334, allocations: 1.539 MB / 0.4898 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1335, allocations: 7.938 kB / 0.4898 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007348/0.1342, allocations: 171.8 kB / 0.49 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.1342, allocations: 4 kB / 0.49 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/0.1343, allocations: 15.98 kB / 0.49 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.1343, allocations: 4 kB / 0.49 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1343, allocations: 12.09 kB / 0.49 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.1356, allocations: 1.018 MB / 0.491 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.1358, allocations: 184.3 kB / 0.4912 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.481e-05/0.1359, allocations: 23.98 kB / 0.4912 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.1362, allocations: 15.98 kB / 0.4912 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.1363, allocations: 48.44 kB / 0.4913 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/0.1364, allocations: 19.98 kB / 0.4913 GB, free: 10.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003534/0.1367, allocations: 358.8 kB / 0.4916 GB, free: 9.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1367, allocations: 0 / 0.4916 GB, free: 9.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007242/0.1375, allocations: 220 kB / 0.4918 GB, free: 9.762 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.001517/0.139, allocations: 1.587 MB / 0.4934 GB, free: 8.133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.1405, allocations: 1.107 MB / 0.4945 GB, free: 6.988 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1405, allocations: 0 / 0.4945 GB, free: 6.988 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000433/0.141, allocations: 315.2 kB / 0.4948 GB, free: 6.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008619/0.1418, allocations: 141.3 kB / 0.4949 GB, free: 6.547 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1654/0.3073, allocations: 7.739 MB / 0.5025 GB, free: 53.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.3079, allocations: 1.072 MB / 0.5035 GB, free: 52.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00067/0.3086, allocations: 229.2 kB / 0.5037 GB, free: 52.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000363/0.3089, allocations: 306.5 kB / 0.504 GB, free: 52.74 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3089, allocations: 0 / 0.504 GB, free: 52.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.479/0.788, allocations: 14.45 MB / 0.5181 GB, free: 48.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/0.7882, allocations: 229.9 kB / 0.5184 GB, free: 48.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/2.852, allocations: 1.375 kB / 0.5184 GB, free: 48.67 MB / 382.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