Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.001149/0.001149, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.001171/0.001171, 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.225/1.225, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1624/0.1624, allocations: 38.04 MB / 329.3 MB, free: 8.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 64 kB / 398.2 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09192, allocations: 58.06 MB / 456.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004216/0.09617, allocations: 3.708 MB / 460 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.09804, allocations: 1.559 MB / 461.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.09816, allocations: 11.94 kB / 461.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006584/0.09883, allocations: 243.1 kB / 461.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004388/0.09928, allocations: 255.2 kB / 462 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.09952, allocations: 115.7 kB / 462.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.1, allocations: 0.5768 MB / 462.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002695/0.1003, allocations: 138 kB / 462.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.1005, allocations: 123.4 kB / 463 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.1007, allocations: 167.4 kB / 463.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.1007, allocations: 8 kB / 463.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000499/0.1012, allocations: 407.1 kB / 463.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.67e-05/0.1013, allocations: 91.75 kB / 463.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1014, allocations: 111.4 kB / 463.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004079/0.1019, allocations: 378.8 kB / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1019, allocations: 0 / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1019, allocations: 0 / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.1019, 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.0005771/0.1025, allocations: 0.5181 MB / 464.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.1025, allocations: 8.031 kB / 464.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.882e-05/0.1026, allocations: 54.73 kB / 464.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007954/0.1034, allocations: 92.55 kB / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.1036, allocations: 262.7 kB / 465 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.1037, allocations: 20.31 kB / 465 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.1037, allocations: 20.31 kB / 465.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.1042, allocations: 317.6 kB / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1042, allocations: 3.938 kB / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.1042, allocations: 7.984 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.32e-05/0.1042, allocations: 23.94 kB / 465.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003904/0.1046, allocations: 287.8 kB / 465.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.1062, allocations: 1.275 MB / 467 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.1066, allocations: 233.1 kB / 467.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.1068, allocations: 101.7 kB / 467.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.1068, allocations: 0 / 467.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.1068, allocations: 38.56 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.082e-06/0.1068, allocations: 4 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007413/0.1076, allocations: 444 kB / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.1076, allocations: 77.11 kB / 467.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.1079, allocations: 206.1 kB / 468 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.1079, allocations: 25.7 kB / 468.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.697e-05/0.108, allocations: 163.8 kB / 468.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.302e-05/0.1081, allocations: 59.19 kB / 468.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.183e-05/0.1081, allocations: 45.7 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1082, allocations: 335 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.1084, allocations: 87.94 kB / 468.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.1085, allocations: 150.2 kB / 468.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.1088, allocations: 274.3 kB / 469.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1088, allocations: 0 / 469.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003917/0.1092, allocations: 285.2 kB / 469.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1093, allocations: 11.94 kB / 469.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1093, allocations: 0 / 469.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1093, allocations: 4 kB / 469.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.1095, allocations: 64.17 kB / 469.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.1095, allocations: 7.984 kB / 469.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.1097, allocations: 15.98 kB / 469.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.1097, allocations: 8 kB / 469.5 MB, free: 10.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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.0001229/0.1099, allocations: 157.7 kB / 469.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/0.1099, allocations: 27.66 kB / 469.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003357/0.1102, allocations: 225.6 kB / 469.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1103, allocations: 4 kB / 470 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1103, allocations: 4 kB / 470 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1103, allocations: 0 / 470 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.1114, allocations: 0.9554 MB / 470.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.1114, allocations: 4 kB / 470.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.1116, allocations: 36.41 kB / 471 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.1116, allocations: 12 kB / 471 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1116, allocations: 7.938 kB / 471 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.421e-06/0.1116, allocations: 7.938 kB / 471 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.1116, allocations: 4 kB / 471 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003662/0.112, allocations: 420.9 kB / 471.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.1121, allocations: 92.92 kB / 471.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.1121, allocations: 19.92 kB / 471.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.1123, allocations: 8 kB / 471.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.939e-05/0.1123, allocations: 27.86 kB / 471.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.1123, allocations: 15.98 kB / 471.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00011/0.1125, allocations: 147 kB / 471.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1125, allocations: 0 / 471.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.1128, allocations: 56 kB / 471.8 MB, free: 8.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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.0005806/0.1134, allocations: 0.9481 MB / 472.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003184/0.1137, allocations: 210.7 kB / 472.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1137, allocations: 0 / 472.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.1139, allocations: 97.33 kB / 473 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.1143, allocations: 51.91 kB / 473.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.1171, allocations: 2.751 MB / 475.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.1175, allocations: 0.7596 MB / 476.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001719/0.1176, allocations: 53.48 kB / 476.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.1178, allocations: 63.41 kB / 476.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1178, allocations: 0 / 476.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01244/0.1302, allocations: 3.853 MB / 480.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.1304, allocations: 211.3 kB / 480.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/1.882, allocations: 4.062 kB / 480.7 MB, free: 15.02 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches