Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",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.001651/0.001651, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.0018/0.0018, allocations: 200 kB / 18.01 MB, free: 5.047 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.425/1.425, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.193/0.193, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 71.84 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3941, allocations: 58.06 MB / 0.5036 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005486/0.3997, allocations: 3.302 MB / 0.5068 GB, free: 5.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.4014, allocations: 1.225 MB / 0.508 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.4016, allocations: 5.25 kB / 0.508 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006517/0.4023, allocations: 159.4 kB / 0.5082 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005451/0.4028, allocations: 179.1 kB / 0.5084 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004186/0.4033, allocations: 133.4 kB / 0.5085 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004581/0.4037, allocations: 285.8 kB / 0.5088 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003359/0.4041, allocations: 125.1 kB / 0.5089 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.4043, allocations: 122.4 kB / 0.509 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.4045, allocations: 105.2 kB / 0.5091 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.665e-05/0.4046, allocations: 13.59 kB / 0.5091 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004373/0.405, allocations: 225 kB / 0.5093 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.867e-05/0.4051, allocations: 64.73 kB / 0.5094 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.4052, allocations: 102.5 kB / 0.5095 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000535/0.4058, allocations: 288.1 kB / 0.5098 GB, free: 3.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4058, allocations: 0 / 0.5098 GB, free: 3.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4058, allocations: 0 / 0.5098 GB, free: 3.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.4058, allocations: 1.438 kB / 0.5098 GB, free: 3.414 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006402/0.4065, allocations: 0.5146 MB / 0.5103 GB, free: 2.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.4065, allocations: 13.67 kB / 0.5103 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.289e-05/0.4066, allocations: 49.75 kB / 0.5103 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008723/0.4075, allocations: 80.89 kB / 0.5104 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.4078, allocations: 264.8 kB / 0.5107 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.4079, allocations: 11.27 kB / 0.5107 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.4079, allocations: 20.05 kB / 0.5107 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/0.4084, allocations: 274.6 kB / 0.511 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.4084, allocations: 4.969 kB / 0.511 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.4084, allocations: 6.094 kB / 0.511 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.919e-05/0.4085, allocations: 12.89 kB / 0.511 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000362/0.4088, allocations: 223.5 kB / 0.5112 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.4103, allocations: 1.199 MB / 0.5124 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/0.4105, allocations: 142.8 kB / 0.5125 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.378e-05/0.4106, allocations: 46.55 kB / 0.5125 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.4106, allocations: 5.891 kB / 0.5125 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.4107, allocations: 36.38 kB / 0.5126 GB, free: 1.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.4107, allocations: 4 kB / 0.5126 GB, free: 1.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003494/0.411, allocations: 172.5 kB / 0.5127 GB, free: 1.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.4111, allocations: 79.16 kB / 0.5128 GB, free: 1.055 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.4113, allocations: 206.2 kB / 0.513 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.4113, allocations: 29.7 kB / 0.5131 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.4114, allocations: 151.2 kB / 0.5132 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.4115, allocations: 45.84 kB / 0.5132 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.309e-05/0.4116, allocations: 42.77 kB / 0.5133 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.314e-05/0.4117, allocations: 333.5 kB / 0.5136 GB, free: 372 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.903e-05/0.4118, allocations: 45.42 kB / 0.5136 GB, free: 356 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.4119, allocations: 118.8 kB / 0.5138 GB, free: 240 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.4121, allocations: 185.3 kB / 0.5139 GB, free: 84 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4121, allocations: 1 kB / 0.5139 GB, free: 84 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003709/0.4125, allocations: 204.8 kB / 0.5141 GB, free: 15.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.4125, allocations: 7 kB / 0.5141 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.4126, allocations: 2.344 kB / 0.5141 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.674e-05/0.4126, allocations: 8.859 kB / 0.5141 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.4129, allocations: 53.28 kB / 0.5142 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.4142, allocations: 1.422 MB / 0.5156 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.4143, allocations: 26.19 kB / 0.5156 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.4144, allocations: 8.641 kB / 0.5156 GB, free: 14.49 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001622/0.4145, allocations: 149.4 kB / 0.5158 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.442e-05/0.4146, allocations: 20.14 kB / 0.5158 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.4148, allocations: 144.4 kB / 0.5159 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.4149, allocations: 2.188 kB / 0.5159 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.4149, allocations: 0 / 0.5159 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.4149, allocations: 2.406 kB / 0.5159 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007963/0.4157, allocations: 498.8 kB / 0.5164 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4157, allocations: 2.016 kB / 0.5164 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.4159, allocations: 40.03 kB / 0.5164 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.4159, allocations: 1.344 kB / 0.5164 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.4159, allocations: 3.359 kB / 0.5164 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.4171, allocations: 1.418 MB / 0.5178 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.4171, allocations: 9.875 kB / 0.5178 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004145/0.4175, allocations: 308.6 kB / 0.5181 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4176, allocations: 99.23 kB / 0.5182 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.4177, allocations: 7.531 kB / 0.5182 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.673e-05/0.4178, allocations: 5.734 kB / 0.5182 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.4178, allocations: 12.73 kB / 0.5182 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.4178, allocations: 4.625 kB / 0.5183 GB, free: 12.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000187/0.418, allocations: 146.4 kB / 0.5184 GB, free: 11.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.418, allocations: 0 / 0.5184 GB, free: 11.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003688/0.4184, allocations: 51.62 kB / 0.5184 GB, free: 11.94 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009926/0.4194, allocations: 0.8317 MB / 0.5193 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003963/0.4198, allocations: 136.8 kB / 0.5194 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4198, allocations: 1.344 kB / 0.5194 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.42, allocations: 58.25 kB / 0.5194 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.4204, allocations: 32.02 kB / 0.5195 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.4241, allocations: 2.356 MB / 0.5218 GB, free: 9.273 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.4246, allocations: 0.744 MB / 0.5225 GB, free: 8.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.4248, allocations: 31.42 kB / 0.5225 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.4249, allocations: 57.58 kB / 0.5226 GB, free: 8.523 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4249, allocations: 0 / 0.5226 GB, free: 8.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03585/0.4608, allocations: 3.816 MB / 0.5263 GB, free: 7.934 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.31, allocations: 9.656 kB / 0.5263 GB, free: 7.926 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches