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.001136/0.001136, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00118/0.00118, allocations: 193.5 kB / 16.14 MB, free: 6.656 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.171/1.171, allocations: 205.1 MB / 222 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05585/0.05585, allocations: 14.16 MB / 283.5 MB, free: 7.285 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.00125/0.00125, allocations: 67.89 kB / 344.5 MB, free: 19.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0649/0.06616, allocations: 50.14 MB / 394.6 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.LoadImpedancePQ): time 0.008251/0.07445, allocations: 10.26 MB / 404.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005724/0.0802, allocations: 4.449 MB / 409.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005725/0.0808, allocations: 31.88 kB / 409.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009042/0.08174, allocations: 465.9 kB / 409.8 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003319/0.08507, allocations: 1.816 MB / 411.6 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006143/0.08569, allocations: 354.4 kB / 412 MB, free: 156 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002485/0.08819, allocations: 2.879 MB / 414.9 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002454/0.08845, allocations: 175.7 kB / 415 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006998/0.08915, allocations: 0.754 MB / 415.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006349/0.0898, allocations: 0.7854 MB / 416.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.651e-05/0.08989, allocations: 44 kB / 416.6 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006716/0.09057, allocations: 343.8 kB / 417 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.09072, allocations: 174.9 kB / 417.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005407/0.09127, allocations: 0.7225 MB / 417.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.09268, allocations: 1.834 MB / 419.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.09269, allocations: 3.984 kB / 419.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.0927, allocations: 0 / 419.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.09271, allocations: 0 / 419.7 MB, free: 8.41 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.006891/0.09961, allocations: 2.471 MB / 422.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.09965, allocations: 12.02 kB / 422.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001646/0.09982, allocations: 160.9 kB / 422.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007384/0.1006, allocations: 223 kB / 422.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.1018, allocations: 0.9127 MB / 423.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.223e-05/0.1019, allocations: 74.12 kB / 423.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.102, allocations: 104 kB / 423.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.1035, allocations: 1.069 MB / 424.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1035, allocations: 0 / 424.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.979e-05/0.1036, allocations: 48 kB / 424.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.1037, allocations: 24 kB / 424.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.1052, allocations: 1.031 MB / 425.8 MB, free: 2.117 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.1256/0.2308, allocations: 6.23 MB / 432 MB, free: 33.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/0.233, allocations: 1.471 MB / 433.5 MB, free: 32.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/0.2335, allocations: 411.6 kB / 433.9 MB, free: 32.81 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.043e-05/0.2336, allocations: 21.55 kB / 433.9 MB, free: 32.81 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2337, allocations: 52.31 kB / 434 MB, free: 32.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 2.845e-06/0.2337, allocations: 0 / 434 MB, free: 32.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.00289/0.2366, allocations: 1.685 MB / 435.7 MB, free: 31.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.2366, allocations: 119.8 kB / 435.8 MB, free: 31.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007029/0.2373, allocations: 0.6994 MB / 436.5 MB, free: 31.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.2374, allocations: 48.7 kB / 436.5 MB, free: 31.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.2376, allocations: 495.7 kB / 437 MB, free: 31.13 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.2378, allocations: 408.5 kB / 437.4 MB, free: 30.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.2381, allocations: 188.2 kB / 437.6 MB, free: 30.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.2381, allocations: 343.7 kB / 437.9 MB, free: 30.4 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004743/0.2386, allocations: 320 kB / 438.2 MB, free: 30.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005441/0.2392, allocations: 490.1 kB / 438.7 MB, free: 30 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.2402, allocations: 0.8574 MB / 439.6 MB, free: 29.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2402, allocations: 1.344 kB / 439.6 MB, free: 29.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001705/0.2419, allocations: 1.161 MB / 440.7 MB, free: 28.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.242, allocations: 6.781 kB / 440.7 MB, free: 28.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.242, allocations: 3.75 kB / 440.8 MB, free: 28.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005081/0.2425, allocations: 160.2 kB / 440.9 MB, free: 28.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.2437, allocations: 309.1 kB / 441.2 MB, free: 28.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002837/0.2465, allocations: 4.436 MB / 445.6 MB, free: 24.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007508/0.2473, allocations: 83.84 kB / 445.7 MB, free: 24.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/0.2474, allocations: 41.2 kB / 445.8 MB, free: 24.64 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.0003394/0.2477, allocations: 280.6 kB / 446 MB, free: 24.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.2479, allocations: 117.2 kB / 446.2 MB, free: 24.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/0.2497, allocations: 1.134 MB / 447.3 MB, free: 23.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.2497, allocations: 11.34 kB / 447.3 MB, free: 23.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2497, allocations: 3.344 kB / 447.3 MB, free: 23.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.2497, allocations: 7.25 kB / 447.3 MB, free: 23.82 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.003081/0.2528, allocations: 2.678 MB / 450 MB, free: 22.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2528, allocations: 1.875 kB / 450 MB, free: 22.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009862/0.2538, allocations: 270.3 kB / 450.3 MB, free: 22.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004184/0.2542, allocations: 150.5 kB / 450.4 MB, free: 22.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/0.2543, allocations: 22.53 kB / 450.4 MB, free: 22.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002521/0.2568, allocations: 4.436 MB / 454.9 MB, free: 17.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2568, allocations: 7.156 kB / 454.9 MB, free: 17.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.2584, allocations: 1.3 MB / 456.2 MB, free: 17.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.2587, allocations: 274.3 kB / 456.4 MB, free: 16.96 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.2588, allocations: 21.34 kB / 456.5 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006182/0.2595, allocations: 62.36 kB / 456.5 MB, free: 16.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.2596, allocations: 73.23 kB / 456.6 MB, free: 16.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.2597, allocations: 27 kB / 456.6 MB, free: 16.89 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004511/0.2601, allocations: 491.1 kB / 457.1 MB, free: 16.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2601, allocations: 0 / 457.1 MB, free: 16.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009074/0.261, allocations: 367.7 kB / 457.5 MB, free: 16.64 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.001654/0.2627, allocations: 1.939 MB / 459.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.2642, allocations: 1.282 MB / 460.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2643, allocations: 3.062 kB / 460.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008649/0.2651, allocations: 0.8681 MB / 461.5 MB, free: 14.05 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008162/0.266, allocations: 139.5 kB / 461.7 MB, free: 13.96 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.008662/0.2746, allocations: 8.7 MB / 470.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.275, allocations: 1.075 MB / 471.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006021/0.2756, allocations: 146.6 kB / 471.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003758/0.276, allocations: 415.3 kB / 472 MB, free: 4.078 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.276, allocations: 0 / 472 MB, free: 4.078 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0288/0.3048, allocations: 20.43 MB / 492.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.305, allocations: 210.5 kB / 492.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.213, allocations: 0 / 492.6 MB, free: 15.44 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