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.001577/0.001577, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.393/1.393, allocations: 205.1 MB / 222.4 MB, free: 4.625 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0623/0.0623, allocations: 14.18 MB / 283.9 MB, free: 7.078 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.001563/0.001563, allocations: 62.78 kB / 345.2 MB, free: 19.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08475/0.08632, allocations: 50.13 MB / 395.3 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine): time 0.007668/0.09403, allocations: 7.295 MB / 402.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005054/0.09911, allocations: 3.533 MB / 406.1 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007488/0.09988, allocations: 15.94 kB / 406.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.101, allocations: 425.7 kB / 406.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00424/0.1053, allocations: 1.574 MB / 408.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.1065, allocations: 0.5753 MB / 408.7 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002233/0.1087, allocations: 1.828 MB / 410.5 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.109, allocations: 134.5 kB / 410.7 MB, free: 1.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.1101, allocations: 0.6148 MB / 411.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.1111, allocations: 0.642 MB / 411.9 MB, free: 452 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001887/0.1113, allocations: 64 kB / 412 MB, free: 388 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.1124, allocations: 431.7 kB / 412.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.1126, allocations: 163.2 kB / 412.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007748/0.1134, allocations: 0.5481 MB / 413.1 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.1152, allocations: 1.449 MB / 414.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1152, allocations: 0 / 414.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1152, allocations: 0 / 414.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.973e-05/0.1152, allocations: 0 / 414.6 MB, free: 13.79 MB / 318.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.005637/0.1209, allocations: 1.746 MB / 416.3 MB, free: 11.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.1209, allocations: 12.03 kB / 416.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.1211, allocations: 122.8 kB / 416.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006853/0.1218, allocations: 147.7 kB / 416.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.123, allocations: 0.6687 MB / 417.3 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.123, allocations: 62.12 kB / 417.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.993e-05/0.1232, allocations: 75.94 kB / 417.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.1244, allocations: 0.7542 MB / 418.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.1244, allocations: 0 / 418.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-05/0.1245, allocations: 32 kB / 418.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.1245, allocations: 16 kB / 418.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.1258, allocations: 0.73 MB / 418.9 MB, free: 9.305 MB / 318.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.006152/0.1319, allocations: 4.839 MB / 423.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.1338, allocations: 1.163 MB / 424.9 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004566/0.1342, allocations: 326.7 kB / 425.2 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.138e-05/0.1343, allocations: 12.64 kB / 425.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.1343, allocations: 39.22 kB / 425.3 MB, free: 2.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=82): time 2.024e-06/0.1343, allocations: 0 / 425.3 MB, free: 2.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=82): time 0.002834/0.1372, allocations: 1.26 MB / 426.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.1372, allocations: 60.06 kB / 426.6 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006402/0.1379, allocations: 0.5413 MB / 427.2 MB, free: 412 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.1379, allocations: 41.7 kB / 427.2 MB, free: 364 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.1382, allocations: 356.1 kB / 427.5 MB, free: 0 / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1383/0.2765, allocations: 281.3 kB / 427.8 MB, free: 37.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.2767, allocations: 129.2 kB / 427.9 MB, free: 37.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2769, allocations: 374.4 kB / 428.3 MB, free: 37.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003827/0.2773, allocations: 224.1 kB / 428.5 MB, free: 37.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/0.2777, allocations: 317.6 kB / 428.8 MB, free: 37.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007357/0.2784, allocations: 0.5775 MB / 429.4 MB, free: 37.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.2784, allocations: 1.031 kB / 429.4 MB, free: 37.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001554/0.28, allocations: 0.8537 MB / 430.3 MB, free: 37.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.28, allocations: 9.562 kB / 430.3 MB, free: 37.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.28, allocations: 5.859 kB / 430.3 MB, free: 37.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006056/0.2806, allocations: 182.7 kB / 430.5 MB, free: 37.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000795/0.2814, allocations: 193.4 kB / 430.7 MB, free: 37.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002703/0.2842, allocations: 2.535 MB / 433.2 MB, free: 35.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007026/0.2849, allocations: 50 kB / 433.2 MB, free: 35.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.269e-05/0.2849, allocations: 27.42 kB / 433.3 MB, free: 35.16 MB / 318.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.0002614/0.2852, allocations: 220.4 kB / 433.5 MB, free: 34.97 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2853, allocations: 73.58 kB / 433.6 MB, free: 34.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.2867, allocations: 0.8366 MB / 434.4 MB, free: 34.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.2867, allocations: 11.94 kB / 434.4 MB, free: 34.53 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2867, allocations: 2.156 kB / 434.4 MB, free: 34.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.2868, allocations: 5.094 kB / 434.4 MB, free: 34.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.2891, allocations: 2.016 MB / 436.4 MB, free: 33.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2891, allocations: 0.8438 kB / 436.4 MB, free: 33.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007332/0.2899, allocations: 167.8 kB / 436.6 MB, free: 33.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000482/0.2904, allocations: 177.4 kB / 436.8 MB, free: 33.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.2904, allocations: 16.66 kB / 436.8 MB, free: 33.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/0.293, allocations: 2.523 MB / 439.3 MB, free: 31.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.293, allocations: 0.5625 kB / 439.3 MB, free: 31.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.2942, allocations: 0.8854 MB / 440.2 MB, free: 30.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.2945, allocations: 230.3 kB / 440.4 MB, free: 30.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-05/0.2946, allocations: 15.84 kB / 440.4 MB, free: 30.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005227/0.2951, allocations: 20.69 kB / 440.4 MB, free: 30.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.218e-05/0.2952, allocations: 51.78 kB / 440.5 MB, free: 30.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/0.2953, allocations: 19.34 kB / 440.5 MB, free: 30.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004453/0.2957, allocations: 382 kB / 440.9 MB, free: 30.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.32e-07/0.2957, allocations: 0 / 440.9 MB, free: 30.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009286/0.2967, allocations: 310.9 kB / 441.2 MB, free: 30.42 MB / 318.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.001563/0.2982, allocations: 1.502 MB / 442.7 MB, free: 29.39 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.3, allocations: 0.8571 MB / 443.6 MB, free: 29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3, allocations: 0 / 443.6 MB, free: 29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007765/0.3008, allocations: 0.5401 MB / 444.1 MB, free: 28.72 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007198/0.3015, allocations: 116.5 kB / 444.2 MB, free: 28.66 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007192/0.3087, allocations: 6.011 MB / 450.2 MB, free: 25.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.3091, allocations: 0.9442 MB / 451.2 MB, free: 24.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004332/0.3095, allocations: 89.89 kB / 451.2 MB, free: 24.49 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/0.3098, allocations: 277.8 kB / 451.5 MB, free: 24.29 MB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3098, allocations: 0 / 451.5 MB, free: 24.29 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03931/0.3491, allocations: 17.23 MB / 468.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.557/9.906, allocations: 8.578 kB / 468.8 MB, free: 9.398 MB / 318.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