Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.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.LoadImpedancePQ,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_LoadImpedancePQ",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.LoadImpedancePQ,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_LoadImpedancePQ",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.008039/0.008039, allocations: 97.88 kB / 15.73 MB, free: 6.004 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.001895/0.001895, allocations: 192.6 kB / 16.67 MB, free: 5.934 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.536/1.536, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06468/0.06468, allocations: 14.18 MB / 284.1 MB, free: 6.984 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.001595/0.001595, allocations: 71.91 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2975, allocations: 50.14 MB / 446.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.LoadImpedancePQ): time 0.01081/0.3083, allocations: 9.989 MB / 456.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008744/0.3171, allocations: 4.413 MB / 460.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002148/0.3193, allocations: 28.03 kB / 460.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.3214, allocations: 0.5227 MB / 461.1 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006522/0.328, allocations: 2.023 MB / 463.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00118/0.3292, allocations: 384.5 kB / 463.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0048/0.334, allocations: 2.871 MB / 466.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005332/0.3346, allocations: 184.6 kB / 466.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.3366, allocations: 0.9786 MB / 467.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001421/0.338, allocations: 0.9622 MB / 468.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.3382, allocations: 103.9 kB / 468.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.3394, allocations: 427.8 kB / 469 MB, free: 204 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.3397, allocations: 242.8 kB / 469.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008639/0.3405, allocations: 0.8279 MB / 470.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002774/0.3433, allocations: 2.121 MB / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3434, allocations: 0 / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3434, allocations: 0 / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.249e-05/0.3434, allocations: 0 / 472.2 MB, free: 13.01 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.009169/0.3526, allocations: 2.616 MB / 474.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.3526, allocations: 12.03 kB / 474.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001937/0.3528, allocations: 160.9 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.3539, allocations: 227.9 kB / 475.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.3559, allocations: 0.9725 MB / 476.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.428e-05/0.356, allocations: 86.12 kB / 476.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.3561, allocations: 103.9 kB / 476.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.3579, allocations: 1.077 MB / 477.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.358, allocations: 0 / 477.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-05/0.3581, allocations: 47.98 kB / 477.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.306e-05/0.3581, allocations: 28 kB / 477.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00179/0.3599, allocations: 1.023 MB / 478.5 MB, free: 6.488 MB / 350.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.009161/0.3691, allocations: 6.711 MB / 485.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002817/0.3719, allocations: 1.468 MB / 486.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006521/0.3726, allocations: 411.8 kB / 487.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.851e-05/0.3727, allocations: 20.12 kB / 487.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.3728, allocations: 50.44 kB / 487.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.356e-06/0.3728, allocations: 0 / 487.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.003756/0.3765, allocations: 1.693 MB / 488.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.3766, allocations: 114.8 kB / 489 MB, free: 11.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.3778, allocations: 0.7708 MB / 489.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/0.3779, allocations: 49.69 kB / 489.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/0.3783, allocations: 493.2 kB / 490.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005154/0.3789, allocations: 428.2 kB / 490.7 MB, free: 9.324 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000374/0.3792, allocations: 186.9 kB / 490.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002197/0.3795, allocations: 345.9 kB / 491.2 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006165/0.3801, allocations: 322.5 kB / 491.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007704/0.3809, allocations: 483.5 kB / 492 MB, free: 7.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.3823, allocations: 0.8577 MB / 492.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.3823, allocations: 0 / 492.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00238/0.3847, allocations: 1.166 MB / 494 MB, free: 5.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.3848, allocations: 4 kB / 494 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3848, allocations: 4 kB / 494 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005941/0.3854, allocations: 166.8 kB / 494.2 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.3867, allocations: 311.6 kB / 494.5 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004548/0.3913, allocations: 4.806 MB / 499.3 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.3925, allocations: 79.66 kB / 499.4 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.264e-05/0.3926, allocations: 36 kB / 499.4 MB, free: 48 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004993/0.3931, allocations: 277.6 kB / 499.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/0.3934, allocations: 115.3 kB / 499.8 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00212/0.3955, allocations: 1.144 MB / 0.4892 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.3955, allocations: 12 kB / 0.4892 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3955, allocations: 4 kB / 0.4892 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.3956, allocations: 3.984 kB / 0.4892 GB, free: 14.46 MB / 382.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.004018/0.3996, allocations: 2.837 MB / 0.492 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.3996, allocations: 3.938 kB / 0.492 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.4008, allocations: 275.6 kB / 0.4923 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004738/0.4013, allocations: 154.4 kB / 0.4924 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-05/0.4013, allocations: 24 kB / 0.4924 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004289/0.4056, allocations: 4.791 MB / 0.4971 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4057, allocations: 3.938 kB / 0.4971 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.4078, allocations: 1.309 MB / 0.4984 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005929/0.4085, allocations: 304.1 kB / 0.4987 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.4086, allocations: 19.98 kB / 0.4987 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008733/0.4095, allocations: 43.88 kB / 0.4988 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.4097, allocations: 79.78 kB / 0.4988 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.4097, allocations: 32 kB / 0.4989 GB, free: 4.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007595/0.4105, allocations: 0.5342 MB / 0.4994 GB, free: 3.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4105, allocations: 0 / 0.4994 GB, free: 3.477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001392/0.4119, allocations: 415.7 kB / 0.4998 GB, free: 3.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00288/0.4148, allocations: 1.952 MB / 0.5017 GB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00223/0.4171, allocations: 1.278 MB / 0.5029 GB, free: 15.76 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.4171, allocations: 0 / 0.5029 GB, free: 15.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.4184, allocations: 0.8667 MB / 0.5038 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.4197, allocations: 180.6 kB / 0.5039 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/0.4333, allocations: 8.214 MB / 0.512 GB, free: 6.227 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008332/0.4341, allocations: 1.071 MB / 0.513 GB, free: 5.121 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006939/0.4349, allocations: 155.7 kB / 0.5132 GB, free: 4.965 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006717/0.4355, allocations: 431.3 kB / 0.5136 GB, free: 4.543 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4355, allocations: 0 / 0.5136 GB, free: 4.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0599/0.4954, allocations: 24.35 MB / 0.5374 GB, free: 12.15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.17, allocations: 11.83 kB / 0.5374 GB, free: 12.14 MB / 430.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PowerGrids_PowerGrids_Electrical_Test_LoadImpedancePQ.fmu > PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.LoadImpedancePQ_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches