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.00776/0.00776, allocations: 102 kB / 15.73 MB, free: 6.051 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.001968/0.001968, allocations: 196.5 kB / 16.68 MB, free: 5.965 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.496/1.496, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06837/0.06837, allocations: 14.17 MB / 284.1 MB, free: 6.973 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.002055/0.002055, allocations: 79.89 kB / 396 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2502, allocations: 50.13 MB / 446.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01348/0.2638, allocations: 13.89 MB / 460 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.2738, allocations: 5.939 MB / 466 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.2757, allocations: 35.66 kB / 466 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.2777, allocations: 0.7507 MB / 466.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006929/0.2847, allocations: 2.627 MB / 469.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001835/0.2865, allocations: 0.6601 MB / 470 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006208/0.2927, allocations: 4.235 MB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007082/0.2935, allocations: 321 kB / 474.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002612/0.2961, allocations: 1.354 MB / 475.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002582/0.2987, allocations: 1.42 MB / 477.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003755/0.2991, allocations: 160 kB / 477.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002013/0.3011, allocations: 0.6364 MB / 478.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003747/0.3015, allocations: 370.3 kB / 478.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00177/0.3033, allocations: 1.244 MB / 479.7 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005111/0.3084, allocations: 3.356 MB / 483.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3084, allocations: 0 / 483.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3085, allocations: 0 / 483.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.548e-05/0.3085, allocations: 0 / 483.1 MB, free: 2.047 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.01176/0.3203, allocations: 3.398 MB / 486.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3203, allocations: 12.03 kB / 486.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002846/0.3206, allocations: 228.3 kB / 486.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.3223, allocations: 347.4 kB / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002917/0.3252, allocations: 1.428 MB / 488.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.3253, allocations: 119.2 kB / 488.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.3256, allocations: 148 kB / 488.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00283/0.3284, allocations: 1.798 MB / 490.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/0.3284, allocations: 7.938 kB / 490.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.3286, allocations: 72 kB / 490.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.199e-05/0.3286, allocations: 43.98 kB / 490.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002681/0.3313, allocations: 1.505 MB / 492.2 MB, free: 8.645 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.01715/0.3485, allocations: 12.96 MB / 0.4933 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002963/0.3515, allocations: 1.872 MB / 0.4951 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.3525, allocations: 0.625 MB / 0.4957 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.3526, allocations: 21.3 kB / 0.4958 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.3539, allocations: 0.741 MB / 0.4965 GB, free: 7.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=151): time 4.258e-06/0.3539, allocations: 0 / 0.4965 GB, free: 7.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.007032/0.3609, allocations: 2.676 MB / 0.4991 GB, free: 4.496 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001604/0.3611, allocations: 226.9 kB / 0.4993 GB, free: 4.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002027/0.3631, allocations: 1.267 MB / 0.5006 GB, free: 2.941 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.241e-05/0.3632, allocations: 57.7 kB / 0.5006 GB, free: 2.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000751/0.364, allocations: 0.8126 MB / 0.5014 GB, free: 2.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005654/0.3646, allocations: 0.5383 MB / 0.5019 GB, free: 1.512 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004655/0.365, allocations: 311.4 kB / 0.5022 GB, free: 1.203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3652, allocations: 309.1 kB / 0.5025 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009559/0.3661, allocations: 499.8 kB / 0.503 GB, free: 420 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.3674, allocations: 0.9686 MB / 0.5039 GB, free: 15.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/0.3698, allocations: 1.696 MB / 0.5056 GB, free: 13.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.3698, allocations: 4 kB / 0.5056 GB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.004003/0.3738, allocations: 2.085 MB / 0.5076 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.015e-05/0.374, allocations: 63.41 kB / 0.5077 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.374, allocations: 16 kB / 0.5077 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.3752, allocations: 405 kB / 0.5081 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/0.3769, allocations: 419.4 kB / 0.5085 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005929/0.3828, allocations: 4.018 MB / 0.5124 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/0.385, allocations: 147.2 kB / 0.5126 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.3852, allocations: 79.98 kB / 0.5126 GB, free: 5.918 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.0009213/0.3861, allocations: 473.3 kB / 0.5131 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/0.3866, allocations: 178.9 kB / 0.5133 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003152/0.3897, allocations: 1.697 MB / 0.5149 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/0.3898, allocations: 12 kB / 0.5149 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.3898, allocations: 4 kB / 0.5149 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/0.3898, allocations: 11.97 kB / 0.515 GB, free: 3.508 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.006082/0.3959, allocations: 3.95 MB / 0.5188 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3959, allocations: 0 / 0.5188 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.3972, allocations: 271.8 kB / 0.5191 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.3983, allocations: 360.6 kB / 0.5194 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.108e-05/0.3983, allocations: 28 kB / 0.5194 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005816/0.4042, allocations: 3.984 MB / 0.5233 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.4042, allocations: 11.92 kB / 0.5233 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003189/0.4074, allocations: 1.742 MB / 0.525 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009405/0.4084, allocations: 439.6 kB / 0.5255 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002626/0.4086, allocations: 43.92 kB / 0.5255 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.4098, allocations: 32 kB / 0.5255 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/0.41, allocations: 93.17 kB / 0.5256 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/0.4101, allocations: 40 kB / 0.5257 GB, free: 8.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001275/0.4114, allocations: 0.8411 MB / 0.5265 GB, free: 7.367 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4114, allocations: 0 / 0.5265 GB, free: 7.367 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001698/0.4131, allocations: 0.648 MB / 0.5271 GB, free: 6.719 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.00356/0.4166, allocations: 2.446 MB / 0.5295 GB, free: 4.227 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003128/0.4198, allocations: 1.795 MB / 0.5313 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4198, allocations: 256 / 0.5313 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.4215, allocations: 1.082 MB / 0.5323 GB, free: 1.277 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/0.423, allocations: 212.8 kB / 0.5325 GB, free: 1.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0217/0.4447, allocations: 12.81 MB / 0.545 GB, free: 3.691 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009593/0.4457, allocations: 1.251 MB / 0.5462 GB, free: 2.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000955/0.4467, allocations: 212.1 kB / 0.5465 GB, free: 2.199 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009568/0.4477, allocations: 0.6125 MB / 0.547 GB, free: 1.586 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4477, allocations: 0 / 0.547 GB, free: 1.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08127/0.5289, allocations: 37.29 MB / 0.5835 GB, free: 12.26 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.36, allocations: 8.062 kB / 0.5835 GB, free: 12.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat","/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