Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLag.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.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",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.00124/0.00124, 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.001334/0.001334, allocations: 190.9 kB / 16.25 MB, free: 6.629 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.422/1.422, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06054/0.06054, allocations: 14.15 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.001359/0.001359, allocations: 68.47 kB / 346.7 MB, free: 17.59 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08787/0.08924, allocations: 50.14 MB / 396.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002691/0.09197, allocations: 1.848 MB / 398.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003133/0.0923, allocations: 163.4 kB / 398.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.896e-05/0.09239, allocations: 4 kB / 398.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.09251, allocations: 11.86 kB / 398.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.09265, allocations: 27.84 kB / 398.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.215e-05/0.09273, allocations: 27.98 kB / 398.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.09288, allocations: 131.6 kB / 399.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.09301, allocations: 53.31 kB / 399.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.406e-05/0.09308, allocations: 55.73 kB / 399.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.334e-05/0.09316, allocations: 51.75 kB / 399.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.09319, allocations: 8 kB / 399.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.773e-05/0.09321, allocations: 12 kB / 399.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.353e-05/0.09324, allocations: 19.92 kB / 399.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.09329, allocations: 51.67 kB / 399.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.09342, allocations: 103.7 kB / 399.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.09343, allocations: 0 / 399.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09343, allocations: 4 kB / 399.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.09344, allocations: 0 / 399.4 MB, free: 12.84 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004952/0.09394, allocations: 426.9 kB / 399.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.09399, allocations: 8.031 kB / 399.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.522e-05/0.09403, allocations: 46.73 kB / 399.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.09407, allocations: 16.75 kB / 399.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.09427, allocations: 224.5 kB / 400.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.09429, allocations: 16.36 kB / 400.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.09432, allocations: 8.375 kB / 400.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.09455, allocations: 116.2 kB / 400.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.09456, allocations: 0 / 400.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.09459, allocations: 4 kB / 400.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.0946, allocations: 4 kB / 400.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.09478, allocations: 63.91 kB / 400.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00054/0.09533, allocations: 445.2 kB / 400.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.09569, allocations: 119.8 kB / 400.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.0958, allocations: 42.69 kB / 400.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.09583, allocations: 8 kB / 400.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.09586, allocations: 42.48 kB / 401 MB, free: 11.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.09586, allocations: 0 / 401 MB, free: 11.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003486/0.09621, allocations: 121.6 kB / 401.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.09627, allocations: 107.1 kB / 401.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.09638, allocations: 150.4 kB / 401.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.09641, allocations: 25.7 kB / 401.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.09647, allocations: 119.9 kB / 401.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.0965, allocations: 27.55 kB / 401.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.09655, allocations: 25.7 kB / 401.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.09664, allocations: 322.8 kB / 401.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.748e-05/0.09674, allocations: 27.92 kB / 401.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.09684, allocations: 57.14 kB / 401.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.09702, allocations: 87.62 kB / 402 MB, free: 9.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.09703, allocations: 4 kB / 402 MB, free: 9.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003356/0.09737, allocations: 130.3 kB / 402.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.0974, allocations: 8 kB / 402.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.0974, allocations: 3.938 kB / 402.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/0.09759, allocations: 40.92 kB / 402.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.78e-05/0.0977, allocations: 15.98 kB / 402.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.09873, allocations: 1.461 MB / 403.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.579e-05/0.09884, allocations: 4.188 kB / 403.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.09886, allocations: 7.984 kB / 403.7 MB, free: 8.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.389e-05/0.09895, allocations: 130.6 kB / 403.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.09899, allocations: 11.84 kB / 403.8 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.09902, allocations: 16.25 kB / 403.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.09903, allocations: 4 kB / 403.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.09903, allocations: 0 / 403.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.09904, allocations: 3.984 kB / 403.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.09924, allocations: 205.5 kB / 404.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.09925, allocations: 0 / 404.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.09937, allocations: 23.92 kB / 404.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.09939, allocations: 8 kB / 404.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.09941, allocations: 7.922 kB / 404.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.09941, allocations: 0 / 404.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.09942, allocations: 4 kB / 404.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.09973, allocations: 229.2 kB / 404.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.327e-05/0.09978, allocations: 101 kB / 404.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.09981, allocations: 3.938 kB / 404.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.09992, allocations: 4 kB / 404.4 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.09996, allocations: 11.92 kB / 404.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.09997, allocations: 0 / 404.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.408e-05/0.1001, allocations: 123.2 kB / 404.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1001, allocations: 0 / 404.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.1003, allocations: 19.91 kB / 404.6 MB, free: 7.098 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.y) * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005446/0.1009, allocations: 0.7687 MB / 405.4 MB, free: 6.293 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004138/0.1013, allocations: 198.7 kB / 405.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1013, allocations: 0 / 405.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.933e-05/0.1014, allocations: 35.97 kB / 405.6 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.1017, allocations: 20.06 kB / 405.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.1036, allocations: 1.764 MB / 407.4 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.1038, allocations: 0.7042 MB / 408.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.361e-05/0.1039, allocations: 12.55 kB / 408.1 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.211e-05/0.104, allocations: 35.38 kB / 408.1 MB, free: 3.379 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.104, allocations: 3.938 kB / 408.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01366/0.1176, allocations: 2.608 MB / 410.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/0.1178, allocations: 206.2 kB / 410.9 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/1.942, allocations: 0 / 410.9 MB, free: 0.5625 MB / 302.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches