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.004863/0.004863, allocations: 102.2 kB / 15.73 MB, free: 6.066 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.00131/0.00131, allocations: 191.4 kB / 16.67 MB, free: 5.973 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.406/1.406, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06761/0.06761, 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.002228/0.002228, allocations: 72.12 kB / 396 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2423, allocations: 50.15 MB / 446.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.LoadImpedancePQ): time 0.01001/0.2524, allocations: 9.989 MB / 456.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007307/0.2597, allocations: 4.405 MB / 460.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001014/0.2608, allocations: 27.56 kB / 460.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2621, allocations: 0.5236 MB / 461.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004865/0.2671, allocations: 1.942 MB / 463 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009841/0.2681, allocations: 389.1 kB / 463.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003841/0.2719, allocations: 2.874 MB / 466.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004399/0.2724, allocations: 181 kB / 466.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00176/0.2741, allocations: 0.9609 MB / 467.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001976/0.2761, allocations: 0.961 MB / 468.4 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003342/0.2765, allocations: 99.94 kB / 468.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001694/0.2782, allocations: 435.8 kB / 468.9 MB, free: 288 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002992/0.2785, allocations: 246.8 kB / 469.2 MB, free: 40 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.2797, allocations: 0.824 MB / 470 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.283, allocations: 2.117 MB / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2831, allocations: 0 / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2831, allocations: 0 / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.2831, allocations: 0 / 472.1 MB, free: 13.09 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.009486/0.2926, allocations: 2.613 MB / 474.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.2927, allocations: 12.03 kB / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000346/0.293, allocations: 160.9 kB / 474.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/0.2944, allocations: 227.9 kB / 475.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.2968, allocations: 0.9763 MB / 476.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.818e-05/0.2968, allocations: 82.12 kB / 476.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.297, allocations: 104 kB / 476.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.2992, allocations: 1.069 MB / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.2992, allocations: 0 / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.048e-05/0.2993, allocations: 44 kB / 477.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.557e-05/0.2994, allocations: 28 kB / 477.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00191/0.3013, allocations: 1.027 MB / 478.4 MB, free: 6.582 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.009757/0.3111, allocations: 6.715 MB / 485.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002842/0.3139, allocations: 1.47 MB / 486.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007299/0.3147, allocations: 407.8 kB / 487 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.473e-05/0.3148, allocations: 20.98 kB / 487 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.3149, allocations: 50.44 kB / 487.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.336e-06/0.3149, allocations: 0 / 487.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.003899/0.3188, allocations: 1.693 MB / 488.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.3189, allocations: 118.8 kB / 488.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.3204, allocations: 0.7708 MB / 489.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.76e-05/0.3205, allocations: 45.7 kB / 489.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000492/0.321, allocations: 497.1 kB / 490.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005965/0.3216, allocations: 424.3 kB / 490.6 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003656/0.3219, allocations: 186.9 kB / 490.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.3222, allocations: 345.9 kB / 491.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006499/0.3228, allocations: 318.5 kB / 491.4 MB, free: 8.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007724/0.3236, allocations: 491.5 kB / 491.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001665/0.3253, allocations: 0.8538 MB / 492.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3253, allocations: 0 / 492.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002505/0.3278, allocations: 1.166 MB / 493.9 MB, free: 5.957 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.3279, allocations: 4 kB / 493.9 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.3279, allocations: 4 kB / 493.9 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006137/0.3285, allocations: 170.8 kB / 494.1 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.3299, allocations: 315.6 kB / 494.4 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005315/0.3352, allocations: 4.802 MB / 499.2 MB, free: 256 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.3365, allocations: 79.66 kB / 499.3 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.3366, allocations: 36 kB / 499.3 MB, free: 140 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.000609/0.3372, allocations: 277.7 kB / 499.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003807/0.3376, allocations: 115.3 kB / 499.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.3401, allocations: 1.144 MB / 0.4891 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.3401, allocations: 12 kB / 0.4891 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-05/0.3402, allocations: 4 kB / 0.4891 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.3402, allocations: 3.984 kB / 0.4891 GB, free: 14.55 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.005006/0.3452, allocations: 2.841 MB / 0.4919 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.158e-06/0.3452, allocations: 3.938 kB / 0.4919 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.3464, allocations: 275.6 kB / 0.4922 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005246/0.3469, allocations: 150.5 kB / 0.4923 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.457e-05/0.347, allocations: 24 kB / 0.4923 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005286/0.3523, allocations: 4.787 MB / 0.497 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3524, allocations: 3.938 kB / 0.497 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.3549, allocations: 1.309 MB / 0.4983 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000717/0.3556, allocations: 308.3 kB / 0.4986 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.3558, allocations: 19.94 kB / 0.4986 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009644/0.3568, allocations: 47.86 kB / 0.4987 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.357, allocations: 79.78 kB / 0.4987 GB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.067e-05/0.3571, allocations: 31.98 kB / 0.4988 GB, free: 4.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008632/0.358, allocations: 0.5303 MB / 0.4993 GB, free: 3.566 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.358, allocations: 0 / 0.4993 GB, free: 3.566 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001481/0.3595, allocations: 415.7 kB / 0.4997 GB, free: 3.16 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.002885/0.3624, allocations: 1.956 MB / 0.5016 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.3648, allocations: 1.274 MB / 0.5028 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3649, allocations: 0 / 0.5028 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.3663, allocations: 0.8667 MB / 0.5037 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/0.368, allocations: 184.7 kB / 0.5039 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01491/0.383, allocations: 8.217 MB / 0.5119 GB, free: 6.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008768/0.3839, allocations: 1.068 MB / 0.5129 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007006/0.3846, allocations: 151.7 kB / 0.5131 GB, free: 5.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007458/0.3854, allocations: 427.3 kB / 0.5135 GB, free: 4.637 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3854, allocations: 3.938 kB / 0.5135 GB, free: 4.633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08982/0.4752, allocations: 24.35 MB / 0.5373 GB, free: 12.24 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.96, allocations: 7.844 kB / 0.5373 GB, free: 12.23 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