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.001134/0.001134, 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.001424/0.001424, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.376/1.376, 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.05849/0.05849, allocations: 14.16 MB / 283.9 MB, free: 7.094 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.001654/0.001654, allocations: 70.92 kB / 345.2 MB, free: 19.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08425/0.08592, allocations: 50.13 MB / 395.3 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.0109/0.09686, allocations: 11.75 MB / 407.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007092/0.104, allocations: 4.981 MB / 412 MB, free: 308 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.1053, allocations: 31.88 kB / 412.1 MB, free: 272 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.107, allocations: 0.6371 MB / 412.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005261/0.1123, allocations: 2.344 MB / 415.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.1134, allocations: 0.5292 MB / 415.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003692/0.1171, allocations: 3.323 MB / 418.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004312/0.1176, allocations: 237.3 kB / 419.1 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001511/0.1191, allocations: 1.109 MB / 420.2 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001545/0.1207, allocations: 1.124 MB / 421.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002976/0.121, allocations: 108 kB / 421.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.1223, allocations: 0.5231 MB / 422 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.1226, allocations: 282.6 kB / 422.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.1239, allocations: 0.9601 MB / 423.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002701/0.1266, allocations: 2.36 MB / 425.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1266, allocations: 3.938 kB / 425.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.1266, allocations: 0 / 425.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.291e-05/0.1266, allocations: 4 kB / 425.6 MB, free: 2.688 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.1652/0.2919, allocations: 2.833 MB / 428.4 MB, free: 37.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.292, allocations: 9.344 kB / 428.4 MB, free: 37.29 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004372/0.2924, allocations: 195.9 kB / 428.6 MB, free: 37.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00148/0.2939, allocations: 266.8 kB / 428.9 MB, free: 37.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/0.2959, allocations: 1.058 MB / 430 MB, free: 36.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.683e-05/0.296, allocations: 135.4 kB / 430.1 MB, free: 36.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.2961, allocations: 128 kB / 430.2 MB, free: 36.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.2981, allocations: 1.35 MB / 431.6 MB, free: 35.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.2981, allocations: 5.781 kB / 431.6 MB, free: 35.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.933e-05/0.2982, allocations: 52.31 kB / 431.6 MB, free: 35.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.731e-05/0.2983, allocations: 33.94 kB / 431.7 MB, free: 35.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.3002, allocations: 1.248 MB / 432.9 MB, free: 35.5 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.01029/0.3105, allocations: 9.344 MB / 442.2 MB, free: 27.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/0.3129, allocations: 1.546 MB / 443.8 MB, free: 27.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007574/0.3136, allocations: 0.5626 MB / 444.4 MB, free: 26.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-05/0.3137, allocations: 15.44 kB / 444.4 MB, free: 26.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.3147, allocations: 0.6317 MB / 445 MB, free: 26.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 3.397e-06/0.3148, allocations: 1.344 kB / 445 MB, free: 26.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.00873/0.3235, allocations: 3.146 MB / 448.2 MB, free: 25.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.3236, allocations: 149.3 kB / 448.3 MB, free: 25.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.3246, allocations: 0.8921 MB / 449.2 MB, free: 24.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/0.3247, allocations: 55.2 kB / 449.2 MB, free: 24.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/0.325, allocations: 0.5722 MB / 449.8 MB, free: 23.94 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003322/0.3254, allocations: 0.5007 MB / 450.3 MB, free: 23.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003124/0.3257, allocations: 237.1 kB / 450.5 MB, free: 23.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.791e-05/0.3257, allocations: 302.5 kB / 450.8 MB, free: 23.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006156/0.3264, allocations: 407.2 kB / 451.2 MB, free: 22.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007068/0.3271, allocations: 0.6203 MB / 451.9 MB, free: 22.42 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.3285, allocations: 1.184 MB / 453 MB, free: 21.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3285, allocations: 5.219 kB / 453 MB, free: 21.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002745/0.3312, allocations: 1.758 MB / 454.8 MB, free: 20.67 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.3313, allocations: 63.3 kB / 454.9 MB, free: 20.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.3313, allocations: 11.88 kB / 454.9 MB, free: 20.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.3327, allocations: 0.4981 MB / 455.4 MB, free: 20.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.3338, allocations: 317 kB / 455.7 MB, free: 20.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005629/0.3395, allocations: 4.806 MB / 460.5 MB, free: 16.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.3408, allocations: 96.27 kB / 460.6 MB, free: 16.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-05/0.3409, allocations: 48 kB / 460.6 MB, free: 16.45 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.0004564/0.3413, allocations: 356.2 kB / 461 MB, free: 16.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.3415, allocations: 130.5 kB / 461.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/0.344, allocations: 1.649 MB / 462.8 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3441, allocations: 16 kB / 462.8 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3441, allocations: 3.938 kB / 462.8 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.3441, allocations: 11.91 kB / 462.8 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003965/0.3481, allocations: 3.305 MB / 466.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3481, allocations: 0.75 kB / 466.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009281/0.349, allocations: 259.7 kB / 466.4 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.3503, allocations: 488.2 kB / 466.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.3504, allocations: 24 kB / 466.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005197/0.3556, allocations: 4.691 MB / 471.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3556, allocations: 1.562 kB / 471.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002662/0.3583, allocations: 1.677 MB / 473.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005167/0.3588, allocations: 347.2 kB / 473.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.359, allocations: 32 kB / 473.6 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008876/0.3599, allocations: 39.89 kB / 473.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.3601, allocations: 101.2 kB / 473.7 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-05/0.3601, allocations: 35.98 kB / 473.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006426/0.3608, allocations: 0.602 MB / 474.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3608, allocations: 4 kB / 474.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001212/0.362, allocations: 0.5748 MB / 474.9 MB, free: 1.832 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.002761/0.3648, allocations: 2.358 MB / 477.3 MB, free: 15.45 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.003746/0.3685, allocations: 1.712 MB / 479 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3685, allocations: 0 / 479 MB, free: 13.71 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.001502/0.3701, allocations: 1.019 MB / 480 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.3712, allocations: 190.4 kB / 480.2 MB, free: 12.49 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.01467/0.3858, allocations: 10.93 MB / 491.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006665/0.3865, allocations: 1.164 MB / 492.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007792/0.3873, allocations: 159.5 kB / 492.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006239/0.388, allocations: 0.4993 MB / 493 MB, free: 15.26 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.388, allocations: 3.938 kB / 493 MB, free: 15.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.975/2.363, allocations: 33.21 MB / 0.5138 GB, free: 14.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/16.1, allocations: 12 kB / 0.5139 GB, free: 14.03 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","/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