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.001683/0.001683, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001978/0.001978, allocations: 194.9 kB / 18 MB, free: 5.172 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.288/1.288, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.03 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3165, allocations: 58.07 MB / 0.5036 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.003847/0.3204, allocations: 3.454 MB / 0.507 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.322, allocations: 1.499 MB / 0.5085 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.3222, allocations: 9.375 kB / 0.5085 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000744/0.3229, allocations: 257.2 kB / 0.5087 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004875/0.3234, allocations: 291.8 kB / 0.509 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.3237, allocations: 121.3 kB / 0.5091 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000322/0.324, allocations: 349.5 kB / 0.5094 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.3243, allocations: 136.5 kB / 0.5096 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.3245, allocations: 151.5 kB / 0.5097 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.3247, allocations: 155.9 kB / 0.5099 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.3247, allocations: 17.97 kB / 0.5099 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004437/0.3252, allocations: 334.2 kB / 0.5102 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.3253, allocations: 97.7 kB / 0.5103 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.3254, allocations: 108.3 kB / 0.5104 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004782/0.3259, allocations: 359.3 kB / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3259, allocations: 0 / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3259, allocations: 0 / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.3259, allocations: 0 / 0.5107 GB, free: 2.863 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006014/0.3265, allocations: 0.5203 MB / 0.5112 GB, free: 2.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3266, allocations: 14.03 kB / 0.5113 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.197e-05/0.3266, allocations: 50.34 kB / 0.5113 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008879/0.3275, allocations: 94.84 kB / 0.5114 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.3278, allocations: 269.6 kB / 0.5117 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.3278, allocations: 11.41 kB / 0.5117 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.119e-05/0.3279, allocations: 20.58 kB / 0.5117 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.3283, allocations: 318.8 kB / 0.512 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3284, allocations: 1.031 kB / 0.512 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.3284, allocations: 10.95 kB / 0.512 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.3284, allocations: 25.98 kB / 0.512 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004229/0.3289, allocations: 296 kB / 0.5123 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.3303, allocations: 1.269 MB / 0.5135 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004215/0.3308, allocations: 230.5 kB / 0.5138 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.3309, allocations: 96.97 kB / 0.5139 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.3309, allocations: 2.469 kB / 0.5139 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.331, allocations: 41.25 kB / 0.5139 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.331, allocations: 0 / 0.5139 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007462/0.3317, allocations: 454 kB / 0.5143 GB, free: 452 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.3318, allocations: 78.83 kB / 0.5144 GB, free: 356 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.3319, allocations: 205.7 kB / 0.5146 GB, free: 216 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.332, allocations: 25.7 kB / 0.5146 GB, free: 184 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.319e-05/0.332, allocations: 161.4 kB / 0.5148 GB, free: 36 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.352e-05/0.3321, allocations: 60.44 kB / 0.5148 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.3322, allocations: 53.67 kB / 0.5149 GB, free: 15.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3323, allocations: 331.1 kB / 0.5152 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.3325, allocations: 86.27 kB / 0.5153 GB, free: 15.6 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.3327, allocations: 158.5 kB / 0.5154 GB, free: 15.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003311/0.333, allocations: 263.7 kB / 0.5157 GB, free: 15.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.333, allocations: 0 / 0.5157 GB, free: 15.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004425/0.3335, allocations: 298.5 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.3335, allocations: 6.172 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3335, allocations: 10.59 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.3335, allocations: 3.594 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.3338, allocations: 54.12 kB / 0.516 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3338, allocations: 3.562 kB / 0.5161 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.3339, allocations: 14.73 kB / 0.5161 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.334, allocations: 9.25 kB / 0.5161 GB, free: 15.17 MB / 398.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.0001496/0.3341, allocations: 155.4 kB / 0.5162 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/0.3342, allocations: 20.19 kB / 0.5162 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004146/0.3346, allocations: 235 kB / 0.5165 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3346, allocations: 5.969 kB / 0.5165 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3346, allocations: 1.844 kB / 0.5165 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3346, allocations: 1.422 kB / 0.5165 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.3363, allocations: 0.9456 MB / 0.5174 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.3363, allocations: 9.5 kB / 0.5174 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.3365, allocations: 34.97 kB / 0.5174 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.321e-05/0.3366, allocations: 6.578 kB / 0.5174 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.3366, allocations: 9.062 kB / 0.5175 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-05/0.3366, allocations: 10.42 kB / 0.5175 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.3366, allocations: 4.312 kB / 0.5175 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005916/0.3372, allocations: 421.8 kB / 0.5179 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.952e-05/0.3373, allocations: 100.4 kB / 0.518 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.3374, allocations: 14.33 kB / 0.518 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.3376, allocations: 9.031 kB / 0.518 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.3376, allocations: 30.61 kB / 0.518 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.3377, allocations: 8.578 kB / 0.518 GB, free: 13.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.3378, allocations: 149.3 kB / 0.5182 GB, free: 13.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3378, allocations: 1.406 kB / 0.5182 GB, free: 13.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003981/0.3382, allocations: 54.84 kB / 0.5182 GB, free: 13.68 MB / 398.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.0006775/0.3389, allocations: 0.9486 MB / 0.5191 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003609/0.3393, allocations: 223.7 kB / 0.5194 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3393, allocations: 1.281 kB / 0.5194 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.3394, allocations: 103.1 kB / 0.5195 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.3399, allocations: 47.53 kB / 0.5195 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.3429, allocations: 2.693 MB / 0.5221 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.3433, allocations: 0.7669 MB / 0.5229 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.3434, allocations: 48.89 kB / 0.5229 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3435, allocations: 61.23 kB / 0.523 GB, free: 9.84 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3435, allocations: 1.062 kB / 0.523 GB, free: 9.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.3647, allocations: 4.118 MB / 0.527 GB, free: 9.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.501/7.866, allocations: 23.75 kB / 0.527 GB, free: 9.258 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_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_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches