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.004679/0.00468, allocations: 99.11 kB / 15.73 MB, free: 6.051 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.001258/0.001258, allocations: 202 kB / 16.68 MB, free: 5.965 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.384/1.384, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0659/0.0659, allocations: 14.17 MB / 284.1 MB, free: 7 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.002236/0.002236, allocations: 75.83 kB / 396 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2398, allocations: 50.13 MB / 446.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01407/0.2539, allocations: 13.87 MB / 460 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009926/0.2638, allocations: 5.942 MB / 466 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.2658, allocations: 36.28 kB / 466 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002304/0.2681, allocations: 0.7496 MB / 466.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007029/0.2752, allocations: 2.623 MB / 469.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.2769, allocations: 0.6607 MB / 470 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006234/0.2831, allocations: 4.24 MB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006887/0.2839, allocations: 316.9 kB / 474.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.2863, allocations: 1.362 MB / 475.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.2886, allocations: 1.428 MB / 477.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003742/0.289, allocations: 160 kB / 477.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.2908, allocations: 0.6247 MB / 478.1 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003661/0.2912, allocations: 374.3 kB / 478.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001776/0.293, allocations: 1.248 MB / 479.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005159/0.2981, allocations: 3.348 MB / 483.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2982, allocations: 3.938 kB / 483.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2982, allocations: 0 / 483.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.972e-05/0.2982, allocations: 0 / 483.1 MB, free: 2.055 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: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.01136/0.3096, allocations: 3.398 MB / 486.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3097, allocations: 8.031 kB / 486.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002927/0.31, allocations: 232.2 kB / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001605/0.3116, allocations: 355.4 kB / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002837/0.3144, allocations: 1.42 MB / 488.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.3146, allocations: 115.2 kB / 488.6 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.3148, allocations: 156 kB / 488.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002838/0.3176, allocations: 1.794 MB / 490.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.93e-05/0.3177, allocations: 7.938 kB / 490.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.3178, allocations: 67.94 kB / 490.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.3179, allocations: 44 kB / 490.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00262/0.3205, allocations: 1.501 MB / 492.2 MB, free: 8.66 MB / 366.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.01651/0.337, allocations: 12.97 MB / 0.4933 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.34, allocations: 1.876 MB / 0.4951 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009689/0.341, allocations: 0.625 MB / 0.4958 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.815e-05/0.3411, allocations: 17.3 kB / 0.4958 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/0.3422, allocations: 0.741 MB / 0.4965 GB, free: 7.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=151): time 3.977e-06/0.3422, allocations: 0 / 0.4965 GB, free: 7.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.006835/0.3491, allocations: 2.669 MB / 0.4991 GB, free: 4.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.3493, allocations: 234.9 kB / 0.4993 GB, free: 4.234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/0.3515, allocations: 1.267 MB / 0.5006 GB, free: 2.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.3516, allocations: 53.7 kB / 0.5006 GB, free: 2.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008474/0.3525, allocations: 0.8165 MB / 0.5014 GB, free: 2.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007063/0.3532, allocations: 0.5383 MB / 0.5019 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005037/0.3537, allocations: 315.4 kB / 0.5022 GB, free: 1.207 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3538, allocations: 305.1 kB / 0.5025 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008719/0.3547, allocations: 491.8 kB / 0.503 GB, free: 436 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.356, allocations: 0.9686 MB / 0.5039 GB, free: 15.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/0.3584, allocations: 1.704 MB / 0.5056 GB, free: 13.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.3585, allocations: 7.984 kB / 0.5056 GB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.004043/0.3625, allocations: 2.074 MB / 0.5076 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.55e-05/0.3626, allocations: 67.41 kB / 0.5077 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/0.3627, allocations: 16 kB / 0.5077 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.3638, allocations: 404.9 kB / 0.5081 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.3655, allocations: 419.4 kB / 0.5085 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006118/0.3716, allocations: 4.018 MB / 0.5124 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/0.3738, allocations: 159.2 kB / 0.5126 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.3739, allocations: 72 kB / 0.5127 GB, free: 5.926 MB / 398.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.0008542/0.3748, allocations: 477.3 kB / 0.5131 GB, free: 5.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004575/0.3753, allocations: 171 kB / 0.5133 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003224/0.3785, allocations: 1.701 MB / 0.5149 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.3785, allocations: 19.94 kB / 0.5149 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3786, allocations: 4 kB / 0.515 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.3786, allocations: 7.969 kB / 0.515 GB, free: 3.512 MB / 398.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.006213/0.3848, allocations: 3.95 MB / 0.5188 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.75e-06/0.3848, allocations: 0 / 0.5188 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.3861, allocations: 279.6 kB / 0.5191 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.3871, allocations: 352.6 kB / 0.5194 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-05/0.3872, allocations: 28 kB / 0.5194 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005909/0.3931, allocations: 3.98 MB / 0.5233 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3932, allocations: 3.938 kB / 0.5233 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003375/0.3966, allocations: 1.746 MB / 0.525 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009185/0.3975, allocations: 443.6 kB / 0.5255 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002823/0.3978, allocations: 28 kB / 0.5255 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.399, allocations: 47.98 kB / 0.5255 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.3993, allocations: 97.16 kB / 0.5256 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.571e-05/0.3993, allocations: 36.25 kB / 0.5257 GB, free: 8.219 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001362/0.4007, allocations: 0.8411 MB / 0.5265 GB, free: 7.375 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4007, allocations: 0 / 0.5265 GB, free: 7.375 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001886/0.4026, allocations: 0.6519 MB / 0.5271 GB, free: 6.723 MB / 414.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.00369/0.4063, allocations: 2.439 MB / 0.5295 GB, free: 4.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003277/0.4096, allocations: 1.795 MB / 0.5313 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4096, allocations: 0 / 0.5313 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001688/0.4113, allocations: 1.078 MB / 0.5323 GB, free: 1.289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.4128, allocations: 208.8 kB / 0.5325 GB, free: 1.086 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02077/0.4336, allocations: 12.82 MB / 0.545 GB, free: 3.707 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.4346, allocations: 1.251 MB / 0.5462 GB, free: 2.426 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009/0.4355, allocations: 216.1 kB / 0.5465 GB, free: 2.211 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009813/0.4365, allocations: 0.6125 MB / 0.5471 GB, free: 1.598 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4365, allocations: 0 / 0.5471 GB, free: 1.598 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08076/0.5173, allocations: 37.28 MB / 0.5835 GB, free: 12.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.88, allocations: 7.938 kB / 0.5835 GB, free: 12.27 MB / 478.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