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.001368/0.001367, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001429/0.001429, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.669/1.669, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05854/0.05854, allocations: 14.16 MB / 283.6 MB, free: 7.262 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.001362/0.001362, allocations: 75.89 kB / 344.7 MB, free: 19.62 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/0.09508, allocations: 50.12 MB / 394.8 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.LoadImpedancePQ): time 0.009438/0.1046, allocations: 10.28 MB / 405.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006872/0.1115, allocations: 4.43 MB / 409.5 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.1131, allocations: 27.88 kB / 409.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.1147, allocations: 465.9 kB / 410 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004938/0.1198, allocations: 1.794 MB / 411.8 MB, free: 428 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009015/0.1207, allocations: 354.9 kB / 412.1 MB, free: 76 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004161/0.1249, allocations: 3.012 MB / 415.1 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003372/0.1252, allocations: 176.2 kB / 415.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.1263, allocations: 0.8712 MB / 416.2 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007668/0.1271, allocations: 0.8518 MB / 417 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.1272, allocations: 72 kB / 417.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008589/0.1281, allocations: 415.7 kB / 417.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.1282, allocations: 202.9 kB / 417.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006145/0.1289, allocations: 0.7851 MB / 418.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.1307, allocations: 1.893 MB / 420.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1307, allocations: 0 / 420.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1307, allocations: 0 / 420.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.279e-05/0.1307, allocations: 0 / 420.4 MB, free: 7.773 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.007052/0.1378, allocations: 2.486 MB / 422.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.1378, allocations: 12.03 kB / 422.9 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/0.138, allocations: 160.9 kB / 423 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008175/0.1388, allocations: 223.1 kB / 423.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.1402, allocations: 0.901 MB / 424.2 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.561e-05/0.1402, allocations: 82.12 kB / 424.2 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1404, allocations: 107.9 kB / 424.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.1419, allocations: 1.058 MB / 425.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.142, allocations: 8 kB / 425.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.685e-05/0.1421, allocations: 44 kB / 425.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.1421, allocations: 28 kB / 425.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.1436, allocations: 1.027 MB / 426.5 MB, free: 1.473 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.17/0.3136, allocations: 6.239 MB / 432.8 MB, free: 33.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.316, allocations: 1.465 MB / 434.2 MB, free: 32.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006467/0.3167, allocations: 407.1 kB / 434.6 MB, free: 32.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.265e-05/0.3168, allocations: 28.53 kB / 434.6 MB, free: 32.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.3168, allocations: 48.5 kB / 434.7 MB, free: 32.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.477e-06/0.3169, allocations: 1.094 kB / 434.7 MB, free: 32.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.003352/0.3202, allocations: 1.69 MB / 436.4 MB, free: 31.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.3203, allocations: 118.1 kB / 436.5 MB, free: 31.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008729/0.3212, allocations: 0.702 MB / 437.2 MB, free: 30.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.379e-05/0.3212, allocations: 42.08 kB / 437.2 MB, free: 30.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.3215, allocations: 497.3 kB / 437.7 MB, free: 30.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002498/0.3217, allocations: 405.2 kB / 438.1 MB, free: 30.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002439/0.322, allocations: 184.5 kB / 438.3 MB, free: 30.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.826e-05/0.3221, allocations: 342.8 kB / 438.6 MB, free: 29.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005538/0.3226, allocations: 323.3 kB / 439 MB, free: 29.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006137/0.3233, allocations: 485.3 kB / 439.4 MB, free: 29.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001185/0.3244, allocations: 0.8624 MB / 440.3 MB, free: 28.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3245, allocations: 1.375 kB / 440.3 MB, free: 28.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001901/0.3264, allocations: 1.157 MB / 441.4 MB, free: 28.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.3264, allocations: 6.406 kB / 441.5 MB, free: 28.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.3264, allocations: 4.156 kB / 441.5 MB, free: 28.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000521/0.3269, allocations: 161.1 kB / 441.6 MB, free: 28.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.3283, allocations: 314.6 kB / 441.9 MB, free: 28.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003247/0.3315, allocations: 4.792 MB / 446.7 MB, free: 23.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009278/0.3325, allocations: 78.88 kB / 446.8 MB, free: 23.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.647e-05/0.3325, allocations: 37.98 kB / 446.8 MB, free: 23.75 MB / 318.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.0004731/0.333, allocations: 280.1 kB / 447.1 MB, free: 23.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.3333, allocations: 118 kB / 447.2 MB, free: 23.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.3353, allocations: 1.129 MB / 448.3 MB, free: 22.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.3353, allocations: 19.38 kB / 448.4 MB, free: 22.92 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.3353, allocations: 4.109 kB / 448.4 MB, free: 22.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.3354, allocations: 6.625 kB / 448.4 MB, free: 22.92 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 postOpt removeSimpleEquations (simulation): time 0.003543/0.3389, allocations: 2.673 MB / 451 MB, free: 21.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.3389, allocations: 0 / 451 MB, free: 21.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.34, allocations: 269.2 kB / 451.3 MB, free: 21.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004691/0.3405, allocations: 164.8 kB / 451.5 MB, free: 21.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.417e-05/0.3406, allocations: 17.5 kB / 451.5 MB, free: 21.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002937/0.3435, allocations: 4.782 MB / 456.3 MB, free: 16.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3435, allocations: 0 / 456.3 MB, free: 16.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.3453, allocations: 1.304 MB / 457.6 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003718/0.3457, allocations: 272.2 kB / 457.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.3459, allocations: 18.98 kB / 457.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006848/0.3465, allocations: 59.3 kB / 457.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.3467, allocations: 70.7 kB / 458 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.605e-05/0.3468, allocations: 35.55 kB / 458 MB, free: 15.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005229/0.3473, allocations: 489.9 kB / 458.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3473, allocations: 0 / 458.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001174/0.3485, allocations: 372.8 kB / 458.9 MB, free: 15.42 MB / 318.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.001889/0.3504, allocations: 1.95 MB / 460.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.3525, allocations: 1.322 MB / 462.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3525, allocations: 0 / 462.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000964/0.3534, allocations: 0.8613 MB / 463 MB, free: 12.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.3545, allocations: 150 kB / 463.1 MB, free: 12.64 MB / 318.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.009464/0.364, allocations: 8.698 MB / 471.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.3643, allocations: 1.067 MB / 472.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006814/0.365, allocations: 145.2 kB / 473.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004103/0.3654, allocations: 423.3 kB / 473.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3655, allocations: 0 / 473.5 MB, free: 2.527 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03996/0.4054, allocations: 21.03 MB / 494.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.4056, allocations: 214 kB / 494.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.624, allocations: 4 kB / 494.7 MB, free: 13.29 MB / 350.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","../files/PowerGrids_PowerGrids.Electrical.Test.LoadImpedancePQ.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches