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.001212/0.001212, allocations: 108 kB / 15.61 MB, free: 152 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.001109/0.001109, allocations: 194.7 kB / 16.53 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.58/1.58, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06625/0.06625, allocations: 14.17 MB / 283.9 MB, free: 7.062 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.001487/0.001487, allocations: 78.48 kB / 345.2 MB, free: 19.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1016, allocations: 50.12 MB / 395.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01186/0.1135, allocations: 13.88 MB / 409.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008297/0.1218, allocations: 5.935 MB / 415.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.1235, allocations: 35.88 kB / 415.2 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.1255, allocations: 0.7495 MB / 415.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006193/0.1317, allocations: 2.617 MB / 418.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.1332, allocations: 0.6687 MB / 419.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004703/0.1379, allocations: 4.214 MB / 423.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006226/0.1385, allocations: 305.3 kB / 423.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.1405, allocations: 1.358 MB / 425.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.1427, allocations: 1.424 MB / 426.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004069/0.1431, allocations: 160 kB / 426.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.1449, allocations: 0.6207 MB / 427.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004532/0.1454, allocations: 374.3 kB / 427.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1675/0.3129, allocations: 1.246 MB / 428.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005018/0.318, allocations: 3.171 MB / 432 MB, free: 14.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.3181, allocations: 0.75 kB / 432 MB, free: 14.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3181, allocations: 0 / 432 MB, free: 14.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.409e-05/0.3181, allocations: 1.156 kB / 432 MB, free: 14.91 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.01211/0.3302, allocations: 3.371 MB / 435.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.3303, allocations: 9.875 kB / 435.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002827/0.3306, allocations: 227.8 kB / 435.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.3323, allocations: 345 kB / 436 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002476/0.3348, allocations: 1.382 MB / 437.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.038e-05/0.3349, allocations: 115.6 kB / 437.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/0.3351, allocations: 155 kB / 437.6 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002435/0.3376, allocations: 1.801 MB / 439.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.34e-05/0.3376, allocations: 6.25 kB / 439.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.3377, allocations: 65.69 kB / 439.5 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.796e-05/0.3378, allocations: 40.94 kB / 439.5 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00232/0.3401, allocations: 1.506 MB / 441.1 MB, free: 12.64 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.01284/0.3529, allocations: 13.02 MB / 454.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.3553, allocations: 1.874 MB / 455.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007747/0.3561, allocations: 0.6233 MB / 456.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.807e-05/0.3562, allocations: 16.39 kB / 456.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009208/0.3571, allocations: 0.7365 MB / 457.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 3.527e-06/0.3572, allocations: 0 / 457.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.006495/0.3637, allocations: 2.675 MB / 460 MB, free: 15.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.3638, allocations: 232.1 kB / 460.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002184/0.366, allocations: 1.262 MB / 461.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.537e-05/0.3661, allocations: 56.08 kB / 461.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009359/0.367, allocations: 0.7932 MB / 462.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006759/0.3677, allocations: 0.5129 MB / 462.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004265/0.3682, allocations: 319.5 kB / 463.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3683, allocations: 305.1 kB / 463.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007018/0.369, allocations: 497.4 kB / 463.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.3701, allocations: 0.9632 MB / 464.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002057/0.3721, allocations: 1.699 MB / 466.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-06/0.3722, allocations: 3.938 kB / 466.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.0033/0.3755, allocations: 2.067 MB / 468.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-05/0.3755, allocations: 70.11 kB / 468.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.3756, allocations: 18.84 kB / 468.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3766, allocations: 403.9 kB / 469.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.3781, allocations: 423.4 kB / 469.6 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005228/0.3834, allocations: 4.019 MB / 473.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.3855, allocations: 135 kB / 473.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.3856, allocations: 75.98 kB / 473.8 MB, free: 5.02 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.0007384/0.3864, allocations: 488.8 kB / 474.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003015/0.3867, allocations: 166.2 kB / 474.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002756/0.3895, allocations: 1.701 MB / 476.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.3895, allocations: 23.98 kB / 476.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3895, allocations: 4 kB / 476.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.3895, allocations: 3.984 kB / 476.2 MB, free: 2.648 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.005157/0.3947, allocations: 3.957 MB / 480.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3947, allocations: 0 / 480.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.3959, allocations: 266.2 kB / 480.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009023/0.3968, allocations: 364.5 kB / 480.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.811e-05/0.3969, allocations: 28 kB / 480.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005146/0.402, allocations: 3.986 MB / 484.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.402, allocations: 4 kB / 484.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002912/0.405, allocations: 1.737 MB / 486.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008584/0.4058, allocations: 433.4 kB / 486.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.4061, allocations: 35.98 kB / 487 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.4072, allocations: 35.91 kB / 487 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.4074, allocations: 93.17 kB / 487.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.048e-05/0.4075, allocations: 40 kB / 487.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001157/0.4087, allocations: 0.845 MB / 488 MB, free: 6.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4087, allocations: 0 / 488 MB, free: 6.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001762/0.4104, allocations: 0.6451 MB / 488.6 MB, free: 5.98 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.003112/0.4136, allocations: 2.439 MB / 491 MB, free: 3.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004212/0.4178, allocations: 1.841 MB / 492.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4178, allocations: 0 / 492.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.4192, allocations: 1.079 MB / 494 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.4206, allocations: 222.5 kB / 494.2 MB, free: 444 kB / 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.01882/0.4394, allocations: 13.95 MB / 0.4962 GB, free: 1.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008583/0.4403, allocations: 1.247 MB / 0.4974 GB, free: 280 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.4414, allocations: 216 kB / 0.4976 GB, free: 60 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009879/0.4424, allocations: 0.6161 MB / 0.4982 GB, free: 15.48 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4424, allocations: 0 / 0.4982 GB, free: 15.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07166/0.5141, allocations: 36.56 MB / 0.534 GB, free: 11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.719/10.23, allocations: 11.94 kB / 0.534 GB, free: 10.99 MB / 414.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches