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.001103/0.001103, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.00141/0.00141, allocations: 177.2 kB / 16.27 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.216/1.216, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05639/0.05639, allocations: 14.16 MB / 284.9 MB, free: 7.031 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.0004299/0.0004299, allocations: 12.22 kB / 346.9 MB, free: 19.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06978/0.07022, allocations: 51.11 MB / 398 MB, free: 280 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01022/0.08046, allocations: 13.45 MB / 411.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007568/0.08805, allocations: 5.869 MB / 417.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008748/0.08895, allocations: 35.88 kB / 417.3 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.09026, allocations: 0.6495 MB / 418 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004861/0.09513, allocations: 2.418 MB / 420.4 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.09644, allocations: 0.6232 MB / 421 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004297/0.1007, allocations: 4.206 MB / 425.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003917/0.1011, allocations: 288.2 kB / 425.5 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.1022, allocations: 1.018 MB / 426.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.1032, allocations: 1.128 MB / 427.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.1033, allocations: 56 kB / 427.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009663/0.1043, allocations: 459.7 kB / 428.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.1045, allocations: 246.4 kB / 428.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000837/0.1053, allocations: 1.086 MB / 429.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1396/0.2449, allocations: 2.809 MB / 432.3 MB, free: 16.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2449, allocations: 0 / 432.3 MB, free: 16.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2449, allocations: 0.7656 kB / 432.3 MB, free: 16.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.563e-05/0.245, allocations: 5.156 kB / 432.3 MB, free: 16.89 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.008923/0.2539, allocations: 2.825 MB / 435.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.254, allocations: 13.59 kB / 435.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004174/0.2544, allocations: 225.3 kB / 435.4 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001514/0.2559, allocations: 340.8 kB / 435.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.2582, allocations: 1.337 MB / 437 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.918e-05/0.2582, allocations: 117.3 kB / 437.1 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.2584, allocations: 156 kB / 437.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.2608, allocations: 1.792 MB / 439.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.63e-05/0.2608, allocations: 6.031 kB / 439.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/0.261, allocations: 74.62 kB / 439.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.022e-05/0.261, allocations: 42.62 kB / 439.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002141/0.2632, allocations: 1.497 MB / 440.7 MB, free: 14.68 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.007861/0.271, allocations: 12.07 MB / 452.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002149/0.2732, allocations: 1.871 MB / 454.7 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007418/0.2739, allocations: 0.6249 MB / 455.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.332e-05/0.274, allocations: 20.95 kB / 455.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008738/0.2749, allocations: 0.7346 MB / 456 MB, free: 4.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 2.725e-06/0.2749, allocations: 0 / 456 MB, free: 4.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.005563/0.2805, allocations: 2.689 MB / 458.7 MB, free: 2.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.2805, allocations: 227.8 kB / 458.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.2817, allocations: 1.122 MB / 460.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.475e-05/0.2817, allocations: 51.98 kB / 460.1 MB, free: 1.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003769/0.2821, allocations: 0.7935 MB / 460.9 MB, free: 1.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.2824, allocations: 0.5161 MB / 461.4 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.2826, allocations: 145.4 kB / 461.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 2.81e-05/0.2826, allocations: 305.1 kB / 461.9 MB, free: 268 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006949/0.2833, allocations: 497 kB / 462.4 MB, free: 16 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.2843, allocations: 0.9663 MB / 463.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.2862, allocations: 1.693 MB / 465 MB, free: 13.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.2863, allocations: 6.25 kB / 465 MB, free: 13.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.002975/0.2892, allocations: 2.065 MB / 467.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/0.2893, allocations: 68.11 kB / 467.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.2893, allocations: 19.22 kB / 467.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009556/0.2903, allocations: 406.4 kB / 467.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.2918, allocations: 417.4 kB / 468 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004811/0.2966, allocations: 3.678 MB / 471.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.2982, allocations: 154.8 kB / 471.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.2983, allocations: 75.98 kB / 471.9 MB, free: 8.992 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.0007864/0.2991, allocations: 495.1 kB / 472.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.2993, allocations: 162.1 kB / 472.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002835/0.3021, allocations: 1.69 MB / 474.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.3022, allocations: 27.95 kB / 474.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.3022, allocations: 8 kB / 474.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.3022, allocations: 5.75 kB / 474.3 MB, free: 6.613 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.0051/0.3073, allocations: 3.599 MB / 477.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3073, allocations: 1.969 kB / 477.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.3085, allocations: 266.8 kB / 478.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008981/0.3094, allocations: 359 kB / 478.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.366e-05/0.3094, allocations: 28 kB / 478.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00453/0.314, allocations: 3.659 MB / 482.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.314, allocations: 0 / 482.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/0.3165, allocations: 1.736 MB / 483.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005611/0.3171, allocations: 366.9 kB / 484.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/0.3173, allocations: 32 kB / 484.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008358/0.3181, allocations: 63.58 kB / 484.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.3183, allocations: 101.9 kB / 484.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.691e-05/0.3184, allocations: 36 kB / 484.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009311/0.3193, allocations: 0.7357 MB / 485.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3193, allocations: 0 / 485.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001405/0.3207, allocations: 0.5856 MB / 485.8 MB, free: 10.85 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.002906/0.3236, allocations: 2.432 MB / 488.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002449/0.3261, allocations: 1.797 MB / 490 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3261, allocations: 0 / 490 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001377/0.3275, allocations: 1.061 MB / 491.1 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008658/0.3284, allocations: 179.4 kB / 491.3 MB, free: 5.391 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.01963/0.348, allocations: 13.82 MB / 0.4932 GB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007677/0.3488, allocations: 1.251 MB / 0.4945 GB, free: 5.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000895/0.3497, allocations: 204.1 kB / 0.4947 GB, free: 5.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007089/0.3504, allocations: 0.6047 MB / 0.4953 GB, free: 4.652 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3504, allocations: 0 / 0.4953 GB, free: 4.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04475/0.3952, allocations: 31.03 MB / 0.5256 GB, free: 5.773 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.3954, allocations: 237.6 kB / 0.5258 GB, free: 5.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.165/2.561, allocations: 2.406 kB / 0.5258 GB, free: 5.512 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