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.007234/0.007234, allocations: 102.2 kB / 15.73 MB, free: 6.469 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.00186/0.00186, allocations: 193.8 kB / 16.67 MB, free: 6.379 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.318/1.318, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06087/0.06087, 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.002146/0.002146, allocations: 71.89 kB / 396 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2415, allocations: 50.14 MB / 446.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.LoadImpedancePQ): time 0.008607/0.2502, allocations: 9.989 MB / 456.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006849/0.2571, allocations: 4.412 MB / 460.5 MB, free: 6.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.2584, allocations: 24.59 kB / 460.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.26, allocations: 0.5225 MB / 461.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005088/0.2652, allocations: 1.947 MB / 463 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.2663, allocations: 376.6 kB / 463.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003795/0.2701, allocations: 2.874 MB / 466.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004567/0.2706, allocations: 183.5 kB / 466.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.2723, allocations: 0.9785 MB / 467.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001786/0.2741, allocations: 0.9624 MB / 468.4 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003417/0.2745, allocations: 95.94 kB / 468.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.2761, allocations: 443.7 kB / 468.9 MB, free: 308 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003197/0.2764, allocations: 246.8 kB / 469.2 MB, free: 60 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00154/0.278, allocations: 0.8241 MB / 470 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003343/0.2813, allocations: 2.103 MB / 472.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2814, allocations: 3.938 kB / 472.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2814, allocations: 4 kB / 472.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.536e-05/0.2814, allocations: 0 / 472.1 MB, free: 13.11 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.009082/0.2905, allocations: 2.568 MB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.2906, allocations: 8.031 kB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002363/0.2908, allocations: 160.9 kB / 474.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001007/0.2918, allocations: 227.1 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/0.294, allocations: 0.9674 MB / 476 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.2941, allocations: 82.12 kB / 476.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.2943, allocations: 100 kB / 476.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.2961, allocations: 1.066 MB / 477.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.2961, allocations: 11.92 kB / 477.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.489e-05/0.2962, allocations: 40 kB / 477.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.429e-05/0.2962, allocations: 28 kB / 477.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.2979, allocations: 1.031 MB / 478.4 MB, free: 6.656 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.008619/0.3066, allocations: 6.699 MB / 485.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00244/0.309, allocations: 1.474 MB / 486.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006533/0.3097, allocations: 403.8 kB / 486.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.751e-05/0.3098, allocations: 24.92 kB / 487 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.3098, allocations: 46.5 kB / 487 MB, free: 13.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.035e-06/0.3099, allocations: 0 / 487 MB, free: 13.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.003393/0.3132, allocations: 1.688 MB / 488.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.3133, allocations: 114.8 kB / 488.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.3144, allocations: 0.7786 MB / 489.6 MB, free: 10.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.472e-05/0.3145, allocations: 45.7 kB / 489.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003302/0.3149, allocations: 488.1 kB / 490.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004052/0.3153, allocations: 406 kB / 490.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002785/0.3156, allocations: 182.8 kB / 490.7 MB, free: 9.348 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3157, allocations: 353.9 kB / 491 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005487/0.3162, allocations: 314.5 kB / 491.3 MB, free: 8.688 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006361/0.3169, allocations: 483.5 kB / 491.8 MB, free: 8.168 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.3181, allocations: 0.8693 MB / 492.7 MB, free: 7.246 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3181, allocations: 0 / 492.7 MB, free: 7.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002067/0.3202, allocations: 1.146 MB / 493.8 MB, free: 6.082 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3202, allocations: 8 kB / 493.8 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3203, allocations: 4 kB / 493.8 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005372/0.3208, allocations: 162.7 kB / 494 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.322, allocations: 307.6 kB / 494.3 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004079/0.3261, allocations: 4.806 MB / 499.1 MB, free: 392 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.3272, allocations: 75.42 kB / 499.2 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.92e-05/0.3274, allocations: 40.06 kB / 499.2 MB, free: 276 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.0004933/0.3279, allocations: 289.5 kB / 499.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003242/0.3282, allocations: 110.7 kB / 499.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.3303, allocations: 1.136 MB / 0.489 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.3303, allocations: 16 kB / 0.489 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.3303, allocations: 0 / 0.489 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.039e-05/0.3303, allocations: 11.97 kB / 0.489 GB, free: 14.67 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.004056/0.3344, allocations: 2.836 MB / 0.4918 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.3344, allocations: 7.922 kB / 0.4918 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.3355, allocations: 271.7 kB / 0.4921 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004753/0.336, allocations: 146.5 kB / 0.4922 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.461e-05/0.3361, allocations: 31.98 kB / 0.4922 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003799/0.3399, allocations: 4.782 MB / 0.4969 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3399, allocations: 3.938 kB / 0.4969 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/0.342, allocations: 1.301 MB / 0.4982 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005689/0.3426, allocations: 303.5 kB / 0.4985 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.3428, allocations: 20 kB / 0.4985 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008951/0.3437, allocations: 39.83 kB / 0.4985 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.3438, allocations: 79.83 kB / 0.4986 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.727e-05/0.3439, allocations: 28 kB / 0.4986 GB, free: 4.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007289/0.3446, allocations: 0.5303 MB / 0.4991 GB, free: 3.719 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3446, allocations: 4 kB / 0.4992 GB, free: 3.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001399/0.346, allocations: 411.6 kB / 0.4995 GB, free: 3.312 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.002473/0.3485, allocations: 1.951 MB / 0.5014 GB, free: 1.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.3506, allocations: 1.27 MB / 0.5027 GB, free: 12 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3507, allocations: 4.125 kB / 0.5027 GB, free: 8 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.3519, allocations: 0.8627 MB / 0.5035 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.3533, allocations: 181 kB / 0.5037 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.3656, allocations: 8.176 MB / 0.5117 GB, free: 6.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006719/0.3663, allocations: 1.075 MB / 0.5127 GB, free: 5.406 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005985/0.3669, allocations: 143.7 kB / 0.5129 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005984/0.3675, allocations: 427.3 kB / 0.5133 GB, free: 4.844 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3675, allocations: 0 / 0.5133 GB, free: 4.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05382/0.4214, allocations: 24.99 MB / 0.5377 GB, free: 11.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.49, allocations: 3.906 kB / 0.5377 GB, free: 11.81 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_LoadImpedancePQ_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_LoadImpedancePQ.fmu > PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ_res.mat","/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