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.007399/0.007399, allocations: 97.56 kB / 15.73 MB, free: 6.055 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.001753/0.001753, allocations: 191.4 kB / 16.67 MB, free: 5.977 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.423/1.423, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06504/0.06504, allocations: 14.16 MB / 284.1 MB, free: 6.961 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.001681/0.001681, allocations: 67.89 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2486, allocations: 50.14 MB / 446.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine): time 0.006705/0.2554, allocations: 7.291 MB / 453.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005641/0.261, allocations: 3.533 MB / 457 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007561/0.2618, allocations: 17.47 kB / 457 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.2629, allocations: 420.4 kB / 457.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004307/0.2672, allocations: 1.625 MB / 459 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.2685, allocations: 0.5719 MB / 459.6 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002462/0.2709, allocations: 1.849 MB / 461.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003032/0.2712, allocations: 124.9 kB / 461.6 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.2725, allocations: 0.6393 MB / 462.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.2737, allocations: 0.633 MB / 462.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.2738, allocations: 61.75 kB / 462.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.2752, allocations: 422 kB / 463.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.2754, allocations: 163.9 kB / 463.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006823/0.2761, allocations: 0.5436 MB / 464 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002551/0.2786, allocations: 1.515 MB / 465.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2787, allocations: 0 / 465.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2787, allocations: 0 / 465.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.2787, allocations: 1.062 kB / 465.5 MB, free: 3.426 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.00571/0.2844, allocations: 1.77 MB / 467.3 MB, free: 1.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.2845, allocations: 11.97 kB / 467.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.2846, allocations: 122.8 kB / 467.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006522/0.2853, allocations: 152.2 kB / 467.6 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.2867, allocations: 0.685 MB / 468.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/0.2868, allocations: 58.12 kB / 468.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.431e-05/0.2869, allocations: 72 kB / 468.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.2881, allocations: 0.7733 MB / 469.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.2881, allocations: 0 / 469.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.626e-05/0.2882, allocations: 28 kB / 469.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.2882, allocations: 20 kB / 469.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.2893, allocations: 0.7027 MB / 469.9 MB, free: 15.17 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.006094/0.2954, allocations: 5.077 MB / 475 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.2971, allocations: 0.9667 MB / 475.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000413/0.2975, allocations: 302.7 kB / 476.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-05/0.2975, allocations: 12.59 kB / 476.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.2976, allocations: 43.2 kB / 476.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 3.797e-06/0.2976, allocations: 0 / 476.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=78): time 0.002816/0.3004, allocations: 1.249 MB / 477.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.3005, allocations: 60.06 kB / 477.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006679/0.3011, allocations: 0.5498 MB / 478.2 MB, free: 6.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.3012, allocations: 37.7 kB / 478.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/0.3014, allocations: 368.6 kB / 478.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/0.3016, allocations: 293.5 kB / 478.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.3019, allocations: 130.6 kB / 479 MB, free: 5.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.302, allocations: 378.7 kB / 479.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.3023, allocations: 217.9 kB / 479.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/0.3028, allocations: 332.3 kB / 479.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007843/0.3036, allocations: 0.5898 MB / 480.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3036, allocations: 4 kB / 480.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001444/0.3051, allocations: 0.8684 MB / 481.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3051, allocations: 8 kB / 481.3 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.3051, allocations: 0 / 481.3 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005596/0.3057, allocations: 184.6 kB / 481.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007761/0.3065, allocations: 203.8 kB / 481.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002937/0.3094, allocations: 2.529 MB / 484.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007258/0.3101, allocations: 47.73 kB / 484.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/0.3102, allocations: 24 kB / 484.3 MB, free: 15.88 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.0003109/0.3105, allocations: 225.7 kB / 484.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.3107, allocations: 83.47 kB / 484.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.3121, allocations: 0.7984 MB / 485.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.3121, allocations: 12.08 kB / 485.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.3121, allocations: 4 kB / 485.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3121, allocations: 7.984 kB / 485.4 MB, free: 14.73 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.002685/0.3148, allocations: 1.854 MB / 487.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3148, allocations: 0 / 487.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006894/0.3155, allocations: 159.8 kB / 487.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005211/0.3161, allocations: 180.2 kB / 487.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/0.3161, allocations: 12 kB / 487.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.3193, allocations: 2.535 MB / 490.2 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3193, allocations: 0 / 490.2 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.3208, allocations: 0.863 MB / 491 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005747/0.3214, allocations: 228.5 kB / 491.3 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.3216, allocations: 12 kB / 491.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006494/0.3223, allocations: 24 kB / 491.3 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.803e-05/0.3224, allocations: 52.52 kB / 491.4 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.3224, allocations: 16 kB / 491.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005432/0.3229, allocations: 386.8 kB / 491.7 MB, free: 8.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.323, allocations: 0 / 491.7 MB, free: 8.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001065/0.324, allocations: 311.8 kB / 492 MB, free: 7.871 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.001891/0.3259, allocations: 1.481 MB / 493.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.3276, allocations: 0.811 MB / 494.3 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3276, allocations: 0 / 494.3 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000866/0.3285, allocations: 0.541 MB / 494.9 MB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.3296, allocations: 110.3 kB / 495 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.3398, allocations: 5.832 MB / 0.4891 GB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.3404, allocations: 0.9386 MB / 0.49 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004236/0.3409, allocations: 97.28 kB / 0.4901 GB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004408/0.3413, allocations: 275.3 kB / 0.4904 GB, free: 13.56 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3413, allocations: 0 / 0.4904 GB, free: 13.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04186/0.3832, allocations: 17.36 MB / 0.5073 GB, free: 12.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.24, allocations: 3.781 kB / 0.5073 GB, free: 12.17 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