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.001279/0.001279, allocations: 112.3 kB / 16.92 MB, free: 5.859 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.001113/0.001114, allocations: 191.5 kB / 17.85 MB, free: 5.164 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.262/1.262, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1687/0.1687, allocations: 38.04 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 60.62 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09455, allocations: 58.07 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004549/0.09913, allocations: 3.433 MB / 460.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1011, allocations: 1.52 MB / 461.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.1012, allocations: 4 kB / 461.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007534/0.102, allocations: 262.9 kB / 462.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005825/0.1026, allocations: 275 kB / 462.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.1029, allocations: 131.6 kB / 462.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003752/0.1033, allocations: 339 kB / 462.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002858/0.1036, allocations: 125.9 kB / 463 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002461/0.1038, allocations: 151.3 kB / 463.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.1041, allocations: 147.5 kB / 463.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.1041, allocations: 15.98 kB / 463.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005062/0.1046, allocations: 339.1 kB / 463.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1047, allocations: 95.77 kB / 463.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1049, allocations: 99.48 kB / 463.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004493/0.1053, allocations: 359 kB / 464.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1053, allocations: 4 kB / 464.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1053, allocations: 0 / 464.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.1053, allocations: 0 / 464.2 MB, free: 0.6797 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.0006661/0.106, allocations: 0.5103 MB / 464.7 MB, free: 124 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.1061, allocations: 11.89 kB / 464.7 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.081e-05/0.1061, allocations: 54.73 kB / 464.8 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009046/0.107, allocations: 104.5 kB / 464.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.1073, allocations: 262.7 kB / 465.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.1074, allocations: 20.31 kB / 465.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.1074, allocations: 15.94 kB / 465.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.1079, allocations: 322.3 kB / 465.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1079, allocations: 0 / 465.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.1079, allocations: 7.984 kB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.144e-05/0.108, allocations: 19.98 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004298/0.1084, allocations: 299.7 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.11, allocations: 1.304 MB / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.1103, allocations: 198.3 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.331e-05/0.1104, allocations: 45.89 kB / 467.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1104, allocations: 4 kB / 467.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.1105, allocations: 34.55 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.1105, allocations: 0 / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002933/0.1108, allocations: 141.3 kB / 467.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.1108, allocations: 89.17 kB / 467.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.111, allocations: 207.8 kB / 467.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.111, allocations: 25.7 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1111, allocations: 171.5 kB / 468 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.1112, allocations: 31.55 kB / 468.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.009e-05/0.1112, allocations: 37.72 kB / 468.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1114, allocations: 330.8 kB / 468.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.657e-05/0.1114, allocations: 39.98 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.1116, allocations: 143.6 kB / 468.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.1118, allocations: 200.5 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1118, allocations: 0 / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002913/0.1121, allocations: 205.1 kB / 469 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1121, allocations: 8 kB / 469 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1121, allocations: 4 kB / 469 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1122, allocations: 4 kB / 469 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.1123, allocations: 43.92 kB / 469.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.1123, allocations: 8.375 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.1125, allocations: 32.2 kB / 469.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.1125, allocations: 12.06 kB / 469.1 MB, free: 11.37 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.0001269/0.1126, allocations: 149.7 kB / 469.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.1127, allocations: 27.73 kB / 469.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001935/0.1129, allocations: 119 kB / 469.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.1129, allocations: 0 / 469.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.1129, allocations: 4 kB / 469.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1129, allocations: 3.938 kB / 469.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006568/0.1136, allocations: 0.5761 MB / 470 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1136, allocations: 4.031 kB / 470 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.445e-05/0.1136, allocations: 23.94 kB / 470 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.1137, allocations: 7.938 kB / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.1137, allocations: 7.984 kB / 470 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.1137, allocations: 4 kB / 470 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.1137, allocations: 7.938 kB / 470 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002492/0.1139, allocations: 271.9 kB / 470.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.064e-05/0.114, allocations: 100.9 kB / 470.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.1141, allocations: 7.938 kB / 470.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.1142, allocations: 8 kB / 470.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.044e-05/0.1142, allocations: 7.984 kB / 470.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.896e-06/0.1142, allocations: 8 kB / 470.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.1144, allocations: 157.5 kB / 470.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1144, allocations: 0 / 470.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003509/0.1147, allocations: 55.84 kB / 470.6 MB, free: 9.672 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.0005787/0.1153, allocations: 0.8182 MB / 471.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002549/0.1156, allocations: 128 kB / 471.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1156, allocations: 0 / 471.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.818e-05/0.1157, allocations: 39.86 kB / 471.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.1161, allocations: 31.98 kB / 471.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.1187, allocations: 2.318 MB / 474 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.1191, allocations: 0.7515 MB / 474.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.1192, allocations: 45.48 kB / 474.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.669e-05/0.1193, allocations: 59.36 kB / 474.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1193, allocations: 3.938 kB / 474.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.1381, allocations: 3.269 MB / 478.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.152/7.29, allocations: 16.8 kB / 478.1 MB, free: 1.949 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