Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.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.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",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.001573/0.001573, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001357/0.001357, allocations: 197.9 kB / 16.14 MB, free: 6.562 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.165/1.165, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05678/0.05678, allocations: 14.15 MB / 283.5 MB, free: 7.289 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.001256/0.001256, allocations: 71.89 kB / 344.5 MB, free: 19.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06652/0.06779, allocations: 50.13 MB / 394.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.0107/0.07852, allocations: 14.08 MB / 408.7 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007124/0.08567, allocations: 5.959 MB / 414.7 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000739/0.08642, allocations: 35.88 kB / 414.7 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.08767, allocations: 0.6611 MB / 415.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004418/0.0921, allocations: 2.438 MB / 417.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.09325, allocations: 0.6542 MB / 418.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004438/0.09769, allocations: 4.186 MB / 422.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004202/0.09813, allocations: 284.2 kB / 422.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.09947, allocations: 1.034 MB / 424 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.1006, allocations: 1.131 MB / 425.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.1007, allocations: 64 kB / 425.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.1018, allocations: 467.7 kB / 425.6 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001836/0.102, allocations: 254.4 kB / 425.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008881/0.1029, allocations: 1.08 MB / 426.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1274/0.2303, allocations: 2.892 MB / 429.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2303, allocations: 0 / 429.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2303, allocations: 0 / 429.8 MB, free: 17.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.917e-05/0.2303, allocations: 0 / 429.8 MB, free: 17.2 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: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.008055/0.2384, allocations: 3.197 MB / 433 MB, free: 16.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2384, allocations: 9.094 kB / 433 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002198/0.2387, allocations: 227.1 kB / 433.3 MB, free: 16.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/0.24, allocations: 343.8 kB / 433.6 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.2418, allocations: 1.336 MB / 434.9 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.32e-05/0.2419, allocations: 115.8 kB / 435 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.2421, allocations: 154.8 kB / 435.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.2443, allocations: 1.794 MB / 437 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.2444, allocations: 10.5 kB / 437 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.2445, allocations: 68.06 kB / 437.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/0.2445, allocations: 42.03 kB / 437.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.2466, allocations: 1.501 MB / 438.6 MB, free: 14.95 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.007664/0.2543, allocations: 12.05 MB / 450.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.2565, allocations: 1.87 MB / 452.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007318/0.2572, allocations: 0.6269 MB / 453.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.021e-05/0.2573, allocations: 20.92 kB / 453.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008766/0.2582, allocations: 0.7286 MB / 453.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 3.607e-06/0.2582, allocations: 0 / 453.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.005441/0.2636, allocations: 2.675 MB / 456.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.2637, allocations: 235.5 kB / 456.8 MB, free: 2.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.2648, allocations: 1.122 MB / 457.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.002e-05/0.2649, allocations: 52.3 kB / 458 MB, free: 1.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/0.2652, allocations: 0.7889 MB / 458.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002618/0.2655, allocations: 0.5109 MB / 459.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003297/0.2658, allocations: 317 kB / 459.6 MB, free: 464 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 2.817e-05/0.2659, allocations: 309.1 kB / 459.9 MB, free: 152 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006618/0.2665, allocations: 497 kB / 460.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009084/0.2675, allocations: 0.9651 MB / 461.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.2692, allocations: 1.697 MB / 463 MB, free: 13.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.2692, allocations: 3.562 kB / 463.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.00277/0.272, allocations: 2.059 MB / 465.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.5e-05/0.272, allocations: 69.14 kB / 465.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.2721, allocations: 19.81 kB / 465.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009856/0.2731, allocations: 407.6 kB / 465.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.2745, allocations: 423.3 kB / 466 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004486/0.279, allocations: 3.675 MB / 469.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.2805, allocations: 154.8 kB / 469.8 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.2806, allocations: 77.59 kB / 469.9 MB, free: 8.961 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 10 (transmissionLine.busFault.fault,$PRE.transmissionLine.busFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine.busFault.Y.im,$PRE.transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.re,$PRE.transmissionLine.busFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 197 * 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): 1 system {(5,27,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007023/0.2813, allocations: 493.7 kB / 470.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.2816, allocations: 174 kB / 470.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002639/0.2842, allocations: 1.685 MB / 472.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.2842, allocations: 19.94 kB / 472.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.2843, allocations: 4 kB / 472.3 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.2843, allocations: 7.969 kB / 472.3 MB, free: 6.59 MB / 334.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 postOpt removeSimpleEquations (simulation): time 0.004861/0.2891, allocations: 3.602 MB / 475.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2892, allocations: 4 kB / 475.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.2903, allocations: 265.6 kB / 476.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009706/0.2913, allocations: 360.4 kB / 476.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-05/0.2914, allocations: 28 kB / 476.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00452/0.2959, allocations: 3.656 MB / 480.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2959, allocations: 4 kB / 480.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/0.2986, allocations: 1.732 MB / 481.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.2992, allocations: 374.8 kB / 482.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001978/0.2995, allocations: 32 kB / 482.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008279/0.3003, allocations: 59.61 kB / 482.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.3005, allocations: 101.1 kB / 482.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-05/0.3005, allocations: 32 kB / 482.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009149/0.3015, allocations: 0.7396 MB / 483.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3015, allocations: 0 / 483.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001433/0.3029, allocations: 0.5856 MB / 483.8 MB, free: 10.82 MB / 350.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,transmissionLine.busFault.Y.re,transmissionLine.busFault.Y.im,transmissionLine.busFault.fault) * Number of discrete states: 7 ($whenCondition4,transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.re,$whenCondition3,transmissionLine.busFault.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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): 1 system {(5,27,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002885/0.3058, allocations: 2.435 MB / 486.3 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002588/0.3084, allocations: 1.787 MB / 488 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3084, allocations: 0 / 488 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.3098, allocations: 1.081 MB / 489.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00092/0.3107, allocations: 165.7 kB / 489.3 MB, free: 5.359 MB / 350.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.01973/0.3305, allocations: 13.79 MB / 0.4913 GB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007863/0.3313, allocations: 1.254 MB / 0.4925 GB, free: 5.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009383/0.3322, allocations: 206.3 kB / 0.4927 GB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007271/0.333, allocations: 0.6047 MB / 0.4933 GB, free: 4.656 MB / 366.1 MB Notification: Performance of SimCode: time 6.32e-07/0.333, allocations: 0 / 0.4933 GB, free: 4.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04445/0.3774, allocations: 31.52 MB / 0.5241 GB, free: 5.258 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.3777, allocations: 238.2 kB / 0.5243 GB, free: 4.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.08/2.457, allocations: 0 / 0.5243 GB, free: 4.996 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches