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.001545/0.001545, 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.001666/0.001666, allocations: 198.3 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.347/1.347, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06213/0.06213, allocations: 14.17 MB / 283.9 MB, free: 7.086 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.0015/0.0015, allocations: 70.77 kB / 345.2 MB, free: 19.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07531/0.07682, allocations: 50.13 MB / 395.3 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine): time 0.007297/0.08416, allocations: 7.291 MB / 402.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004798/0.08898, allocations: 3.537 MB / 406.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006137/0.08963, allocations: 15.94 kB / 406.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009857/0.09063, allocations: 417.7 kB / 406.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003285/0.09393, allocations: 1.58 MB / 408.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001038/0.09498, allocations: 0.572 MB / 408.7 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001866/0.09686, allocations: 1.829 MB / 410.5 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.09711, allocations: 130.5 kB / 410.7 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000738/0.09785, allocations: 0.6148 MB / 411.3 MB, free: 1.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007981/0.09866, allocations: 0.6381 MB / 411.9 MB, free: 460 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.09881, allocations: 60 kB / 412 MB, free: 400 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008341/0.09965, allocations: 431.7 kB / 412.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.09979, allocations: 163.2 kB / 412.6 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005421/0.1003, allocations: 0.5404 MB / 413.1 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001413/0.1018, allocations: 1.437 MB / 414.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1018, allocations: 4 kB / 414.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1018, allocations: 0 / 414.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.779e-05/0.1018, allocations: 0 / 414.5 MB, free: 13.82 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.005289/0.1071, allocations: 1.742 MB / 416.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1071, allocations: 12.03 kB / 416.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.1073, allocations: 122.8 kB / 416.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006097/0.1079, allocations: 147.7 kB / 416.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.109, allocations: 0.6687 MB / 417.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.109, allocations: 62.12 kB / 417.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.687e-05/0.1091, allocations: 72 kB / 417.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.1102, allocations: 0.7615 MB / 418.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.1103, allocations: 0 / 418.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.007e-05/0.1103, allocations: 32 kB / 418.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.1103, allocations: 20 kB / 418.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.1114, allocations: 0.7143 MB / 418.9 MB, free: 9.332 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.005896/0.1173, allocations: 5.104 MB / 424 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.119, allocations: 0.9516 MB / 424.9 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000429/0.1194, allocations: 303.8 kB / 425.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.702e-05/0.1195, allocations: 12.66 kB / 425.2 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.853e-05/0.1196, allocations: 39.22 kB / 425.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.254e-06/0.1196, allocations: 0 / 425.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002842/0.1224, allocations: 1.24 MB / 426.5 MB, free: 1.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.1225, allocations: 64.05 kB / 426.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006602/0.1232, allocations: 0.5531 MB / 427.1 MB, free: 448 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.1232, allocations: 37.7 kB / 427.2 MB, free: 404 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.1235, allocations: 367.8 kB / 427.5 MB, free: 28 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1258/0.2492, allocations: 266.6 kB / 427.8 MB, free: 38.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.2495, allocations: 137 kB / 427.9 MB, free: 37.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.2496, allocations: 374.2 kB / 428.3 MB, free: 37.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.25, allocations: 218.1 kB / 428.5 MB, free: 37.67 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003994/0.2504, allocations: 333.1 kB / 428.8 MB, free: 37.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007023/0.2511, allocations: 0.5909 MB / 429.4 MB, free: 37.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.2511, allocations: 1.375 kB / 429.4 MB, free: 37.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001492/0.2526, allocations: 0.8567 MB / 430.3 MB, free: 37.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.2526, allocations: 10.44 kB / 430.3 MB, free: 37.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.2526, allocations: 3.281 kB / 430.3 MB, free: 37.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000563/0.2532, allocations: 188.8 kB / 430.5 MB, free: 37.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008349/0.254, allocations: 194.6 kB / 430.7 MB, free: 37.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002726/0.2568, allocations: 2.531 MB / 433.2 MB, free: 35.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008128/0.2576, allocations: 56.03 kB / 433.3 MB, free: 35.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.754e-05/0.2577, allocations: 32.42 kB / 433.3 MB, free: 35.19 MB / 318.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.0003009/0.258, allocations: 222 kB / 433.5 MB, free: 35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.2582, allocations: 71.91 kB / 433.6 MB, free: 34.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.2595, allocations: 0.8037 MB / 434.4 MB, free: 34.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.2595, allocations: 13.22 kB / 434.4 MB, free: 34.58 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2595, allocations: 2.312 kB / 434.4 MB, free: 34.58 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.2595, allocations: 9.484 kB / 434.4 MB, free: 34.58 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 postOpt removeSimpleEquations (simulation): time 0.002302/0.2618, allocations: 1.851 MB / 436.3 MB, free: 33.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2619, allocations: 0 / 436.3 MB, free: 33.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007249/0.2626, allocations: 165.8 kB / 436.4 MB, free: 33.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004856/0.2631, allocations: 169.6 kB / 436.6 MB, free: 33.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/0.2631, allocations: 11.86 kB / 436.6 MB, free: 33.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002672/0.2658, allocations: 2.529 MB / 439.1 MB, free: 31.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2658, allocations: 0 / 439.1 MB, free: 31.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.2671, allocations: 0.8552 MB / 440 MB, free: 31.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/0.2675, allocations: 231.6 kB / 440.2 MB, free: 30.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.72e-05/0.2676, allocations: 16.61 kB / 440.2 MB, free: 30.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005277/0.2681, allocations: 21.92 kB / 440.2 MB, free: 30.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2682, allocations: 50.5 kB / 440.3 MB, free: 30.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.2682, allocations: 16.39 kB / 440.3 MB, free: 30.85 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004896/0.2687, allocations: 386.8 kB / 440.7 MB, free: 30.67 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2687, allocations: 0.9375 kB / 440.7 MB, free: 30.67 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001027/0.2698, allocations: 302.7 kB / 441 MB, free: 30.63 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 (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.001512/0.2713, allocations: 1.479 MB / 442.5 MB, free: 29.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.2731, allocations: 0.8497 MB / 443.3 MB, free: 29.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2731, allocations: 1.25 kB / 443.3 MB, free: 29.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007518/0.2739, allocations: 0.5217 MB / 443.8 MB, free: 28.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007667/0.2747, allocations: 120.8 kB / 443.9 MB, free: 28.89 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.007456/0.2821, allocations: 6.031 MB / 450 MB, free: 25.41 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.2825, allocations: 0.9401 MB / 450.9 MB, free: 24.69 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004639/0.2829, allocations: 102.7 kB / 451 MB, free: 24.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.2833, allocations: 269.3 kB / 451.3 MB, free: 24.46 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2833, allocations: 4 kB / 451.3 MB, free: 24.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04925/0.3325, allocations: 17.01 MB / 468.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.334/9.667, allocations: 20.64 kB / 468.3 MB, free: 9.844 MB / 318.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