Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.00172/0.00172, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.001989/0.001989, allocations: 189.4 kB / 18 MB, free: 5.098 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.514/1.514, allocations: 222.9 MB / 241.7 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.2256/0.2256, allocations: 38.04 MB / 329.9 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 67.88 kB / 457.7 MB, free: 7.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3991, allocations: 58.05 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005438/0.4046, allocations: 4.072 MB / 0.5076 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.4059, allocations: 0.9093 MB / 0.5085 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.4061, allocations: 15.22 kB / 0.5085 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.4063, allocations: 45.67 kB / 0.5085 GB, free: 3.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005129/0.4069, allocations: 182.1 kB / 0.5087 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.4071, allocations: 88.3 kB / 0.5088 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000448/0.4075, allocations: 399.2 kB / 0.5092 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002648/0.4078, allocations: 121.4 kB / 0.5093 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.4081, allocations: 180.8 kB / 0.5095 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003435/0.4084, allocations: 182.1 kB / 0.5096 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.61e-05/0.4085, allocations: 18.84 kB / 0.5097 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.634e-05/0.4085, allocations: 19.81 kB / 0.5097 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.4087, allocations: 91.45 kB / 0.5098 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.4089, allocations: 145.7 kB / 0.5099 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004114/0.4093, allocations: 291 kB / 0.5102 GB, free: 3.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.4093, allocations: 1.125 kB / 0.5102 GB, free: 3.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4093, allocations: 0 / 0.5102 GB, free: 3.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.4093, allocations: 0 / 0.5102 GB, free: 3.16 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001073/0.4104, allocations: 0.6 MB / 0.5108 GB, free: 2.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.748e-05/0.4105, allocations: 17.77 kB / 0.5108 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.186e-05/0.4105, allocations: 56.06 kB / 0.5108 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.4106, allocations: 35.42 kB / 0.5109 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.4112, allocations: 339 kB / 0.5112 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.4112, allocations: 17.72 kB / 0.5112 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.769e-05/0.4113, allocations: 23.11 kB / 0.5112 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000471/0.4117, allocations: 293.9 kB / 0.5115 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.4118, allocations: 0 / 0.5115 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.4118, allocations: 12.11 kB / 0.5115 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.4118, allocations: 5.812 kB / 0.5115 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/0.4121, allocations: 185 kB / 0.5117 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.4134, allocations: 1.231 MB / 0.5129 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.4137, allocations: 114 kB / 0.513 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.66e-05/0.4138, allocations: 43.36 kB / 0.5131 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.4138, allocations: 3.094 kB / 0.5131 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.4139, allocations: 32.28 kB / 0.5131 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.154e-06/0.4139, allocations: 0 / 0.5131 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007948/0.4147, allocations: 496.8 kB / 0.5136 GB, free: 484 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.4147, allocations: 83.17 kB / 0.5137 GB, free: 384 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.415, allocations: 252.8 kB / 0.5139 GB, free: 232 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.415, allocations: 26.77 kB / 0.5139 GB, free: 200 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.4151, allocations: 201.9 kB / 0.5141 GB, free: 24 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.16e-05/0.4152, allocations: 41.06 kB / 0.5141 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.4153, allocations: 40.62 kB / 0.5142 GB, free: 15.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.4155, allocations: 339.9 kB / 0.5145 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-05/0.4156, allocations: 35.8 kB / 0.5145 GB, free: 15.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.4157, allocations: 133.2 kB / 0.5147 GB, free: 15.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.416, allocations: 190.7 kB / 0.5149 GB, free: 15.3 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.416, allocations: 1.859 kB / 0.5149 GB, free: 15.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003514/0.4164, allocations: 217.3 kB / 0.5151 GB, free: 15.19 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4164, allocations: 6.312 kB / 0.5151 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.4164, allocations: 4.453 kB / 0.5151 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.4165, allocations: 4.594 kB / 0.5151 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.4166, allocations: 44.56 kB / 0.5151 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.4167, allocations: 8.719 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.4168, allocations: 11.81 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.4168, allocations: 9.828 kB / 0.5152 GB, free: 15.18 MB / 398.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 (24): * Single equations (assignments): 24 * 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.0001709/0.417, allocations: 152.2 kB / 0.5153 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.701e-05/0.417, allocations: 26.7 kB / 0.5153 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.4173, allocations: 138.3 kB / 0.5155 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.4173, allocations: 2.5 kB / 0.5155 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.4173, allocations: 3.938 kB / 0.5155 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.4173, allocations: 6.328 kB / 0.5155 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006241/0.418, allocations: 480.3 kB / 0.5159 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.418, allocations: 2.484 kB / 0.5159 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.4181, allocations: 20.22 kB / 0.5159 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.4181, allocations: 5.406 kB / 0.516 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.4181, allocations: 2.859 kB / 0.516 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.4181, allocations: 1.188 kB / 0.516 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.4182, allocations: 1.656 kB / 0.516 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003736/0.4185, allocations: 290.5 kB / 0.5162 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.35e-05/0.4186, allocations: 95.56 kB / 0.5163 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.4187, allocations: 10.77 kB / 0.5163 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.758e-05/0.4188, allocations: 1.125 kB / 0.5163 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.582e-05/0.4188, allocations: 7.609 kB / 0.5163 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.4188, allocations: 7.312 kB / 0.5163 GB, free: 14.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.419, allocations: 176.2 kB / 0.5165 GB, free: 14.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.419, allocations: 0.5 kB / 0.5165 GB, free: 14.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003355/0.4194, allocations: 44.06 kB / 0.5166 GB, free: 14.11 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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): 12 * 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.0006917/0.4201, allocations: 0.816 MB / 0.5174 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002479/0.4203, allocations: 111.8 kB / 0.5175 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4203, allocations: 0 / 0.5175 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.069e-05/0.4204, allocations: 47.81 kB / 0.5175 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.4209, allocations: 58.92 kB / 0.5176 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.4241, allocations: 2.447 MB / 0.52 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.4246, allocations: 0.7786 MB / 0.5207 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.4247, allocations: 35.41 kB / 0.5207 GB, free: 10.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.4249, allocations: 81.02 kB / 0.5208 GB, free: 10.63 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4249, allocations: 0 / 0.5208 GB, free: 10.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.4566, allocations: 4.607 MB / 0.5253 GB, free: 10.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.561, allocations: 9.062 kB / 0.5253 GB, free: 10.04 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches