Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.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.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",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.00524/0.005239, allocations: 100.9 kB / 15.73 MB, free: 6 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.001274/0.001274, allocations: 189.5 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.425/1.425, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07428/0.07428, 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.00202/0.00202, allocations: 71.89 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2295, allocations: 50.14 MB / 446.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine): time 0.007228/0.2368, allocations: 7.285 MB / 453.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005679/0.2425, allocations: 3.537 MB / 457 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008516/0.2434, allocations: 17.53 kB / 457 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.2446, allocations: 415.7 kB / 457.4 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003987/0.2486, allocations: 1.575 MB / 459 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.2499, allocations: 0.5791 MB / 459.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002468/0.2524, allocations: 1.853 MB / 461.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.2526, allocations: 121.2 kB / 461.5 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.2537, allocations: 0.6164 MB / 462.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009231/0.2546, allocations: 0.645 MB / 462.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.2547, allocations: 64.72 kB / 462.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.2558, allocations: 432.1 kB / 463.3 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.2559, allocations: 160.8 kB / 463.4 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006475/0.2566, allocations: 0.5471 MB / 464 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002199/0.2588, allocations: 1.529 MB / 465.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2588, allocations: 4 kB / 465.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2588, allocations: 0 / 465.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.2588, allocations: 0.875 kB / 465.5 MB, free: 3.676 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.005629/0.2645, allocations: 1.766 MB / 467.3 MB, free: 2.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.2645, allocations: 12.03 kB / 467.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.2647, allocations: 118.8 kB / 467.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006561/0.2653, allocations: 156.2 kB / 467.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.2667, allocations: 0.6889 MB / 468.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.2668, allocations: 58.12 kB / 468.3 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.401e-05/0.2669, allocations: 72 kB / 468.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.2681, allocations: 0.7503 MB / 469.1 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.2681, allocations: 0 / 469.1 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/0.2682, allocations: 36 kB / 469.1 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.2682, allocations: 16 kB / 469.2 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.2694, allocations: 0.734 MB / 469.9 MB, free: 15.36 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.006583/0.276, allocations: 4.808 MB / 474.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.2781, allocations: 1.174 MB / 475.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004963/0.2786, allocations: 322.7 kB / 476.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.865e-05/0.2787, allocations: 8.656 kB / 476.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.2787, allocations: 39.22 kB / 476.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 4.578e-06/0.2787, allocations: 4 kB / 476.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.003094/0.2818, allocations: 1.269 MB / 477.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.2819, allocations: 64 kB / 477.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007564/0.2827, allocations: 0.538 MB / 478.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.2827, allocations: 37.7 kB / 478.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/0.283, allocations: 356.9 kB / 478.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.2833, allocations: 301.3 kB / 478.8 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.2836, allocations: 134.6 kB / 478.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.2838, allocations: 370.8 kB / 479.3 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.2842, allocations: 229.8 kB / 479.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004718/0.2847, allocations: 316.9 kB / 479.8 MB, free: 4.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009293/0.2856, allocations: 0.5708 MB / 480.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2856, allocations: 0 / 480.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001645/0.2873, allocations: 0.8646 MB / 481.2 MB, free: 3.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2873, allocations: 4 kB / 481.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2873, allocations: 0 / 481.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005996/0.2879, allocations: 180.8 kB / 481.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008141/0.2887, allocations: 195.8 kB / 481.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003426/0.2922, allocations: 2.532 MB / 484.2 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008229/0.293, allocations: 59.7 kB / 484.2 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.2931, allocations: 20 kB / 484.2 MB, free: 140 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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.0004069/0.2935, allocations: 225.8 kB / 484.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.2937, allocations: 79.53 kB / 484.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.2953, allocations: 0.8377 MB / 485.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.2953, allocations: 11.98 kB / 485.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2953, allocations: 4 kB / 485.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.2953, allocations: 7.922 kB / 485.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002974/0.2983, allocations: 2.009 MB / 487.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2983, allocations: 0 / 487.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007142/0.2991, allocations: 163.8 kB / 487.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005262/0.2996, allocations: 180.3 kB / 487.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.2997, allocations: 12 kB / 487.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003366/0.303, allocations: 2.527 MB / 490.3 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3031, allocations: 4 kB / 490.3 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.3047, allocations: 0.8903 MB / 491.2 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000439/0.3051, allocations: 232.5 kB / 491.4 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.026e-05/0.3052, allocations: 12 kB / 491.4 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005412/0.3058, allocations: 24 kB / 491.4 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.3059, allocations: 52.58 kB / 491.5 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.65e-05/0.3059, allocations: 16 kB / 491.5 MB, free: 8.559 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005284/0.3065, allocations: 378.8 kB / 491.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3065, allocations: 0 / 491.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009236/0.3074, allocations: 315.8 kB / 492.2 MB, free: 7.883 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 (67): * Single equations (assignments): 66 * 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.002044/0.3095, allocations: 1.508 MB / 493.7 MB, free: 6.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.3111, allocations: 0.8303 MB / 494.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3111, allocations: 3.938 kB / 494.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009358/0.3121, allocations: 0.541 MB / 495.1 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.3132, allocations: 114.2 kB / 495.2 MB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.3232, allocations: 5.814 MB / 0.4892 GB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008038/0.3241, allocations: 0.9503 MB / 0.4902 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004274/0.3245, allocations: 89.3 kB / 0.4903 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004603/0.325, allocations: 275.3 kB / 0.4905 GB, free: 13.57 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.325, allocations: 0 / 0.4905 GB, free: 13.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07322/0.3982, allocations: 17.55 MB / 0.5077 GB, free: 12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.12, allocations: 8.656 kB / 0.5077 GB, free: 11.99 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_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_TwoBusesPowerTransferTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches