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.001482/0.001482, allocations: 108 kB / 15.61 MB, free: 152 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.001696/0.001696, allocations: 197.4 kB / 16.53 MB, free: 6.664 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.566/1.566, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06167/0.06167, allocations: 14.16 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.001589/0.001589, allocations: 71.84 kB / 345.2 MB, free: 19.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1042, allocations: 50.12 MB / 395.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.01325/0.1175, allocations: 11.75 MB / 407.1 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009221/0.1268, allocations: 4.981 MB / 412 MB, free: 332 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002315/0.1291, allocations: 31.94 kB / 412.1 MB, free: 300 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002405/0.1316, allocations: 0.637 MB / 412.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008089/0.1397, allocations: 2.352 MB / 415.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.1413, allocations: 0.5178 MB / 415.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005292/0.1466, allocations: 3.327 MB / 418.9 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000602/0.1473, allocations: 233.4 kB / 419.1 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001992/0.1493, allocations: 1.113 MB / 420.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001985/0.1513, allocations: 1.128 MB / 421.4 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004375/0.1517, allocations: 112 kB / 421.5 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.1536, allocations: 0.5153 MB / 422 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004179/0.154, allocations: 290.6 kB / 422.3 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.1558, allocations: 0.9601 MB / 423.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003933/0.1598, allocations: 2.356 MB / 425.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1598, allocations: 0 / 425.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1598, allocations: 0 / 425.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.571e-05/0.1599, allocations: 0 / 425.6 MB, free: 2.715 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: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.1982/0.3581, allocations: 2.84 MB / 428.4 MB, free: 37.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/0.3582, allocations: 9.781 kB / 428.4 MB, free: 37.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003374/0.3585, allocations: 195.4 kB / 428.6 MB, free: 37.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001451/0.36, allocations: 262.3 kB / 428.9 MB, free: 36.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/0.3621, allocations: 1.059 MB / 430 MB, free: 36.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.3623, allocations: 128.8 kB / 430.1 MB, free: 36.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.3624, allocations: 133.5 kB / 430.2 MB, free: 36.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.3646, allocations: 1.35 MB / 431.6 MB, free: 35.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.3646, allocations: 2.172 kB / 431.6 MB, free: 35.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.3647, allocations: 60.88 kB / 431.6 MB, free: 35.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.343e-05/0.3648, allocations: 33.38 kB / 431.7 MB, free: 35.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.3668, allocations: 1.248 MB / 432.9 MB, free: 35.29 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.01099/0.3778, allocations: 9.344 MB / 442.2 MB, free: 27.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002565/0.3804, allocations: 1.535 MB / 443.8 MB, free: 26.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008096/0.3812, allocations: 0.5685 MB / 444.4 MB, free: 26.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.668e-05/0.3813, allocations: 17.19 kB / 444.4 MB, free: 26.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00109/0.3824, allocations: 0.6346 MB / 445 MB, free: 26.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 3.297e-06/0.3824, allocations: 0 / 445 MB, free: 26.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.0092/0.3916, allocations: 3.151 MB / 448.2 MB, free: 24.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.3917, allocations: 146.1 kB / 448.3 MB, free: 24.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.393, allocations: 0.8949 MB / 449.2 MB, free: 24.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.073e-05/0.3931, allocations: 52.27 kB / 449.2 MB, free: 24.24 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003919/0.3935, allocations: 0.5712 MB / 449.8 MB, free: 23.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004021/0.3939, allocations: 0.5029 MB / 450.3 MB, free: 23.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003324/0.3942, allocations: 237.4 kB / 450.5 MB, free: 23.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.418e-05/0.3943, allocations: 302.2 kB / 450.8 MB, free: 22.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006451/0.3949, allocations: 403.1 kB / 451.2 MB, free: 22.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007208/0.3956, allocations: 0.6274 MB / 451.9 MB, free: 22.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.3973, allocations: 1.183 MB / 453 MB, free: 21.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.3973, allocations: 1.875 kB / 453 MB, free: 21.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003011/0.4003, allocations: 1.755 MB / 454.8 MB, free: 20.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.639e-05/0.4004, allocations: 67.3 kB / 454.9 MB, free: 20.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.4004, allocations: 11.84 kB / 454.9 MB, free: 20.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/0.4019, allocations: 0.4902 MB / 455.4 MB, free: 20.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.4031, allocations: 317.2 kB / 455.7 MB, free: 20.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006476/0.4096, allocations: 4.812 MB / 460.5 MB, free: 16.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.4112, allocations: 95.27 kB / 460.6 MB, free: 16.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.098e-05/0.4113, allocations: 53.12 kB / 460.6 MB, free: 16.18 MB / 318.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.0005695/0.4119, allocations: 356.2 kB / 461 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/0.4121, allocations: 130.5 kB / 461.1 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/0.4148, allocations: 1.649 MB / 462.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.4149, allocations: 16 kB / 462.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4149, allocations: 3.938 kB / 462.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.4149, allocations: 3.984 kB / 462.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004289/0.4192, allocations: 3.312 MB / 466.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4192, allocations: 3.938 kB / 466.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000965/0.4202, allocations: 252.5 kB / 466.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.4215, allocations: 484.3 kB / 466.8 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.782e-05/0.4216, allocations: 28 kB / 466.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005282/0.4269, allocations: 4.679 MB / 471.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4269, allocations: 0 / 471.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002644/0.4295, allocations: 1.677 MB / 473.2 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004989/0.4301, allocations: 359.2 kB / 473.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.4302, allocations: 24.12 kB / 473.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009065/0.4311, allocations: 47.83 kB / 473.6 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.4313, allocations: 101.2 kB / 473.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.535e-05/0.4314, allocations: 36 kB / 473.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006979/0.4321, allocations: 0.602 MB / 474.4 MB, free: 2.152 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4321, allocations: 0 / 474.4 MB, free: 2.152 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001469/0.4336, allocations: 0.5788 MB / 474.9 MB, free: 1.574 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: 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.003086/0.4367, allocations: 2.35 MB / 477.3 MB, free: 15.2 MB / 334.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 initialization part: time 0.004081/0.4408, allocations: 1.722 MB / 479 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4408, allocations: 0 / 479 MB, free: 13.46 MB / 334.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 simulation system equations: time 0.001694/0.4425, allocations: 1.019 MB / 480 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.444, allocations: 189.8 kB / 480.2 MB, free: 12.24 MB / 334.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.01849/0.4625, allocations: 10.93 MB / 491.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008626/0.4634, allocations: 1.168 MB / 492.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008891/0.4643, allocations: 159.8 kB / 492.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008777/0.4652, allocations: 0.4954 MB / 493 MB, free: 15 MB / 350.1 MB Notification: Performance of SimCode: time 1.143e-06/0.4652, allocations: 4 kB / 493 MB, free: 15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07342/0.5386, allocations: 33.22 MB / 0.5139 GB, free: 13.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.31, allocations: 4 kB / 0.5139 GB, free: 13.77 MB / 382.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