Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001679/0.001685, allocations: 107.7 kB / 17.06 MB, free: 6.098 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.001855/0.001855, allocations: 197.4 kB / 18 MB, free: 5.168 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.54/1.54, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1909/0.1909, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 67.88 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3814, allocations: 58.05 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.006569/0.388, allocations: 4.339 MB / 0.5079 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.3897, allocations: 0.942 MB / 0.5088 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.3899, allocations: 15.38 kB / 0.5088 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002455/0.3902, allocations: 53.17 kB / 0.5088 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007398/0.391, allocations: 242 kB / 0.5091 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003237/0.3913, allocations: 101.2 kB / 0.5092 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006474/0.392, allocations: 0.4923 MB / 0.5097 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003125/0.3923, allocations: 147.5 kB / 0.5098 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.3927, allocations: 221.1 kB / 0.51 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005398/0.3932, allocations: 266.7 kB / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.663e-05/0.3933, allocations: 23.34 kB / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.447e-05/0.3934, allocations: 23.22 kB / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002105/0.3936, allocations: 151.2 kB / 0.5105 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002058/0.3938, allocations: 176 kB / 0.5106 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005902/0.3944, allocations: 371.7 kB / 0.511 GB, free: 2.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3944, allocations: 0 / 0.511 GB, free: 2.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3944, allocations: 0 / 0.511 GB, free: 2.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.3945, allocations: 0 / 0.511 GB, free: 2.789 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001212/0.3957, allocations: 0.6695 MB / 0.5116 GB, free: 2.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.3957, allocations: 13.95 kB / 0.5116 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.244e-05/0.3958, allocations: 66.95 kB / 0.5117 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.701e-05/0.3959, allocations: 38.33 kB / 0.5117 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005918/0.3965, allocations: 386.9 kB / 0.5121 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.3965, allocations: 22.97 kB / 0.5121 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.04e-05/0.3966, allocations: 29.77 kB / 0.5122 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006488/0.3973, allocations: 352.7 kB / 0.5125 GB, free: 1.672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.3973, allocations: 5.031 kB / 0.5125 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.3973, allocations: 11.28 kB / 0.5125 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.3974, allocations: 26 kB / 0.5125 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.3979, allocations: 237.8 kB / 0.5128 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.3996, allocations: 1.375 MB / 0.5141 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.3999, allocations: 159.8 kB / 0.5143 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.4001, allocations: 92.89 kB / 0.5143 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.4002, allocations: 6.766 kB / 0.5144 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.4002, allocations: 44.2 kB / 0.5144 GB, free: 372 kB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.4002, allocations: 1.156 kB / 0.5144 GB, free: 372 kB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001454/0.4016, allocations: 0.7617 MB / 0.5151 GB, free: 15.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.239e-05/0.4017, allocations: 87.94 kB / 0.5152 GB, free: 15.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003765/0.4021, allocations: 300.4 kB / 0.5155 GB, free: 15.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.4022, allocations: 30.86 kB / 0.5155 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.4024, allocations: 223.7 kB / 0.5158 GB, free: 15.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.248e-05/0.4024, allocations: 56.59 kB / 0.5158 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.711e-05/0.4025, allocations: 52.61 kB / 0.5159 GB, free: 15.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.4027, allocations: 342.7 kB / 0.5162 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.4029, allocations: 67.7 kB / 0.5162 GB, free: 14.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.4031, allocations: 169.9 kB / 0.5164 GB, free: 14.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.4035, allocations: 259.8 kB / 0.5167 GB, free: 14.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.4035, allocations: 0 / 0.5167 GB, free: 14.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005852/0.4041, allocations: 319 kB / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.4041, allocations: 9.594 kB / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.4041, allocations: 3.781 kB / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.4044, allocations: 51.2 kB / 0.517 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.4046, allocations: 51.94 kB / 0.5171 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/0.4063, allocations: 1.614 MB / 0.5187 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.4065, allocations: 11.05 kB / 0.5187 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.877e-05/0.4066, allocations: 9.75 kB / 0.5187 GB, free: 12.91 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 (28): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002586/0.4068, allocations: 172.4 kB / 0.5188 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.4069, allocations: 24.14 kB / 0.5189 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005089/0.4074, allocations: 244.5 kB / 0.5191 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.4074, allocations: 6.75 kB / 0.5191 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4074, allocations: 2.047 kB / 0.5191 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4074, allocations: 0.7031 kB / 0.5191 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.4085, allocations: 0.6414 MB / 0.5197 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.4085, allocations: 1.406 kB / 0.5197 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.4086, allocations: 24.86 kB / 0.5198 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/0.4088, allocations: 59.11 kB / 0.5198 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.4088, allocations: 8.266 kB / 0.5198 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001533/0.4104, allocations: 1.606 MB / 0.5214 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4104, allocations: 0.75 kB / 0.5214 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005683/0.411, allocations: 413.3 kB / 0.5218 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.435e-05/0.4111, allocations: 106.5 kB / 0.5219 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.4111, allocations: 4.406 kB / 0.5219 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.4113, allocations: 8.812 kB / 0.5219 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.4113, allocations: 10.45 kB / 0.5219 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.4113, allocations: 5.406 kB / 0.5219 GB, free: 10.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.4116, allocations: 213.1 kB / 0.5221 GB, free: 10.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4116, allocations: 0 / 0.5221 GB, free: 10.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000423/0.412, allocations: 64.97 kB / 0.5222 GB, free: 10.22 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009066/0.4129, allocations: 0.95 MB / 0.5231 GB, free: 9.426 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006905/0.4136, allocations: 306.1 kB / 0.5234 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4136, allocations: 1.188 kB / 0.5234 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.414, allocations: 208.2 kB / 0.5236 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005434/0.4146, allocations: 72.81 kB / 0.5237 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/0.419, allocations: 3.058 MB / 0.5266 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.4195, allocations: 0.8104 MB / 0.5274 GB, free: 6.262 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.4197, allocations: 40.2 kB / 0.5275 GB, free: 6.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.4198, allocations: 99.3 kB / 0.5276 GB, free: 6.188 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4199, allocations: 1.062 kB / 0.5276 GB, free: 6.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0352/0.4551, allocations: 6.085 MB / 0.5335 GB, free: 4.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.73, allocations: 0.9062 kB / 0.5335 GB, free: 4.586 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_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_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches