Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.001595/0.001595, allocations: 111.8 kB / 17.06 MB, free: 6.008 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.001749/0.001749, allocations: 195.9 kB / 18 MB, free: 5.094 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.309/1.309, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1738/0.1738, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 67.88 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3005, allocations: 58.06 MB / 0.5036 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.005141/0.3057, allocations: 4.91 MB / 0.5084 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.3074, allocations: 1.294 MB / 0.5097 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.3075, allocations: 17.94 kB / 0.5097 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003869/0.3079, allocations: 121.1 kB / 0.5098 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005953/0.3086, allocations: 330.6 kB / 0.5101 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.3089, allocations: 158.5 kB / 0.5103 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005941/0.3095, allocations: 0.6931 MB / 0.511 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.3097, allocations: 168.7 kB / 0.5111 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003575/0.3101, allocations: 314.2 kB / 0.5114 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000565/0.3107, allocations: 433 kB / 0.5118 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/0.3108, allocations: 49.16 kB / 0.5119 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.3109, allocations: 47.69 kB / 0.5119 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.3111, allocations: 236.5 kB / 0.5122 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002661/0.3114, allocations: 281.7 kB / 0.5124 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006219/0.312, allocations: 0.6087 MB / 0.513 GB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.312, allocations: 1.125 kB / 0.513 GB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.312, allocations: 0 / 0.513 GB, free: 1.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.3121, allocations: 0 / 0.513 GB, free: 1.691 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001771/0.3138, allocations: 0.9662 MB / 0.514 GB, free: 1.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.3139, allocations: 13.27 kB / 0.514 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.287e-05/0.314, allocations: 71.95 kB / 0.514 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.3141, allocations: 54.67 kB / 0.5141 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.3152, allocations: 0.6146 MB / 0.5147 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.3152, allocations: 26.34 kB / 0.5147 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.123e-05/0.3153, allocations: 52.75 kB / 0.5148 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007582/0.3161, allocations: 0.5493 MB / 0.5153 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3161, allocations: 5 kB / 0.5153 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.3162, allocations: 11.28 kB / 0.5153 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003394/0.3165, allocations: 90.34 kB / 0.5154 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005905/0.3171, allocations: 358.8 kB / 0.5158 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.3202, allocations: 2.06 MB / 0.5178 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/0.321, allocations: 380 kB / 0.5181 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/0.3215, allocations: 293.7 kB / 0.5184 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.3216, allocations: 4.469 kB / 0.5184 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.3216, allocations: 44.47 kB / 0.5185 GB, free: 14.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.3216, allocations: 0 / 0.5185 GB, free: 14.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.004412/0.326, allocations: 2.545 MB / 0.5209 GB, free: 13.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.3261, allocations: 86.16 kB / 0.521 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003811/0.3265, allocations: 380 kB / 0.5214 GB, free: 12.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.3265, allocations: 31.67 kB / 0.5214 GB, free: 12.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.3267, allocations: 258.6 kB / 0.5217 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.3268, allocations: 138.5 kB / 0.5218 GB, free: 12.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.327, allocations: 99.31 kB / 0.5219 GB, free: 12.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3271, allocations: 362.8 kB / 0.5222 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.3275, allocations: 242.8 kB / 0.5225 GB, free: 12.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/0.3279, allocations: 365.2 kB / 0.5228 GB, free: 11.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007852/0.3287, allocations: 0.6119 MB / 0.5234 GB, free: 11.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3287, allocations: 1.688 kB / 0.5234 GB, free: 11.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001694/0.3304, allocations: 1.005 MB / 0.5244 GB, free: 11.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.3305, allocations: 6.031 kB / 0.5244 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3305, allocations: 13.17 kB / 0.5244 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009785/0.3315, allocations: 410.5 kB / 0.5248 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.3318, allocations: 83.23 kB / 0.5249 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005412/0.3372, allocations: 5.138 MB / 0.5299 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.3376, allocations: 42.19 kB / 0.5299 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.3376, allocations: 18.91 kB / 0.53 GB, free: 7.551 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000276/0.3379, allocations: 199.8 kB / 0.5301 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.338, allocations: 44.31 kB / 0.5302 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.3395, allocations: 0.8337 MB / 0.531 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3395, allocations: 3.875 kB / 0.531 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.3396, allocations: 2.719 kB / 0.531 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3396, allocations: 3 kB / 0.531 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002335/0.3419, allocations: 1.425 MB / 0.5324 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.3419, allocations: 3.938 kB / 0.5324 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.3421, allocations: 36.64 kB / 0.5324 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.3433, allocations: 453.6 kB / 0.5329 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.263e-05/0.3433, allocations: 34.91 kB / 0.5329 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005528/0.3489, allocations: 6.705 MB / 0.5395 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3489, allocations: 5.125 kB / 0.5395 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.3511, allocations: 1.127 MB / 0.5406 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/0.3514, allocations: 121.7 kB / 0.5407 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.3515, allocations: 29.33 kB / 0.5407 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003632/0.3519, allocations: 36.41 kB / 0.5407 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.3521, allocations: 35.44 kB / 0.5408 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.417e-05/0.3521, allocations: 19.8 kB / 0.5408 GB, free: 14.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004551/0.3526, allocations: 266.1 kB / 0.541 GB, free: 14.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3526, allocations: 0 / 0.541 GB, free: 14.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009843/0.3536, allocations: 153.8 kB / 0.5412 GB, free: 14.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.002085/0.3557, allocations: 1.683 MB / 0.5428 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.3578, allocations: 0.9036 MB / 0.5437 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.3578, allocations: 0 / 0.5437 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001543/0.3593, allocations: 1.08 MB / 0.5448 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008487/0.3602, allocations: 127 kB / 0.5449 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009576/0.3698, allocations: 6.284 MB / 0.551 GB, free: 6.102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.3703, allocations: 0.8898 MB / 0.5519 GB, free: 5.184 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.3705, allocations: 64.34 kB / 0.552 GB, free: 5.121 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.3707, allocations: 155.4 kB / 0.5521 GB, free: 4.973 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3708, allocations: 4 kB / 0.5521 GB, free: 4.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03599/0.4067, allocations: 12.48 MB / 0.5643 GB, free: 8.672 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.921/10.33, allocations: 11.58 kB / 0.5643 GB, free: 8.66 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches