Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",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.008273/0.008273, allocations: 99.34 kB / 15.73 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.002155/0.002155, allocations: 198.7 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06719/0.06719, allocations: 14.17 MB / 284.1 MB, free: 7 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001839/0.00184, allocations: 67.91 kB / 396 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3127, allocations: 50.15 MB / 446.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01416/0.3269, allocations: 13.88 MB / 460 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.3391, allocations: 5.942 MB / 466 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003339/0.3425, allocations: 36.44 kB / 466 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.3456, allocations: 0.7539 MB / 466.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008446/0.354, allocations: 2.742 MB / 469.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00188/0.3559, allocations: 0.6571 MB / 470.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00643/0.3624, allocations: 4.24 MB / 474.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006735/0.3631, allocations: 321 kB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002978/0.3661, allocations: 1.393 MB / 476.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002608/0.3687, allocations: 1.424 MB / 477.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005108/0.3692, allocations: 160 kB / 477.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00246/0.3717, allocations: 0.6208 MB / 478.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006878/0.3724, allocations: 378.3 kB / 478.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00273/0.3751, allocations: 1.248 MB / 479.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006351/0.3815, allocations: 3.352 MB / 483.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3815, allocations: 0 / 483.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3815, allocations: 0 / 483.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.249e-05/0.3816, allocations: 0 / 483.3 MB, free: 1.887 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.01424/0.3959, allocations: 3.398 MB / 486.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.443e-05/0.396, allocations: 8.031 kB / 486.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008223/0.3968, allocations: 228.3 kB / 486.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002655/0.3995, allocations: 355.4 kB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004634/0.4041, allocations: 1.416 MB / 488.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.4043, allocations: 119.2 kB / 488.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/0.4045, allocations: 152 kB / 488.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003191/0.4077, allocations: 1.794 MB / 490.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.8e-05/0.4078, allocations: 11.88 kB / 490.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.4079, allocations: 71.98 kB / 490.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.404e-05/0.408, allocations: 40 kB / 490.8 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002748/0.4107, allocations: 1.505 MB / 492.3 MB, free: 8.488 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/0.4283, allocations: 12.97 MB / 0.4935 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.4313, allocations: 1.872 MB / 0.4953 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.4325, allocations: 0.625 MB / 0.4959 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.73e-05/0.4326, allocations: 17.25 kB / 0.4959 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.4338, allocations: 0.7371 MB / 0.4966 GB, free: 7.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=151): time 4.819e-06/0.4338, allocations: 4 kB / 0.4966 GB, free: 7.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.007386/0.4412, allocations: 2.676 MB / 0.4993 GB, free: 4.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.4414, allocations: 234.9 kB / 0.4995 GB, free: 4.062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002745/0.4441, allocations: 1.259 MB / 0.5007 GB, free: 2.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.4443, allocations: 53.7 kB / 0.5008 GB, free: 2.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009837/0.4453, allocations: 0.8165 MB / 0.5016 GB, free: 1.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007405/0.446, allocations: 0.5422 MB / 0.5021 GB, free: 1.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005989/0.4466, allocations: 311.4 kB / 0.5024 GB, free: 1.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.4468, allocations: 305.1 kB / 0.5027 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.4479, allocations: 495.8 kB / 0.5032 GB, free: 264 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.4491, allocations: 0.9725 MB / 0.5041 GB, free: 15.08 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/0.4515, allocations: 1.696 MB / 0.5058 GB, free: 13.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.666e-05/0.4516, allocations: 8 kB / 0.5058 GB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.004178/0.4557, allocations: 2.082 MB / 0.5078 GB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.455e-05/0.4559, allocations: 67.39 kB / 0.5079 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.734e-05/0.4559, allocations: 12 kB / 0.5079 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.4572, allocations: 404.9 kB / 0.5083 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/0.4589, allocations: 423.4 kB / 0.5087 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006132/0.465, allocations: 4.014 MB / 0.5126 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.4675, allocations: 155.2 kB / 0.5127 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.4677, allocations: 75.98 kB / 0.5128 GB, free: 5.758 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 10 (transmissionLine.busFault.fault,$PRE.transmissionLine.busFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine.busFault.Y.im,$PRE.transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.re,$PRE.transmissionLine.busFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 197 * Array equations: 0 * Algorithm blocks: 2 * 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 {(5,27,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001088/0.4689, allocations: 477.2 kB / 0.5133 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006522/0.4695, allocations: 175 kB / 0.5134 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003324/0.4729, allocations: 1.701 MB / 0.5151 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.4729, allocations: 12 kB / 0.5151 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.22e-05/0.4729, allocations: 8.047 kB / 0.5151 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.4729, allocations: 11.95 kB / 0.5151 GB, free: 3.34 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007187/0.4801, allocations: 3.947 MB / 0.519 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.4802, allocations: 0 / 0.519 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.4815, allocations: 275.7 kB / 0.5192 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/0.4826, allocations: 356.6 kB / 0.5196 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.4828, allocations: 28 kB / 0.5196 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006314/0.4891, allocations: 3.983 MB / 0.5235 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4891, allocations: 3.938 kB / 0.5235 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0039/0.493, allocations: 1.746 MB / 0.5252 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/0.4943, allocations: 443.6 kB / 0.5256 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004886/0.4949, allocations: 28.25 kB / 0.5256 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/0.4964, allocations: 47.98 kB / 0.5257 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.4966, allocations: 89.19 kB / 0.5258 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/0.4968, allocations: 39.98 kB / 0.5258 GB, free: 8.051 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00161/0.4985, allocations: 0.845 MB / 0.5266 GB, free: 7.203 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4985, allocations: 0 / 0.5266 GB, free: 7.203 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002296/0.5008, allocations: 0.6441 MB / 0.5273 GB, free: 6.559 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,transmissionLine.busFault.Y.re,transmissionLine.busFault.Y.im,transmissionLine.busFault.fault) * Number of discrete states: 7 ($whenCondition4,transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.re,$whenCondition3,transmissionLine.busFault.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 2 * 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 {(5,27,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003827/0.5046, allocations: 2.446 MB / 0.5297 GB, free: 4.066 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003284/0.5079, allocations: 1.796 MB / 0.5314 GB, free: 2.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5079, allocations: 0 / 0.5314 GB, free: 2.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.5098, allocations: 1.078 MB / 0.5325 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/0.5119, allocations: 219.9 kB / 0.5327 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02541/0.5373, allocations: 12.8 MB / 0.5452 GB, free: 3.535 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.5387, allocations: 1.251 MB / 0.5464 GB, free: 2.254 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001178/0.5399, allocations: 216 kB / 0.5466 GB, free: 2.039 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/0.541, allocations: 0.6125 MB / 0.5472 GB, free: 1.426 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.541, allocations: 0 / 0.5472 GB, free: 1.426 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08184/0.6228, allocations: 37.28 MB / 0.5836 GB, free: 12.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.34, allocations: 8 kB / 0.5836 GB, free: 12.09 MB / 478.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches