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.001682/0.001682, allocations: 107.9 kB / 17.06 MB, free: 5.82 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.001822/0.001822, allocations: 195.9 kB / 18 MB, free: 4.965 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.557/1.557, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1866/0.1866, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 79.88 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3995, allocations: 58.06 MB / 0.5036 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.006049/0.4056, allocations: 4.915 MB / 0.5084 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.4078, allocations: 1.29 MB / 0.5097 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002627/0.408, allocations: 18.06 kB / 0.5097 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004504/0.4085, allocations: 125.5 kB / 0.5098 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007813/0.4093, allocations: 325.9 kB / 0.5101 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004619/0.4098, allocations: 158.8 kB / 0.5103 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007505/0.4106, allocations: 0.691 MB / 0.511 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000287/0.4109, allocations: 171.8 kB / 0.5111 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004012/0.4113, allocations: 298.6 kB / 0.5114 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000674/0.4119, allocations: 443.7 kB / 0.5118 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.325e-05/0.4121, allocations: 49.5 kB / 0.5119 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.4122, allocations: 50.94 kB / 0.5119 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002723/0.4125, allocations: 235.7 kB / 0.5122 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002886/0.4128, allocations: 278.2 kB / 0.5124 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007563/0.4135, allocations: 0.6087 MB / 0.513 GB, free: 1.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4135, allocations: 1.031 kB / 0.513 GB, free: 1.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4135, allocations: 0 / 0.513 GB, free: 1.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.4136, allocations: 0 / 0.513 GB, free: 1.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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001831/0.4154, allocations: 0.9621 MB / 0.514 GB, free: 1.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.4154, allocations: 13.95 kB / 0.514 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.499e-05/0.4155, allocations: 72.09 kB / 0.514 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.4156, allocations: 54.27 kB / 0.5141 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.4167, allocations: 0.6222 MB / 0.5147 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/0.4167, allocations: 27.5 kB / 0.5147 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-05/0.4168, allocations: 44.72 kB / 0.5148 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008573/0.4177, allocations: 0.5502 MB / 0.5153 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.4177, allocations: 0 / 0.5153 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.196e-05/0.4178, allocations: 12.3 kB / 0.5153 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003348/0.4181, allocations: 90.28 kB / 0.5154 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006601/0.4188, allocations: 353.8 kB / 0.5157 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003055/0.4218, allocations: 2.067 MB / 0.5178 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008927/0.4227, allocations: 381.6 kB / 0.5181 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005449/0.4233, allocations: 292.4 kB / 0.5184 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.4234, allocations: 4.406 kB / 0.5184 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.4234, allocations: 40.75 kB / 0.5184 GB, free: 14.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.515e-06/0.4234, allocations: 1.062 kB / 0.5184 GB, free: 14.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.004918/0.4283, allocations: 2.545 MB / 0.5209 GB, free: 13.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.4284, allocations: 86.02 kB / 0.521 GB, free: 13.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004728/0.4289, allocations: 380.4 kB / 0.5214 GB, free: 13.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.4289, allocations: 31.02 kB / 0.5214 GB, free: 13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.4292, allocations: 255 kB / 0.5216 GB, free: 12.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.4293, allocations: 142.2 kB / 0.5218 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.4295, allocations: 100.6 kB / 0.5219 GB, free: 12.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.4297, allocations: 365.7 kB / 0.5222 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.4301, allocations: 242.4 kB / 0.5225 GB, free: 12.22 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.4305, allocations: 362.2 kB / 0.5228 GB, free: 12.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008763/0.4314, allocations: 0.6107 MB / 0.5234 GB, free: 11.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4314, allocations: 1.406 kB / 0.5234 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00185/0.4333, allocations: 1.009 MB / 0.5244 GB, free: 11.4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.4333, allocations: 6.875 kB / 0.5244 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.4333, allocations: 11.56 kB / 0.5244 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.4344, allocations: 399.8 kB / 0.5248 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002895/0.4347, allocations: 82.72 kB / 0.5249 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005936/0.4406, allocations: 5.139 MB / 0.5299 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004944/0.4412, allocations: 41.58 kB / 0.5299 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.4412, allocations: 24.61 kB / 0.5299 GB, free: 7.656 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.000345/0.4416, allocations: 202 kB / 0.5301 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.981e-05/0.4417, allocations: 48.36 kB / 0.5302 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.4432, allocations: 0.8337 MB / 0.531 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.4433, allocations: 3.562 kB / 0.531 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.4433, allocations: 3.5 kB / 0.531 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4433, allocations: 1.922 kB / 0.531 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.4456, allocations: 1.421 MB / 0.5324 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4457, allocations: 1.062 kB / 0.5324 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.4458, allocations: 39.78 kB / 0.5324 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.4471, allocations: 454.3 kB / 0.5329 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.57e-05/0.4472, allocations: 34.84 kB / 0.5329 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006046/0.4532, allocations: 6.71 MB / 0.5395 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4532, allocations: 0 / 0.5395 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.4552, allocations: 1.128 MB / 0.5406 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.4554, allocations: 120.7 kB / 0.5407 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.171e-05/0.4555, allocations: 29.61 kB / 0.5407 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/0.4558, allocations: 36.97 kB / 0.5407 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.4559, allocations: 35.34 kB / 0.5408 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.654e-05/0.4559, allocations: 23.14 kB / 0.5408 GB, free: 14.94 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003098/0.4562, allocations: 265.8 kB / 0.541 GB, free: 14.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4563, allocations: 1.062 kB / 0.541 GB, free: 14.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007092/0.457, allocations: 153.4 kB / 0.5412 GB, free: 14.76 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.00212/0.4591, allocations: 1.675 MB / 0.5428 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001823/0.4609, allocations: 0.9074 MB / 0.5437 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.461, allocations: 3.938 kB / 0.5437 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.4626, allocations: 1.076 MB / 0.5448 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008256/0.4635, allocations: 134.2 kB / 0.5449 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009943/0.4734, allocations: 6.278 MB / 0.551 GB, free: 6.125 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006227/0.4741, allocations: 0.8859 MB / 0.5519 GB, free: 5.211 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002777/0.4744, allocations: 68.34 kB / 0.552 GB, free: 5.145 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.4746, allocations: 151.4 kB / 0.5521 GB, free: 5 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4746, allocations: 4 kB / 0.5521 GB, free: 4.996 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06096/0.5356, allocations: 12.48 MB / 0.5643 GB, free: 8.695 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/11.05, allocations: 11.58 kB / 0.5643 GB, free: 8.684 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