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.007447/0.007447, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.001843/0.001843, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.446/1.446, allocations: 205.1 MB / 222.6 MB, free: 4.383 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06713/0.06713, allocations: 14.16 MB / 284.1 MB, free: 6.852 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.002118/0.002118, allocations: 71.88 kB / 396 MB, free: 488 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2633, allocations: 50.14 MB / 446.1 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.01137/0.2747, allocations: 11.75 MB / 457.9 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008507/0.2833, allocations: 4.972 MB / 462.9 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.2849, allocations: 34.53 kB / 462.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.2867, allocations: 0.6447 MB / 463.5 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006631/0.2934, allocations: 2.348 MB / 465.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.2947, allocations: 0.5243 MB / 466.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005964/0.3007, allocations: 3.335 MB / 469.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006749/0.3014, allocations: 245 kB / 470 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.304, allocations: 1.113 MB / 471.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001938/0.3059, allocations: 1.124 MB / 472.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002774/0.3062, allocations: 116 kB / 472.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001722/0.308, allocations: 0.5192 MB / 472.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.3083, allocations: 278.6 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.3095, allocations: 0.9679 MB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004163/0.3137, allocations: 2.487 MB / 476.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3137, allocations: 3.984 kB / 476.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3137, allocations: 0 / 476.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.301e-05/0.3138, allocations: 0 / 476.6 MB, free: 8.594 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.009434/0.3232, allocations: 2.859 MB / 479.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.3233, allocations: 12.03 kB / 479.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002467/0.3235, allocations: 194.6 kB / 479.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001187/0.3247, allocations: 275.7 kB / 479.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002364/0.3271, allocations: 1.102 MB / 481 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.3273, allocations: 132.3 kB / 481.2 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.3274, allocations: 132 kB / 481.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.3297, allocations: 1.351 MB / 482.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.3297, allocations: 0 / 482.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.3298, allocations: 56 kB / 482.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.121e-05/0.3299, allocations: 32 kB / 482.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.3319, allocations: 1.251 MB / 484 MB, free: 0.9844 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.01284/0.3448, allocations: 9.305 MB / 493.3 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002842/0.3477, allocations: 1.545 MB / 494.8 MB, free: 5.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008571/0.3485, allocations: 0.5657 MB / 495.4 MB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.169e-05/0.3486, allocations: 13.31 kB / 495.4 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/0.3497, allocations: 0.6284 MB / 496 MB, free: 3.918 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 4.088e-06/0.3497, allocations: 0 / 496 MB, free: 3.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.009958/0.3597, allocations: 3.155 MB / 499.2 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.3598, allocations: 153.8 kB / 499.3 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.3611, allocations: 0.8871 MB / 0.4885 GB, free: 15.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.21e-05/0.3612, allocations: 53.7 kB / 0.4885 GB, free: 15.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005087/0.3618, allocations: 0.5832 MB / 0.4891 GB, free: 14.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005638/0.3623, allocations: 0.5344 MB / 0.4896 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000358/0.3627, allocations: 231.5 kB / 0.4899 GB, free: 14.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3628, allocations: 301.1 kB / 0.4901 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007158/0.3636, allocations: 407.8 kB / 0.4905 GB, free: 13.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008982/0.3645, allocations: 0.6258 MB / 0.4911 GB, free: 12.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.3663, allocations: 1.182 MB / 0.4923 GB, free: 11.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.3663, allocations: 0 / 0.4923 GB, free: 11.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003631/0.3699, allocations: 1.769 MB / 0.494 GB, free: 9.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.735e-05/0.37, allocations: 63.39 kB / 0.4941 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.37, allocations: 4 kB / 0.4941 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001774/0.3718, allocations: 0.5012 MB / 0.4946 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.3731, allocations: 307.6 kB / 0.4949 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008215/0.3814, allocations: 4.818 MB / 0.4996 GB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.3828, allocations: 95.5 kB / 0.4997 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.383, allocations: 48 kB / 0.4997 GB, free: 3.793 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.0006584/0.3836, allocations: 351.2 kB / 0.5001 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003881/0.384, allocations: 143.1 kB / 0.5002 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/0.3875, allocations: 1.645 MB / 0.5018 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.3875, allocations: 16 kB / 0.5018 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.3875, allocations: 0 / 0.5018 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.3875, allocations: 7.969 kB / 0.5018 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005631/0.3932, allocations: 3.315 MB / 0.5051 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3932, allocations: 0 / 0.5051 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.3943, allocations: 259.7 kB / 0.5053 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001579/0.3959, allocations: 484.3 kB / 0.5058 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.396, allocations: 20 kB / 0.5058 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007559/0.4035, allocations: 4.675 MB / 0.5103 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4036, allocations: 0 / 0.5103 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003549/0.4071, allocations: 1.695 MB / 0.512 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007681/0.4079, allocations: 359.8 kB / 0.5123 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/0.4082, allocations: 28 kB / 0.5124 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.4092, allocations: 39.98 kB / 0.5124 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002573/0.4095, allocations: 101.2 kB / 0.5125 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-05/0.4096, allocations: 39.98 kB / 0.5125 GB, free: 6.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001206/0.4108, allocations: 0.5981 MB / 0.5131 GB, free: 5.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4108, allocations: 0 / 0.5131 GB, free: 5.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001748/0.4126, allocations: 0.5777 MB / 0.5137 GB, free: 5.133 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.003912/0.4165, allocations: 2.363 MB / 0.516 GB, free: 2.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003151/0.4197, allocations: 1.675 MB / 0.5176 GB, free: 1.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4197, allocations: 0 / 0.5176 GB, free: 1.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.4215, allocations: 1.027 MB / 0.5186 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/0.4236, allocations: 194.4 kB / 0.5188 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01873/0.4423, allocations: 10.23 MB / 0.5288 GB, free: 5.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009761/0.4433, allocations: 1.168 MB / 0.53 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006872/0.444, allocations: 161.7 kB / 0.5301 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007698/0.4448, allocations: 0.4954 MB / 0.5306 GB, free: 3.43 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4448, allocations: 0 / 0.5306 GB, free: 3.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07729/0.5221, allocations: 33.77 MB / 0.5636 GB, free: 1.617 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.67/15.19, allocations: 12 kB / 0.5636 GB, free: 1.605 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 & /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