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.008889/0.008889, allocations: 101 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.001901/0.001901, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.491/1.491, 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.0677/0.0677, allocations: 14.17 MB / 284.1 MB, free: 6.965 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.0021/0.0021, allocations: 63.91 kB / 396 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2534, 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.0117/0.2651, allocations: 11.75 MB / 457.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008085/0.2733, allocations: 4.98 MB / 462.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001549/0.2749, allocations: 33.72 kB / 462.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001632/0.2765, allocations: 0.6289 MB / 463.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005938/0.2825, allocations: 2.352 MB / 465.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.2837, allocations: 0.5283 MB / 466.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004456/0.2881, allocations: 3.346 MB / 469.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000508/0.2887, allocations: 241 kB / 470 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002292/0.291, allocations: 1.109 MB / 471.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002046/0.293, allocations: 1.121 MB / 472.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002281/0.2933, allocations: 112 kB / 472.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.2948, allocations: 0.5231 MB / 472.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002647/0.2951, allocations: 278.7 kB / 473.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.2962, allocations: 0.9718 MB / 474.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003589/0.2998, allocations: 2.487 MB / 476.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.2998, allocations: 4 kB / 476.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.2998, allocations: 3.984 kB / 476.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.2999, allocations: 0 / 476.6 MB, free: 8.559 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.009384/0.3093, allocations: 2.855 MB / 479.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3093, allocations: 8.031 kB / 479.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002589/0.3096, allocations: 198.6 kB / 479.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.3108, allocations: 275.7 kB / 479.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00241/0.3132, allocations: 1.098 MB / 481 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.3134, allocations: 136.3 kB / 481.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/0.3135, allocations: 132 kB / 481.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.3157, allocations: 1.351 MB / 482.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.3157, allocations: 0 / 482.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.3158, allocations: 60 kB / 482.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.878e-05/0.3159, allocations: 32 kB / 482.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002105/0.318, allocations: 1.247 MB / 484 MB, free: 0.9531 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.01208/0.3301, allocations: 9.305 MB / 493.3 MB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002623/0.3327, allocations: 1.538 MB / 494.8 MB, free: 5.129 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008402/0.3336, allocations: 0.5696 MB / 495.4 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-05/0.3337, allocations: 13.31 kB / 495.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009989/0.3347, allocations: 0.6361 MB / 496 MB, free: 3.883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 3.496e-06/0.3347, allocations: 0 / 496 MB, free: 3.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.009651/0.3443, allocations: 3.159 MB / 499.2 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.3445, allocations: 149.8 kB / 499.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0015/0.346, allocations: 0.8871 MB / 0.4885 GB, free: 15.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.3461, allocations: 53.7 kB / 0.4885 GB, free: 15.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005479/0.3467, allocations: 0.5832 MB / 0.4891 GB, free: 14.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006239/0.3473, allocations: 0.5344 MB / 0.4896 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003624/0.3477, allocations: 235.5 kB / 0.4899 GB, free: 14.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.3478, allocations: 301.1 kB / 0.4901 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000702/0.3485, allocations: 403.8 kB / 0.4905 GB, free: 13.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009063/0.3494, allocations: 0.6258 MB / 0.4911 GB, free: 12.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001835/0.3513, allocations: 1.186 MB / 0.4923 GB, free: 11.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.3513, allocations: 0 / 0.4923 GB, free: 11.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003888/0.3552, allocations: 1.766 MB / 0.494 GB, free: 9.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/0.3554, allocations: 67.39 kB / 0.4941 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.3554, allocations: 4 kB / 0.4941 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/0.3571, allocations: 0.4893 MB / 0.4946 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/0.3584, allocations: 311.6 kB / 0.4949 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008005/0.3664, allocations: 4.814 MB / 0.4996 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/0.3679, allocations: 95.5 kB / 0.4997 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.3681, allocations: 52 kB / 0.4997 GB, free: 3.762 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.0007239/0.3688, allocations: 351.2 kB / 0.5 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/0.3692, allocations: 143.1 kB / 0.5002 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003237/0.3724, allocations: 1.653 MB / 0.5018 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.3725, allocations: 16 kB / 0.5018 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3725, allocations: 0 / 0.5018 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.3725, allocations: 3.984 kB / 0.5018 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005495/0.378, allocations: 3.311 MB / 0.5051 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.378, allocations: 0 / 0.5051 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.3791, allocations: 259.7 kB / 0.5053 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/0.381, allocations: 476.3 kB / 0.5058 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.3811, allocations: 24 kB / 0.5058 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009949/0.391, allocations: 4.679 MB / 0.5103 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3911, allocations: 0 / 0.5103 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004859/0.396, allocations: 1.695 MB / 0.512 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.3971, allocations: 359.9 kB / 0.5123 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.3973, allocations: 24 kB / 0.5124 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000935/0.3982, allocations: 39.98 kB / 0.5124 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.3985, allocations: 97.17 kB / 0.5125 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.599e-05/0.3986, allocations: 36 kB / 0.5125 GB, free: 6.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009024/0.3995, allocations: 0.6059 MB / 0.5131 GB, free: 5.684 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3995, allocations: 0 / 0.5131 GB, free: 5.684 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001691/0.4012, allocations: 0.5777 MB / 0.5137 GB, free: 5.105 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.003837/0.405, allocations: 2.367 MB / 0.516 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004286/0.4094, allocations: 1.675 MB / 0.5176 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4094, allocations: 0 / 0.5176 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002428/0.4118, allocations: 1.03 MB / 0.5186 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.4135, allocations: 194.3 kB / 0.5188 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02373/0.4373, allocations: 10.23 MB / 0.5288 GB, free: 5.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009294/0.4382, allocations: 1.16 MB / 0.5299 GB, free: 4.059 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006802/0.4389, allocations: 173.8 kB / 0.5301 GB, free: 3.887 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007396/0.4397, allocations: 0.4954 MB / 0.5306 GB, free: 3.391 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4397, allocations: 0 / 0.5306 GB, free: 3.391 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08325/0.5229, allocations: 33.76 MB / 0.5636 GB, free: 1.586 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/14.7, allocations: 4 kB / 0.5636 GB, free: 1.582 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