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.001325/0.001325, 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.001187/0.001187, allocations: 194.1 kB / 16.53 MB, free: 6.699 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.368/1.368, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06307/0.06307, allocations: 14.17 MB / 283.9 MB, free: 7.09 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.001522/0.001522, allocations: 71.83 kB / 345.2 MB, free: 19.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.08606, allocations: 50.12 MB / 395.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01317/0.09926, allocations: 13.89 MB / 409.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009192/0.1085, allocations: 5.927 MB / 415.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002146/0.1107, allocations: 35.88 kB / 415.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002462/0.1132, allocations: 0.7494 MB / 415.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007596/0.1208, allocations: 2.624 MB / 418.5 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002093/0.1229, allocations: 0.6617 MB / 419.2 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006383/0.1293, allocations: 4.215 MB / 423.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007513/0.1301, allocations: 309.3 kB / 423.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002263/0.1324, allocations: 1.35 MB / 425.1 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002379/0.1348, allocations: 1.428 MB / 426.5 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00051/0.1353, allocations: 160 kB / 426.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002087/0.1374, allocations: 0.6246 MB / 427.3 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004695/0.1379, allocations: 374.3 kB / 427.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1774/0.3153, allocations: 1.246 MB / 428.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004701/0.32, allocations: 3.167 MB / 432 MB, free: 14.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.32, allocations: 1.312 kB / 432 MB, free: 14.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3201, allocations: 0 / 432 MB, free: 14.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.199e-05/0.3201, allocations: 0 / 432 MB, free: 14.93 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.01222/0.3324, allocations: 3.378 MB / 435.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3324, allocations: 9.969 kB / 435.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000295/0.3327, allocations: 224 kB / 435.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001826/0.3346, allocations: 346.1 kB / 436 MB, free: 13.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.3374, allocations: 1.376 MB / 437.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.735e-05/0.3375, allocations: 122.8 kB / 437.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001813/0.3377, allocations: 156 kB / 437.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002641/0.3403, allocations: 1.803 MB / 439.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.803e-05/0.3404, allocations: 9.359 kB / 439.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.3405, allocations: 68.47 kB / 439.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.534e-05/0.3406, allocations: 41.78 kB / 439.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002384/0.3429, allocations: 1.506 MB / 441.1 MB, free: 12.67 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.01316/0.3561, allocations: 13.01 MB / 454.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.3585, allocations: 1.878 MB / 455.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00082/0.3593, allocations: 0.6266 MB / 456.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-05/0.3594, allocations: 15.5 kB / 456.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009464/0.3604, allocations: 0.7336 MB / 457.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 3.026e-06/0.3604, allocations: 0 / 457.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.006536/0.3669, allocations: 2.675 MB / 460 MB, free: 15.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.3671, allocations: 228.2 kB / 460.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.3692, allocations: 1.27 MB / 461.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.719e-05/0.3694, allocations: 51.92 kB / 461.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007734/0.3701, allocations: 0.7897 MB / 462.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006204/0.3708, allocations: 0.5175 MB / 462.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004703/0.3712, allocations: 318.3 kB / 463.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.422e-05/0.3714, allocations: 308.8 kB / 463.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007468/0.3721, allocations: 497.3 kB / 463.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3731, allocations: 0.9573 MB / 464.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002039/0.3752, allocations: 1.705 MB / 466.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.3752, allocations: 3.75 kB / 466.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.003492/0.3787, allocations: 2.066 MB / 468.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.304e-05/0.3788, allocations: 63.16 kB / 468.7 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.3788, allocations: 18.69 kB / 468.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.3798, allocations: 410.3 kB / 469.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.3814, allocations: 419 kB / 469.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005509/0.3869, allocations: 4.02 MB / 473.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/0.3894, allocations: 143 kB / 473.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.3896, allocations: 72.12 kB / 473.8 MB, free: 5.004 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.0009549/0.3905, allocations: 487.8 kB / 474.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000604/0.3911, allocations: 170 kB / 474.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003001/0.3941, allocations: 1.702 MB / 476.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.3942, allocations: 16 kB / 476.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.3942, allocations: 4 kB / 476.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.3942, allocations: 7.969 kB / 476.2 MB, free: 2.629 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.006232/0.4004, allocations: 3.961 MB / 480.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.4005, allocations: 0 / 480.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.4017, allocations: 266.8 kB / 480.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009771/0.4027, allocations: 364.5 kB / 480.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.214e-05/0.4028, allocations: 28 kB / 480.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005381/0.4082, allocations: 3.974 MB / 484.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4082, allocations: 3.375 kB / 484.8 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00326/0.4115, allocations: 1.743 MB / 486.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.4127, allocations: 434.8 kB / 486.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004964/0.4132, allocations: 28 kB / 486.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.4147, allocations: 43.89 kB / 487 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.4149, allocations: 93.17 kB / 487.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.415, allocations: 40 kB / 487.1 MB, free: 7.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001434/0.4165, allocations: 0.845 MB / 488 MB, free: 6.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4165, allocations: 3.469 kB / 488 MB, free: 6.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002191/0.4187, allocations: 0.6409 MB / 488.6 MB, free: 5.965 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.003413/0.4221, allocations: 2.441 MB / 491.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004445/0.4265, allocations: 1.842 MB / 492.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4266, allocations: 0 / 492.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.4282, allocations: 1.067 MB / 494 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.4303, allocations: 224.9 kB / 494.2 MB, free: 428 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.02189/0.4523, allocations: 13.94 MB / 0.4962 GB, free: 1.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000935/0.4532, allocations: 1.255 MB / 0.4974 GB, free: 264 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001125/0.4544, allocations: 212.1 kB / 0.4976 GB, free: 48 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/0.4554, allocations: 0.6195 MB / 0.4982 GB, free: 15.45 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4554, allocations: 0 / 0.4982 GB, free: 15.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07329/0.5287, allocations: 36.56 MB / 0.534 GB, free: 10.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.921/10.45, allocations: 11.88 kB / 0.534 GB, free: 10.96 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 & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.csv","/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