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.001808/0.001808, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002217/0.002216, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.294/1.294, allocations: 205.1 MB / 222.4 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06217/0.06217, allocations: 14.17 MB / 283.9 MB, free: 7.074 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.001505/0.001505, allocations: 74.55 kB / 347.3 MB, free: 17.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07079/0.07231, allocations: 50.13 MB / 397.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002856/0.0752, allocations: 1.81 MB / 399.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003443/0.07556, allocations: 147.5 kB / 399.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.232e-05/0.07565, allocations: 0 / 399.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.07578, allocations: 23.73 kB / 399.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.07592, allocations: 35.77 kB / 399.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.502e-05/0.07602, allocations: 35.97 kB / 399.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.07618, allocations: 127.6 kB / 399.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.07632, allocations: 53.33 kB / 399.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.751e-05/0.07639, allocations: 47.78 kB / 399.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.363e-05/0.07649, allocations: 55.75 kB / 399.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.07652, allocations: 11.94 kB / 399.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.304e-05/0.07655, allocations: 12 kB / 399.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.005e-05/0.07659, allocations: 23.86 kB / 399.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.576e-05/0.07665, allocations: 51.67 kB / 399.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.07678, allocations: 103.7 kB / 399.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.07679, allocations: 0 / 399.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.0768, allocations: 0 / 399.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.0768, allocations: 0 / 399.9 MB, free: 12.47 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.0005626/0.07737, allocations: 423 kB / 400.3 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.07742, allocations: 8.031 kB / 400.3 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.07746, allocations: 42.73 kB / 400.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.958e-05/0.07751, allocations: 16.75 kB / 400.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.07773, allocations: 224.5 kB / 400.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.07775, allocations: 4.375 kB / 400.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.07779, allocations: 12.38 kB / 400.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.07803, allocations: 123 kB / 400.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.07805, allocations: 0 / 400.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.07807, allocations: 11.98 kB / 400.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.07808, allocations: 0 / 400.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.07829, allocations: 59.97 kB / 400.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006078/0.07891, allocations: 461.2 kB / 401.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.0793, allocations: 119.8 kB / 401.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.07943, allocations: 46.62 kB / 401.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.07946, allocations: 0 / 401.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.07949, allocations: 30.56 kB / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.07949, allocations: 4 kB / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003998/0.0799, allocations: 129.7 kB / 401.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.07996, allocations: 106.8 kB / 401.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.0801, allocations: 154.4 kB / 401.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.08012, allocations: 29.7 kB / 401.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.522e-05/0.0802, allocations: 111.9 kB / 402 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.08023, allocations: 27.56 kB / 402 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.08028, allocations: 25.7 kB / 402.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.08039, allocations: 318.8 kB / 402.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.903e-05/0.08049, allocations: 27.98 kB / 402.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.08062, allocations: 61.14 kB / 402.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.08083, allocations: 79.56 kB / 402.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.08084, allocations: 0 / 402.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003821/0.08123, allocations: 146.2 kB / 402.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.08125, allocations: 4 kB / 402.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.08126, allocations: 0 / 402.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001969/0.08146, allocations: 44.91 kB / 402.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.08159, allocations: 11.98 kB / 402.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009505/0.08255, allocations: 1.461 MB / 404.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.57e-05/0.08264, allocations: 4.031 kB / 404.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.08266, allocations: 8 kB / 404.2 MB, free: 7.719 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.309e-05/0.08275, allocations: 129.8 kB / 404.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.197e-05/0.08279, allocations: 11.84 kB / 404.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.08282, allocations: 20.25 kB / 404.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.08282, allocations: 0 / 404.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.08283, allocations: 320 / 404.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.08283, allocations: 0 / 404.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.08302, allocations: 213.5 kB / 404.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.08303, allocations: 4 kB / 404.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.08314, allocations: 15.98 kB / 404.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.08315, allocations: 4 kB / 404.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.08317, allocations: 3.938 kB / 404.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.08317, allocations: 7.984 kB / 404.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.08318, allocations: 0 / 404.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002982/0.08348, allocations: 229.2 kB / 404.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.08353, allocations: 96.95 kB / 404.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.08356, allocations: 3.938 kB / 404.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.896e-05/0.08366, allocations: 8 kB / 404.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.0837, allocations: 7.984 kB / 404.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.08371, allocations: 4 kB / 404.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.896e-05/0.08378, allocations: 119.9 kB / 405.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08379, allocations: 0 / 405.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000234/0.08403, allocations: 27.97 kB / 405.1 MB, free: 6.727 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.0005029/0.08453, allocations: 0.7647 MB / 405.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003726/0.08492, allocations: 194.6 kB / 406 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.08493, allocations: 0 / 406 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.28e-05/0.08503, allocations: 31.92 kB / 406.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.08534, allocations: 34.56 kB / 406.1 MB, free: 5.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.0871, allocations: 1.72 MB / 407.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.08732, allocations: 0.7008 MB / 408.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.456e-05/0.08738, allocations: 8.812 kB / 408.5 MB, free: 3.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.358e-05/0.08744, allocations: 35.42 kB / 408.6 MB, free: 3.062 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.08744, allocations: 3.938 kB / 408.6 MB, free: 3.059 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.87/1.957, allocations: 2.737 MB / 411.3 MB, free: 336 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/12.54, allocations: 11.81 kB / 411.3 MB, free: 328 kB / 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches