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.001149/0.001153, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00111/0.00111, allocations: 191.3 kB / 16.14 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.147/1.147, allocations: 205.1 MB / 222 MB, free: 4.957 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05469/0.05469, allocations: 14.15 MB / 283.5 MB, free: 7.512 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.001227/0.001227, allocations: 70.56 kB / 344.5 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06619/0.06743, allocations: 50.13 MB / 394.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.009288/0.07676, allocations: 11.94 MB / 406.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006077/0.08286, allocations: 4.994 MB / 411.6 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005356/0.08342, allocations: 39.81 kB / 411.6 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.08448, allocations: 0.5601 MB / 412.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003889/0.08841, allocations: 2.189 MB / 414.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008669/0.08929, allocations: 0.4983 MB / 414.8 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002988/0.09229, allocations: 3.361 MB / 418.2 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/0.0926, allocations: 225.9 kB / 418.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008648/0.09347, allocations: 0.8783 MB / 419.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007495/0.09423, allocations: 0.9215 MB / 420.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.592e-05/0.09434, allocations: 48 kB / 420.3 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008056/0.09515, allocations: 427.7 kB / 420.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.09531, allocations: 206.7 kB / 420.9 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006398/0.09595, allocations: 0.8508 MB / 421.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.09761, allocations: 2.157 MB / 423.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.09762, allocations: 0 / 423.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.09763, allocations: 8 kB / 423.9 MB, free: 4.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.09765, allocations: 0 / 423.9 MB, free: 4.191 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.006847/0.1045, allocations: 2.693 MB / 426.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.1045, allocations: 15.97 kB / 426.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001782/0.1047, allocations: 198.5 kB / 426.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008975/0.1056, allocations: 266.7 kB / 427.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1221/0.2277, allocations: 1.013 MB / 428.1 MB, free: 36.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.2279, allocations: 136.5 kB / 428.2 MB, free: 36.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002379/0.2282, allocations: 125.8 kB / 428.3 MB, free: 36.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.2302, allocations: 1.346 MB / 429.7 MB, free: 36.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.798e-05/0.2302, allocations: 5.156 kB / 429.7 MB, free: 36.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.471e-05/0.2303, allocations: 55.41 kB / 429.7 MB, free: 36.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.2304, allocations: 37.66 kB / 429.8 MB, free: 36.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.2323, allocations: 1.243 MB / 431 MB, free: 36.05 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.006561/0.2389, allocations: 8.585 MB / 439.6 MB, free: 28.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002203/0.2411, allocations: 1.542 MB / 441.2 MB, free: 28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007424/0.2419, allocations: 0.5614 MB / 441.7 MB, free: 27.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.323e-05/0.242, allocations: 21.12 kB / 441.7 MB, free: 27.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009504/0.2429, allocations: 0.6317 MB / 442.4 MB, free: 27.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 3.346e-06/0.2429, allocations: 7.156 kB / 442.4 MB, free: 27.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.008581/0.2515, allocations: 3.146 MB / 445.5 MB, free: 26.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.2516, allocations: 148.6 kB / 445.7 MB, free: 26.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007589/0.2523, allocations: 0.7927 MB / 446.5 MB, free: 25.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.2524, allocations: 52.39 kB / 446.5 MB, free: 25.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002712/0.2527, allocations: 0.5725 MB / 447.1 MB, free: 25.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002448/0.2529, allocations: 0.5015 MB / 447.6 MB, free: 25.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002838/0.2532, allocations: 243.7 kB / 447.8 MB, free: 24.94 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.048e-05/0.2533, allocations: 304.2 kB / 448.1 MB, free: 24.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000565/0.2538, allocations: 404.8 kB / 448.5 MB, free: 24.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006206/0.2544, allocations: 0.6172 MB / 449.1 MB, free: 24.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.2558, allocations: 1.183 MB / 450.3 MB, free: 23.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.2558, allocations: 6.625 kB / 450.3 MB, free: 23.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002677/0.2584, allocations: 1.757 MB / 452.1 MB, free: 22.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.2585, allocations: 64.44 kB / 452.1 MB, free: 22.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.2585, allocations: 5.469 kB / 452.1 MB, free: 22.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.2599, allocations: 0.4916 MB / 452.6 MB, free: 22.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.261, allocations: 313.1 kB / 452.9 MB, free: 21.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005115/0.2661, allocations: 4.392 MB / 457.3 MB, free: 18.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008067/0.2669, allocations: 92 kB / 457.4 MB, free: 18.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.959e-05/0.267, allocations: 50.09 kB / 457.5 MB, free: 18.75 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.0003645/0.2674, allocations: 350.6 kB / 457.8 MB, free: 18.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.2675, allocations: 140.2 kB / 458 MB, free: 18.4 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002459/0.27, allocations: 1.653 MB / 459.6 MB, free: 17.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.27, allocations: 16 kB / 459.6 MB, free: 17.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.27, allocations: 0 / 459.6 MB, free: 17.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.27, allocations: 10.16 kB / 459.6 MB, free: 17.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.2735, allocations: 3.088 MB / 462.7 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.2736, allocations: 4.688 kB / 462.7 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008807/0.2744, allocations: 251.7 kB / 463 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.2757, allocations: 480.3 kB / 463.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-05/0.2758, allocations: 28 kB / 463.5 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00468/0.2805, allocations: 4.261 MB / 467.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2805, allocations: 0.9375 kB / 467.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.2828, allocations: 1.681 MB / 469.4 MB, free: 7.242 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003059/0.2831, allocations: 319.1 kB / 469.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.2832, allocations: 24 kB / 469.7 MB, free: 6.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000636/0.2839, allocations: 63.67 kB / 469.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.284, allocations: 97.17 kB / 469.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.141e-05/0.2841, allocations: 32 kB / 469.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004522/0.2845, allocations: 0.5278 MB / 470.5 MB, free: 6.156 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2846, allocations: 4 kB / 470.5 MB, free: 6.152 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009458/0.2855, allocations: 0.5269 MB / 471 MB, free: 5.625 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.00255/0.2881, allocations: 2.357 MB / 473.3 MB, free: 3.242 MB / 318.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.002033/0.2901, allocations: 1.652 MB / 475 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2901, allocations: 0 / 475 MB, free: 1.555 MB / 318.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.001164/0.2913, allocations: 1.019 MB / 476 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007377/0.292, allocations: 143.2 kB / 476.2 MB, free: 380 kB / 318.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.01442/0.3065, allocations: 10.92 MB / 487.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.3071, allocations: 1.175 MB / 488.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007154/0.3078, allocations: 153.7 kB / 488.4 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005246/0.3083, allocations: 499.3 kB / 488.9 MB, free: 3.18 MB / 334.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3083, allocations: 3.938 kB / 488.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04355/0.3519, allocations: 28.65 MB / 0.5054 GB, free: 6.574 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.3521, allocations: 244.4 kB / 0.5056 GB, free: 6.312 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.137/2.489, allocations: 3.797 kB / 0.5056 GB, free: 6.312 MB / 366.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