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.001283/0.001283, allocations: 109.3 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.001504/0.001504, 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.275/1.275, allocations: 222.9 MB / 241.1 MB, free: 13.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1675/0.1675, allocations: 38.05 MB / 329.3 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 55.45 kB / 398.2 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09602, allocations: 58.06 MB / 456.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005023/0.1011, allocations: 3.681 MB / 459.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.1031, allocations: 1.574 MB / 461.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1032, allocations: 11.94 kB / 461.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006667/0.1039, allocations: 255.1 kB / 461.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004983/0.1044, allocations: 255.2 kB / 462 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.1047, allocations: 115.7 kB / 462.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005037/0.1052, allocations: 0.5612 MB / 462.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003/0.1055, allocations: 142.1 kB / 462.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.1057, allocations: 123.4 kB / 463 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.106, allocations: 159.4 kB / 463.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.106, allocations: 12 kB / 463.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005981/0.1066, allocations: 415 kB / 463.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.1067, allocations: 99.75 kB / 463.6 MB, free: 1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.1069, allocations: 99.48 kB / 463.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.1073, allocations: 378.9 kB / 464.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1073, allocations: 4 kB / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1073, allocations: 0 / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.1073, allocations: 0 / 464.1 MB, free: 0.5273 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.0006492/0.108, allocations: 0.5065 MB / 464.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.1081, allocations: 16.02 kB / 464.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.534e-05/0.1081, allocations: 54.64 kB / 464.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008674/0.109, allocations: 108.5 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.1093, allocations: 252.5 kB / 465 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.1093, allocations: 24.08 kB / 465 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.216e-05/0.1093, allocations: 19.98 kB / 465.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.1098, allocations: 314.3 kB / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1098, allocations: 0 / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.1098, allocations: 12 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.128e-05/0.1099, allocations: 15.98 kB / 465.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.1103, allocations: 307.7 kB / 465.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.1119, allocations: 1.293 MB / 467 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.1122, allocations: 198.5 kB / 467.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.407e-05/0.1123, allocations: 45.77 kB / 467.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.1123, allocations: 3.984 kB / 467.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.1123, allocations: 38.56 kB / 467.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.1123, allocations: 0 / 467.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002887/0.1126, allocations: 145.3 kB / 467.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.1127, allocations: 77.11 kB / 467.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1128, allocations: 207.8 kB / 467.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.1129, allocations: 25.7 kB / 467.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.798e-05/0.113, allocations: 175.5 kB / 467.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.113, allocations: 31.55 kB / 467.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.904e-05/0.1131, allocations: 45.84 kB / 468 MB, free: 12.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1132, allocations: 334.7 kB / 468.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.224e-05/0.1133, allocations: 35.98 kB / 468.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.1134, allocations: 143.6 kB / 468.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.1136, allocations: 197 kB / 468.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1136, allocations: 4 kB / 468.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002791/0.1139, allocations: 197.1 kB / 468.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.1139, allocations: 7.984 kB / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1139, allocations: 4.438 kB / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.114, allocations: 12.06 kB / 468.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.1141, allocations: 47.92 kB / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1141, allocations: 7.938 kB / 468.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.1142, allocations: 27.73 kB / 469 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.1143, allocations: 8 kB / 469 MB, free: 11.22 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.0001222/0.1144, allocations: 157.6 kB / 469.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/0.1144, allocations: 15.81 kB / 469.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001884/0.1146, allocations: 123 kB / 469.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1146, allocations: 8 kB / 469.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1147, allocations: 0 / 469.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1147, allocations: 0 / 469.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006514/0.1153, allocations: 0.5758 MB / 469.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1153, allocations: 4 kB / 469.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.935e-05/0.1154, allocations: 16 kB / 469.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1154, allocations: 3.938 kB / 469.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.1154, allocations: 4 kB / 469.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/0.1154, allocations: 15.91 kB / 469.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1155, allocations: 4 kB / 469.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.1157, allocations: 288.2 kB / 470.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.528e-05/0.1158, allocations: 100.8 kB / 470.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.1158, allocations: 4 kB / 470.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.1159, allocations: 4.047 kB / 470.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-05/0.116, allocations: 16.16 kB / 470.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.116, allocations: 12 kB / 470.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.1161, allocations: 161.4 kB / 470.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1161, allocations: 0 / 470.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.1164, allocations: 55.78 kB / 470.5 MB, free: 9.508 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.0004937/0.1169, allocations: 0.822 MB / 471.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001888/0.1171, allocations: 112 kB / 471.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1171, allocations: 0 / 471.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.576e-05/0.1172, allocations: 44.91 kB / 471.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.1176, allocations: 36.42 kB / 471.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.1198, allocations: 2.371 MB / 473.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.1201, allocations: 0.7557 MB / 474.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.1202, allocations: 37.52 kB / 474.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.802e-05/0.1203, allocations: 55.42 kB / 474.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of SimCode: time 1.633e-06/0.1203, allocations: 3.938 kB / 474.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01199/0.1323, allocations: 3.123 MB / 477.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.1326, allocations: 202.7 kB / 478.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/1.862, allocations: 4 kB / 478.1 MB, free: 1.668 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","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches