Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.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.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",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.008414/0.008414, allocations: 101 kB / 15.73 MB, free: 6.059 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.002233/0.002233, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.377/1.377, allocations: 205.1 MB / 222.6 MB, free: 4.406 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06724/0.06724, allocations: 14.16 MB / 284.1 MB, free: 6.863 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.002207/0.002207, allocations: 76.09 kB / 396 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2589, allocations: 50.13 MB / 446.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.007618/0.2665, allocations: 7.295 MB / 453.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005674/0.2722, allocations: 3.541 MB / 457 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006282/0.2729, allocations: 16.72 kB / 457 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.274, allocations: 408.9 kB / 457.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003691/0.2777, allocations: 1.578 MB / 459 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.2789, allocations: 0.5672 MB / 459.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002237/0.2811, allocations: 1.848 MB / 461.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.2814, allocations: 126 kB / 461.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.2824, allocations: 0.6192 MB / 462.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008651/0.2833, allocations: 0.6407 MB / 462.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.2834, allocations: 61.34 kB / 462.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009524/0.2844, allocations: 422.5 kB / 463.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.2845, allocations: 168.7 kB / 463.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005848/0.2851, allocations: 0.5385 MB / 463.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002047/0.2872, allocations: 1.511 MB / 465.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2872, allocations: 0 / 465.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2872, allocations: 1.031 kB / 465.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.2872, allocations: 0 / 465.4 MB, free: 3.477 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.005525/0.2928, allocations: 1.768 MB / 467.2 MB, free: 1.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.2928, allocations: 15.97 kB / 467.2 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.293, allocations: 118.8 kB / 467.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006351/0.2936, allocations: 152.2 kB / 467.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.295, allocations: 0.6811 MB / 468.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.7e-05/0.2951, allocations: 62.12 kB / 468.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.2952, allocations: 64 kB / 468.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.2964, allocations: 0.7771 MB / 469.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.2965, allocations: 0 / 469.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/0.2965, allocations: 32 kB / 469.1 MB, free: 0 / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.56e-05/0.2966, allocations: 16.05 kB / 469.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.2978, allocations: 0.7065 MB / 469.8 MB, free: 15.27 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.006763/0.3045, allocations: 5.081 MB / 474.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.3063, allocations: 0.959 MB / 475.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004559/0.3067, allocations: 310.6 kB / 476.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.299e-05/0.3068, allocations: 8.656 kB / 476.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.3069, allocations: 47.2 kB / 476.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 2.404e-06/0.3069, allocations: 3.938 kB / 476.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=78): time 0.004007/0.3109, allocations: 1.241 MB / 477.5 MB, free: 7.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.311, allocations: 60.06 kB / 477.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009226/0.3119, allocations: 0.5498 MB / 478.1 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.061e-05/0.312, allocations: 45.64 kB / 478.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.3123, allocations: 376.6 kB / 478.5 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000319/0.3127, allocations: 281.5 kB / 478.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/0.3129, allocations: 134.6 kB / 478.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.3131, allocations: 370.8 kB / 479.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.3135, allocations: 217.9 kB / 479.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.314, allocations: 332.3 kB / 479.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009306/0.3149, allocations: 0.5937 MB / 480.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3149, allocations: 0 / 480.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001647/0.3166, allocations: 0.8723 MB / 481.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3166, allocations: 4 kB / 481.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.3166, allocations: 4.312 kB / 481.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.3172, allocations: 184 kB / 481.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000808/0.318, allocations: 199.8 kB / 481.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003379/0.3214, allocations: 2.532 MB / 484.2 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007941/0.3222, allocations: 47.73 kB / 484.2 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.137e-05/0.3223, allocations: 28.05 kB / 484.3 MB, free: 15.97 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.0003522/0.3227, allocations: 225.6 kB / 484.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001706/0.3229, allocations: 75.53 kB / 484.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.3243, allocations: 0.8062 MB / 485.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.495e-06/0.3244, allocations: 8.094 kB / 485.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3244, allocations: 3.984 kB / 485.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.3244, allocations: 7.984 kB / 485.4 MB, free: 14.83 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.002851/0.3272, allocations: 1.858 MB / 487.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3273, allocations: 0 / 487.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006882/0.328, allocations: 163.8 kB / 487.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004888/0.3285, allocations: 168.7 kB / 487.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.3285, allocations: 12 kB / 487.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/0.3318, allocations: 2.536 MB / 490.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3318, allocations: 0 / 490.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.3333, allocations: 0.863 MB / 491 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004089/0.3337, allocations: 228.5 kB / 491.2 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.995e-05/0.3338, allocations: 16 kB / 491.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005351/0.3344, allocations: 16 kB / 491.2 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.986e-05/0.3345, allocations: 52.52 kB / 491.3 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.3345, allocations: 20 kB / 491.3 MB, free: 8.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005237/0.335, allocations: 382.8 kB / 491.7 MB, free: 8.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3351, allocations: 0 / 491.7 MB, free: 8.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009212/0.336, allocations: 311.8 kB / 492 MB, free: 7.973 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.001938/0.3379, allocations: 1.489 MB / 493.5 MB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.3395, allocations: 0.8148 MB / 494.3 MB, free: 5.629 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3395, allocations: 0 / 494.3 MB, free: 5.629 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008496/0.3403, allocations: 0.5332 MB / 494.8 MB, free: 5.082 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.3411, allocations: 109.5 kB / 494.9 MB, free: 4.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00884/0.3499, allocations: 5.832 MB / 0.489 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/0.3506, allocations: 0.9425 MB / 0.4899 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004174/0.3511, allocations: 101.3 kB / 0.49 GB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/0.3515, allocations: 275.3 kB / 0.4903 GB, free: 13.65 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3515, allocations: 0 / 0.4903 GB, free: 13.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05196/0.4035, allocations: 17.35 MB / 0.5072 GB, free: 12.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.75, allocations: 352 / 0.5072 GB, free: 12.28 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_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_TwoBusesResistiveTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches