Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.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.Tables,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Tables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Tables,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Tables",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.0009937/0.0009938, allocations: 98.05 kB / 16.5 MB, free: 6.648 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.0009942/0.0009942, allocations: 194.4 kB / 17.42 MB, free: 6.066 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.22/1.22, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1676/0.1676, allocations: 38.03 MB / 329.3 MB, free: 9.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 61.23 kB / 398.2 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09306, allocations: 58.07 MB / 456.2 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Tables): time 0.002753/0.09585, allocations: 1.417 MB / 457.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005796/0.09645, allocations: 371.3 kB / 458 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.926e-05/0.0965, allocations: 4 kB / 458 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.09671, allocations: 11.92 kB / 458 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.09684, allocations: 31.91 kB / 458.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.09704, allocations: 78.36 kB / 458.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.09716, allocations: 51.84 kB / 458.2 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.994e-05/0.09721, allocations: 7.969 kB / 458.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.09735, allocations: 23.88 kB / 458.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.281e-05/0.09742, allocations: 23.91 kB / 458.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.09744, allocations: 0 / 458.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.313e-05/0.09754, allocations: 47.97 kB / 458.3 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.384e-05/0.0976, allocations: 23.91 kB / 458.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.079e-05/0.09764, allocations: 19.81 kB / 458.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.09781, allocations: 91.72 kB / 458.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.09782, allocations: 4 kB / 458.4 MB, free: 6.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09783, allocations: 0 / 458.4 MB, free: 6.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.09783, allocations: 0 / 458.4 MB, free: 6.227 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003907/0.09823, allocations: 375.5 kB / 458.8 MB, free: 5.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.09827, allocations: 12.02 kB / 458.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.794e-05/0.09831, allocations: 30.75 kB / 458.8 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.09e-05/0.09835, allocations: 12.84 kB / 458.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.09855, allocations: 196.2 kB / 459 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.09856, allocations: 4.375 kB / 459.1 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.09858, allocations: 16.25 kB / 459.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.09869, allocations: 63.34 kB / 459.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.09871, allocations: 0 / 459.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.09872, allocations: 0 / 459.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.09873, allocations: 0 / 459.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.644e-05/0.09878, allocations: 19.98 kB / 459.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003163/0.0991, allocations: 280.8 kB / 459.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.305e-05/0.09919, allocations: 34.56 kB / 459.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.311e-05/0.09922, allocations: 12.92 kB / 459.5 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.09925, allocations: 4 kB / 459.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.09928, allocations: 34.55 kB / 459.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.09928, allocations: 3.938 kB / 459.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000146/0.09943, allocations: 57.53 kB / 459.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.09949, allocations: 81.11 kB / 459.6 MB, free: 4.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.09962, allocations: 141.8 kB / 459.8 MB, free: 4.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.09965, allocations: 29.7 kB / 459.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.67e-05/0.09971, allocations: 92.03 kB / 459.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.09973, allocations: 15.84 kB / 459.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.09977, allocations: 13.72 kB / 459.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.09987, allocations: 322.8 kB / 460.2 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.66e-05/0.09989, allocations: 8 kB / 460.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.408e-05/0.09992, allocations: 17.72 kB / 460.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.391e-05/0.09997, allocations: 24.84 kB / 460.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.09998, allocations: 0 / 460.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.336e-05/0.1001, allocations: 53.81 kB / 460.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.1001, allocations: 4 kB / 460.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.1001, allocations: 4.047 kB / 460.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1001, allocations: 3.984 kB / 460.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.909e-05/0.1002, allocations: 4 kB / 460.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.1002, allocations: 4.031 kB / 460.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.318e-05/0.1002, allocations: 0 / 460.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-06/0.1002, allocations: 0 / 460.4 MB, free: 4.039 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.253e-05/0.1003, allocations: 125.8 kB / 460.5 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.1003, allocations: 3.906 kB / 460.5 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.1004, allocations: 65.52 kB / 460.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1004, allocations: 0 / 460.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1005, allocations: 3.984 kB / 460.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1005, allocations: 0 / 460.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.1006, allocations: 177.6 kB / 460.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1007, allocations: 0 / 460.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-05/0.1007, allocations: 4 kB / 460.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1007, allocations: 8 kB / 460.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.1007, allocations: 3.938 kB / 460.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1007, allocations: 0 / 460.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1007, allocations: 0 / 460.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.1008, allocations: 151.3 kB / 460.9 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.673e-05/0.1009, allocations: 85.09 kB / 461 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.1009, allocations: 11.94 kB / 461 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.938e-05/0.101, allocations: 0 / 461 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.313e-05/0.101, allocations: 0 / 461 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.101, allocations: 0 / 461 MB, free: 3.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.073e-05/0.1011, allocations: 114.9 kB / 461.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1011, allocations: 0 / 461.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.1013, allocations: 19.94 kB / 461.1 MB, free: 3.176 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.001091/0.1024, allocations: 0.9629 MB / 462.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.435e-05/0.1025, allocations: 23.92 kB / 462.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1025, allocations: 3.938 kB / 462.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.499e-05/0.1025, allocations: 4 kB / 462.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.1029, allocations: 15.98 kB / 462.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.104, allocations: 1.333 MB / 463.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.1042, allocations: 0.6888 MB / 464.2 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.382e-05/0.1043, allocations: 20.11 kB / 464.2 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.094e-05/0.1044, allocations: 23.42 kB / 464.2 MB, free: 124 kB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1044, allocations: 0 / 464.2 MB, free: 124 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01389/0.1183, allocations: 2.356 MB / 466.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/0.1185, allocations: 256 kB / 466.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/1.902, allocations: 0 / 466.8 MB, free: 13.6 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Tables_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Tables_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Tables.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Tables_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Tables.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches