Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",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.001291/0.001291, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001317/0.001317, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.313/1.313, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1701/0.1701, allocations: 38.03 MB / 329.4 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 66.59 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09459/0.09583, allocations: 58.06 MB / 456.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004405/0.1003, allocations: 3.669 MB / 460.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.1023, allocations: 1.563 MB / 461.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1024, allocations: 11.94 kB / 461.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007249/0.1032, allocations: 243.2 kB / 461.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000556/0.1037, allocations: 259.1 kB / 462.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002932/0.104, allocations: 123.7 kB / 462.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.1044, allocations: 335 kB / 462.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003133/0.1047, allocations: 153.9 kB / 462.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002367/0.105, allocations: 143.4 kB / 462.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.1052, allocations: 159.5 kB / 463.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.1053, allocations: 12 kB / 463.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004634/0.1057, allocations: 347.1 kB / 463.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.1059, allocations: 103.8 kB / 463.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.106, allocations: 103.5 kB / 463.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.1064, allocations: 386.8 kB / 464 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1064, allocations: 0 / 464 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1065, allocations: 0 / 464 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1065, allocations: 0 / 464 MB, free: 0.7148 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005893/0.1071, allocations: 0.5065 MB / 464.5 MB, free: 164 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1071, allocations: 11.89 kB / 464.5 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.017e-05/0.1072, allocations: 58.72 kB / 464.6 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000864/0.108, allocations: 112.5 kB / 464.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.1083, allocations: 257.9 kB / 465 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.1084, allocations: 20.31 kB / 465 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.1084, allocations: 19.94 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004619/0.1089, allocations: 314.3 kB / 465.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1089, allocations: 4 kB / 465.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.1089, allocations: 11.98 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.219e-05/0.109, allocations: 19.98 kB / 465.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004196/0.1094, allocations: 299.7 kB / 465.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.111, allocations: 1.3 MB / 466.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.1113, allocations: 202.4 kB / 467.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.218e-05/0.1114, allocations: 41.83 kB / 467.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.1114, allocations: 0 / 467.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.1114, allocations: 42.56 kB / 467.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.1114, allocations: 0 / 467.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002889/0.1117, allocations: 141.4 kB / 467.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.1118, allocations: 81.05 kB / 467.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.112, allocations: 207.8 kB / 467.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.112, allocations: 29.7 kB / 467.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.77e-05/0.1121, allocations: 175.6 kB / 467.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.1121, allocations: 27.56 kB / 467.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.1122, allocations: 45.7 kB / 467.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.1123, allocations: 326.8 kB / 468.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.907e-05/0.1124, allocations: 35.98 kB / 468.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.1125, allocations: 143.6 kB / 468.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.1127, allocations: 204.9 kB / 468.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1127, allocations: 0 / 468.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002782/0.113, allocations: 197.5 kB / 468.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.113, allocations: 12.06 kB / 468.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.113, allocations: 7.984 kB / 468.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1131, allocations: 4 kB / 468.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.1132, allocations: 43.92 kB / 468.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.1132, allocations: 7.938 kB / 468.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1134, allocations: 23.75 kB / 468.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.1134, allocations: 15.92 kB / 468.9 MB, free: 11.4 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (23): * Single equations (assignments): 23 * 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 0.0001218/0.1135, allocations: 157.6 kB / 469.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.756e-05/0.1135, allocations: 15.81 kB / 469.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.1137, allocations: 127 kB / 469.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1138, allocations: 0 / 469.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1138, allocations: 0 / 469.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1138, allocations: 0 / 469.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006601/0.1144, allocations: 0.5759 MB / 469.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.1145, allocations: 4 kB / 469.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.208e-05/0.1145, allocations: 19.94 kB / 469.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.1145, allocations: 7.938 kB / 469.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.1146, allocations: 4 kB / 469.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.1146, allocations: 12.28 kB / 469.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.1146, allocations: 7.938 kB / 469.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002381/0.1148, allocations: 275.9 kB / 470.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.733e-05/0.1149, allocations: 96.91 kB / 470.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.1149, allocations: 7.938 kB / 470.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.115, allocations: 11.94 kB / 470.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.23e-05/0.1151, allocations: 11.98 kB / 470.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.1151, allocations: 8 kB / 470.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001174/0.1152, allocations: 153.5 kB / 470.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1152, allocations: 192 / 470.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003348/0.1156, allocations: 55.84 kB / 470.4 MB, free: 9.703 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * 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.000462/0.116, allocations: 0.822 MB / 471.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001983/0.1162, allocations: 112 kB / 471.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1162, allocations: 0.875 kB / 471.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.295e-05/0.1163, allocations: 56.22 kB / 471.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.1167, allocations: 38.67 kB / 471.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.1189, allocations: 2.381 MB / 473.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.1192, allocations: 0.7632 MB / 474.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.1193, allocations: 33.52 kB / 474.6 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.474e-05/0.1194, allocations: 55.42 kB / 474.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1194, allocations: 0 / 474.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01365/0.1331, allocations: 3.203 MB / 477.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002055/0.1333, allocations: 200.8 kB / 478.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/1.868, allocations: 0 / 478.1 MB, free: 1.785 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches