Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.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.TestTransformerFixedRatioWithBreaker,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker",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.009828/0.009828, allocations: 102.5 kB / 15.73 MB, free: 5.508 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.002175/0.002175, allocations: 195.7 kB / 16.67 MB, free: 5.438 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.426/1.426, allocations: 205.1 MB / 222.6 MB, free: 4.453 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06578/0.06578, allocations: 14.17 MB / 284.1 MB, free: 6.953 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.002653/0.002654, allocations: 67.91 kB / 396 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3355, allocations: 50.14 MB / 446.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.01162/0.3472, allocations: 11.75 MB / 457.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00863/0.3558, allocations: 4.975 MB / 462.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001762/0.3577, allocations: 33.94 kB / 462.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002066/0.3598, allocations: 0.6418 MB / 463.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007183/0.367, allocations: 2.44 MB / 466 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.3685, allocations: 0.5149 MB / 466.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005233/0.3738, allocations: 3.35 MB / 469.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006521/0.3745, allocations: 241.1 kB / 470.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002367/0.3769, allocations: 1.14 MB / 471.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002079/0.379, allocations: 1.128 MB / 472.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004808/0.3795, allocations: 112 kB / 472.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001909/0.3814, allocations: 0.5153 MB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004759/0.3819, allocations: 286.6 kB / 473.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001904/0.3838, allocations: 0.964 MB / 474.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004663/0.3885, allocations: 2.491 MB / 476.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.3885, allocations: 0 / 476.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3885, allocations: 0 / 476.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.262e-05/0.3886, allocations: 0 / 476.7 MB, free: 8.457 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.0102/0.3988, allocations: 2.859 MB / 479.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.3989, allocations: 12.03 kB / 479.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002542/0.3992, allocations: 190.6 kB / 479.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.4004, allocations: 279.7 kB / 480 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002335/0.4028, allocations: 1.102 MB / 481.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.4029, allocations: 132.3 kB / 481.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/0.4031, allocations: 128 kB / 481.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.4054, allocations: 1.347 MB / 482.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/0.4054, allocations: 4 kB / 482.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.4056, allocations: 59.92 kB / 482.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.15e-05/0.4056, allocations: 32 kB / 482.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.4077, allocations: 1.243 MB / 484.1 MB, free: 0.8555 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.01326/0.421, allocations: 9.309 MB / 493.4 MB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002829/0.4239, allocations: 1.549 MB / 494.9 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009581/0.4249, allocations: 0.5657 MB / 495.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.616e-05/0.425, allocations: 17.31 kB / 495.5 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.4262, allocations: 0.6245 MB / 496.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 5.04e-06/0.4262, allocations: 0 / 496.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.009768/0.436, allocations: 3.159 MB / 499.3 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.876e-05/0.4362, allocations: 149.8 kB / 499.4 MB, free: 424 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.4377, allocations: 0.8871 MB / 0.4886 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.4378, allocations: 53.7 kB / 0.4887 GB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005478/0.4384, allocations: 0.5833 MB / 0.4892 GB, free: 14.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005839/0.439, allocations: 0.5343 MB / 0.4897 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003916/0.4394, allocations: 231.5 kB / 0.49 GB, free: 14.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.4395, allocations: 301.1 kB / 0.4903 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007023/0.4402, allocations: 411.8 kB / 0.4906 GB, free: 13.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008483/0.441, allocations: 0.6219 MB / 0.4913 GB, free: 12.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.4427, allocations: 1.182 MB / 0.4924 GB, free: 11.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.4427, allocations: 0 / 0.4924 GB, free: 11.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.00353/0.4462, allocations: 1.77 MB / 0.4941 GB, free: 9.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.887e-05/0.4463, allocations: 63.39 kB / 0.4942 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.4464, allocations: 8 kB / 0.4942 GB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/0.448, allocations: 0.4933 MB / 0.4947 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.4493, allocations: 311.6 kB / 0.495 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007773/0.4571, allocations: 4.821 MB / 0.4997 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.4588, allocations: 91.5 kB / 0.4998 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/0.459, allocations: 52 kB / 0.4998 GB, free: 3.656 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (transformer.breakerStatusInInternal,$PRE.transformer.breakerStatusInInternal,transformer.breakerStatus,$PRE.transformer.breakerStatus,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,37)} Notification: Performance of prepare postOptimizeDAE: time 0.000709/0.4597, allocations: 351.2 kB / 0.5002 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004522/0.4602, allocations: 147.1 kB / 0.5003 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003278/0.4635, allocations: 1.645 MB / 0.5019 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.4635, allocations: 15.98 kB / 0.5019 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4635, allocations: 0 / 0.5019 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4636, allocations: 3.984 kB / 0.5019 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005929/0.4695, allocations: 3.323 MB / 0.5052 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.4695, allocations: 0 / 0.5052 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.4707, allocations: 255.7 kB / 0.5054 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.4722, allocations: 480.3 kB / 0.5059 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.4724, allocations: 28 kB / 0.5059 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006998/0.4794, allocations: 4.671 MB / 0.5105 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.4794, allocations: 0 / 0.5105 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00334/0.4827, allocations: 1.695 MB / 0.5121 GB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008746/0.4837, allocations: 359.9 kB / 0.5125 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.484, allocations: 24.12 kB / 0.5125 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.4852, allocations: 43.98 kB / 0.5125 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.4854, allocations: 97.17 kB / 0.5126 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.302e-05/0.4855, allocations: 44 kB / 0.5127 GB, free: 6.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.4865, allocations: 0.5981 MB / 0.5132 GB, free: 5.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4865, allocations: 0 / 0.5132 GB, free: 5.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001821/0.4884, allocations: 0.5816 MB / 0.5138 GB, free: 4.988 MB / 398.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: 4 ($whenCondition1,$whenCondition2,transformer.breakerStatus,transformer.breakerStatusInInternal) * Number of discrete states: 4 (transformer.breakerStatus,$whenCondition2,$whenCondition1,transformer.breakerStatusInInternal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,39)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003735/0.4921, allocations: 2.355 MB / 0.5161 GB, free: 2.594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003122/0.4953, allocations: 1.671 MB / 0.5177 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4953, allocations: 0 / 0.5177 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001794/0.4971, allocations: 1.026 MB / 0.5188 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.4986, allocations: 195.2 kB / 0.5189 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.018/0.5167, allocations: 10.23 MB / 0.5289 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.5177, allocations: 1.164 MB / 0.5301 GB, free: 3.945 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007583/0.5185, allocations: 165.6 kB / 0.5302 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007637/0.5193, allocations: 0.4954 MB / 0.5307 GB, free: 3.285 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5193, allocations: 0 / 0.5307 GB, free: 3.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06972/0.589, allocations: 33.76 MB / 0.5637 GB, free: 1.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/14.91, allocations: 7.938 kB / 0.5637 GB, free: 1.473 MB / 446.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 PowerGrids_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches