Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.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.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",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.004712/0.004712, allocations: 98.55 kB / 15.73 MB, free: 6.043 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.001313/0.001313, allocations: 201.9 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.374/1.374, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06492/0.06492, allocations: 14.17 MB / 284.1 MB, free: 6.992 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.002196/0.002196, allocations: 67.89 kB / 396 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2533, allocations: 50.14 MB / 446.1 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine): time 0.007095/0.2604, allocations: 7.287 MB / 453.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005456/0.2659, allocations: 3.538 MB / 457 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005202/0.2665, allocations: 16.97 kB / 457 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009862/0.2675, allocations: 416.6 kB / 457.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003557/0.2711, allocations: 1.574 MB / 459 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.2722, allocations: 0.5752 MB / 459.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00227/0.2745, allocations: 1.842 MB / 461.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.2747, allocations: 129.4 kB / 461.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008787/0.2756, allocations: 0.6143 MB / 462.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008003/0.2764, allocations: 0.6417 MB / 462.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.497e-05/0.2765, allocations: 61.41 kB / 462.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009862/0.2775, allocations: 425.9 kB / 463.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.2777, allocations: 164.3 kB / 463.4 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005487/0.2782, allocations: 0.5439 MB / 463.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002064/0.2803, allocations: 1.51 MB / 465.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2803, allocations: 5.094 kB / 465.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2803, allocations: 0 / 465.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.2804, allocations: 0 / 465.5 MB, free: 3.465 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.005382/0.2857, allocations: 1.767 MB / 467.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.2858, allocations: 12.03 kB / 467.2 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.286, allocations: 122.7 kB / 467.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000613/0.2866, allocations: 152.2 kB / 467.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.2879, allocations: 0.6811 MB / 468.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.86e-05/0.2879, allocations: 62.12 kB / 468.2 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.288, allocations: 72 kB / 468.3 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.2892, allocations: 0.7693 MB / 469.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.2893, allocations: 0 / 469.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.2893, allocations: 32 kB / 469.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.2893, allocations: 20 kB / 469.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.2905, allocations: 0.7026 MB / 469.8 MB, free: 15.23 MB / 350.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.006533/0.2971, allocations: 5.081 MB / 474.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.2988, allocations: 0.9589 MB / 475.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.2992, allocations: 306.7 kB / 476.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.8e-05/0.2993, allocations: 12.59 kB / 476.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.2993, allocations: 39.22 kB / 476.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 4.659e-06/0.2993, allocations: 4 kB / 476.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=78): time 0.002907/0.3022, allocations: 1.245 MB / 477.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.3023, allocations: 64.05 kB / 477.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007451/0.3031, allocations: 0.5459 MB / 478.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.3031, allocations: 37.7 kB / 478.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002869/0.3034, allocations: 380.6 kB / 478.5 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/0.3037, allocations: 277.5 kB / 478.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.3039, allocations: 134.6 kB / 478.9 MB, free: 5.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.3041, allocations: 378.8 kB / 479.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.3045, allocations: 217.9 kB / 479.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004494/0.3049, allocations: 332.3 kB / 479.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008741/0.3058, allocations: 0.5859 MB / 480.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3058, allocations: 0 / 480.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001526/0.3073, allocations: 0.8761 MB / 481.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.3074, allocations: 4 kB / 481.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3074, allocations: 4 kB / 481.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000589/0.308, allocations: 185 kB / 481.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007856/0.3088, allocations: 199.7 kB / 481.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00332/0.3121, allocations: 2.536 MB / 484.2 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007211/0.3128, allocations: 47.83 kB / 484.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.3129, allocations: 27.94 kB / 484.3 MB, free: 15.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003233/0.3132, allocations: 225.7 kB / 484.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.3134, allocations: 79.53 kB / 484.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.3148, allocations: 0.8023 MB / 485.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.3148, allocations: 12 kB / 485.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3148, allocations: 4 kB / 485.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3149, allocations: 3.984 kB / 485.4 MB, free: 14.79 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 postOpt removeSimpleEquations (simulation): time 0.002681/0.3175, allocations: 1.854 MB / 487.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3176, allocations: 4 kB / 487.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006853/0.3183, allocations: 159.8 kB / 487.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004977/0.3188, allocations: 168.7 kB / 487.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.61e-05/0.3188, allocations: 15.98 kB / 487.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003109/0.3219, allocations: 2.532 MB / 490.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3219, allocations: 0 / 490.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.3234, allocations: 0.8591 MB / 491 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003807/0.3238, allocations: 228.5 kB / 491.2 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.474e-05/0.3239, allocations: 19.98 kB / 491.2 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.3244, allocations: 20 kB / 491.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/0.3245, allocations: 48.53 kB / 491.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.3245, allocations: 23.98 kB / 491.3 MB, free: 8.605 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004991/0.3251, allocations: 382.8 kB / 491.7 MB, free: 8.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3251, allocations: 0 / 491.7 MB, free: 8.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009327/0.326, allocations: 307.8 kB / 492 MB, free: 7.934 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001845/0.3278, allocations: 1.488 MB / 493.5 MB, free: 6.414 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.3293, allocations: 0.8069 MB / 494.3 MB, free: 5.598 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3293, allocations: 384 / 494.3 MB, free: 5.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008148/0.3302, allocations: 0.537 MB / 494.8 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007164/0.3309, allocations: 109.3 kB / 494.9 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008562/0.3395, allocations: 5.844 MB / 0.489 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005887/0.3401, allocations: 0.9464 MB / 0.4899 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.3405, allocations: 89.3 kB / 0.49 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.3409, allocations: 267.3 kB / 0.4903 GB, free: 13.62 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3409, allocations: 4 kB / 0.4903 GB, free: 13.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04942/0.3903, allocations: 17.35 MB / 0.5072 GB, free: 12.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.72, allocations: 12.33 kB / 0.5072 GB, free: 12.23 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine_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_TwoBusesInductiveTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches