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.0008557/0.0008557, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.005277/0.005278, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.213/1.213, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05513/0.05513, allocations: 14.16 MB / 284.9 MB, free: 7.047 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.0005388/0.000539, allocations: 12.22 kB / 346.9 MB, free: 19.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07744/0.07799, allocations: 51.11 MB / 398 MB, free: 296 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.008687/0.08671, allocations: 11.35 MB / 409.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005304/0.09204, allocations: 4.909 MB / 414.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003821/0.09243, allocations: 31.88 kB / 414.3 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000889/0.09333, allocations: 0.56 MB / 414.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003537/0.09688, allocations: 2.166 MB / 417 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008179/0.0977, allocations: 0.4979 MB / 417.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002927/0.1006, allocations: 3.354 MB / 420.8 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.1009, allocations: 217.9 kB / 421.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008295/0.1018, allocations: 0.8667 MB / 421.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008388/0.1026, allocations: 0.9176 MB / 422.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.1027, allocations: 44 kB / 422.9 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006786/0.1034, allocations: 419.7 kB / 423.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.1036, allocations: 202.6 kB / 423.5 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006526/0.1042, allocations: 0.8642 MB / 424.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001684/0.1059, allocations: 2.11 MB / 426.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1059, allocations: 0 / 426.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1059, allocations: 0 / 426.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.1059, allocations: 0 / 426.5 MB, free: 3.676 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.006393/0.1123, allocations: 2.421 MB / 428.9 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.1124, allocations: 8.031 kB / 428.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001907/0.1126, allocations: 202.5 kB / 429.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000873/0.1135, allocations: 262.7 kB / 429.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.125/0.2384, allocations: 1.014 MB / 430.4 MB, free: 18.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.2386, allocations: 135.9 kB / 430.5 MB, free: 18.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.2388, allocations: 128.4 kB / 430.6 MB, free: 18.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.2408, allocations: 1.348 MB / 432 MB, free: 18.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.2408, allocations: 5.281 kB / 432 MB, free: 18.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.2409, allocations: 54.69 kB / 432 MB, free: 18.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-05/0.241, allocations: 33.31 kB / 432.1 MB, free: 18.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.2428, allocations: 1.246 MB / 433.3 MB, free: 18.66 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.006169/0.249, allocations: 8.602 MB / 441.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.2512, allocations: 1.54 MB / 443.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007018/0.2519, allocations: 0.563 MB / 444 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.661e-05/0.252, allocations: 20.28 kB / 444 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008489/0.2528, allocations: 0.6334 MB / 444.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 3.466e-06/0.2528, allocations: 1.094 kB / 444.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.008366/0.2612, allocations: 3.165 MB / 447.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.2613, allocations: 150.7 kB / 448 MB, free: 11.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008362/0.2621, allocations: 0.7875 MB / 448.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.915e-05/0.2622, allocations: 51.39 kB / 448.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.2624, allocations: 0.5673 MB / 449.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002617/0.2627, allocations: 0.5021 MB / 449.9 MB, free: 9.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.2628, allocations: 118.2 kB / 450 MB, free: 9.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 2.836e-05/0.2629, allocations: 301.1 kB / 450.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005758/0.2634, allocations: 408.2 kB / 450.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006261/0.2641, allocations: 0.6244 MB / 451.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.2654, allocations: 1.178 MB / 452.5 MB, free: 8.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.2654, allocations: 8.203 kB / 452.5 MB, free: 8.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002686/0.2681, allocations: 1.758 MB / 454.3 MB, free: 7.445 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.2681, allocations: 62.09 kB / 454.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.2681, allocations: 6.375 kB / 454.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.2695, allocations: 0.4985 MB / 454.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.2705, allocations: 309.5 kB / 455.1 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005071/0.2756, allocations: 4.392 MB / 459.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00084/0.2765, allocations: 97.25 kB / 459.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.266e-05/0.2766, allocations: 55.59 kB / 459.7 MB, free: 4.402 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.0003476/0.2769, allocations: 354.1 kB / 460 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.2771, allocations: 140.7 kB / 460.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002539/0.2796, allocations: 1.648 MB / 461.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.2796, allocations: 11.81 kB / 461.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2796, allocations: 0 / 461.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.2796, allocations: 11.91 kB / 461.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003507/0.2832, allocations: 3.09 MB / 464.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2832, allocations: 0 / 464.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008627/0.284, allocations: 253.4 kB / 465.2 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.2853, allocations: 492.2 kB / 465.6 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.095e-05/0.2853, allocations: 24 kB / 465.7 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005635/0.291, allocations: 4.255 MB / 469.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.291, allocations: 0 / 469.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.2936, allocations: 1.685 MB / 471.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003722/0.294, allocations: 307.3 kB / 471.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.2941, allocations: 24 kB / 471.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.2948, allocations: 59.67 kB / 472 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.295, allocations: 97.17 kB / 472.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.892e-05/0.295, allocations: 44.86 kB / 472.1 MB, free: 9.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005622/0.2956, allocations: 0.5239 MB / 472.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2956, allocations: 4 kB / 472.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009632/0.2966, allocations: 0.5268 MB / 473.2 MB, free: 8.703 MB / 334.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.003065/0.2996, allocations: 2.354 MB / 475.5 MB, free: 6.359 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.002344/0.302, allocations: 1.654 MB / 477.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.302, allocations: 4.188 kB / 477.2 MB, free: 4.688 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.001373/0.3034, allocations: 1.01 MB / 478.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000699/0.3041, allocations: 149 kB / 478.3 MB, free: 3.535 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.01394/0.318, allocations: 10.93 MB / 489.3 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006252/0.3187, allocations: 1.171 MB / 490.5 MB, free: 7.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006449/0.3193, allocations: 154.8 kB / 490.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00052/0.3199, allocations: 498.8 kB / 491.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3199, allocations: 0 / 491.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.825/3.145, allocations: 28.21 MB / 0.5071 GB, free: 10.34 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002974/3.145, allocations: 247.7 kB / 0.5074 GB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.088/5.234, allocations: 11.66 kB / 0.5074 GB, free: 10.07 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches