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.01038/0.01038, allocations: 99.67 kB / 15.73 MB, free: 6.059 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.002325/0.002325, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.614/1.614, allocations: 205.1 MB / 222.6 MB, free: 4.41 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06983/0.06983, allocations: 14.17 MB / 284.1 MB, free: 6.871 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.002228/0.002228, allocations: 75.78 kB / 398.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3205, allocations: 50.14 MB / 448.2 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003289/0.3238, allocations: 1.79 MB / 450 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004845/0.3244, allocations: 146.9 kB / 450.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.3245, allocations: 6.688 kB / 450.2 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001823/0.3247, allocations: 29.05 kB / 450.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.325, allocations: 26.53 kB / 450.2 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001044/0.3251, allocations: 41.45 kB / 450.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000218/0.3253, allocations: 133.1 kB / 450.4 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.3255, allocations: 57.91 kB / 450.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.392e-05/0.3256, allocations: 45.72 kB / 450.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.3257, allocations: 50.72 kB / 450.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.712e-05/0.3257, allocations: 9.625 kB / 450.6 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.62e-05/0.3258, allocations: 18.94 kB / 450.6 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.226e-05/0.3258, allocations: 22.66 kB / 450.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.148e-05/0.3259, allocations: 53.3 kB / 450.6 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.3261, allocations: 112.3 kB / 450.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3261, allocations: 0 / 450.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3261, allocations: 0 / 450.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.3261, allocations: 0 / 450.8 MB, free: 0.6445 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006383/0.3268, allocations: 429.8 kB / 451.2 MB, free: 224 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.3268, allocations: 13.62 kB / 451.2 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.3269, allocations: 37.5 kB / 451.2 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.212e-05/0.3269, allocations: 15.72 kB / 451.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.3274, allocations: 222.5 kB / 451.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.3274, allocations: 8.5 kB / 451.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/0.3275, allocations: 11.23 kB / 451.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003081/0.3278, allocations: 126.5 kB / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3278, allocations: 0 / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.199e-05/0.3278, allocations: 5.375 kB / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.3278, allocations: 2.75 kB / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.3281, allocations: 64.58 kB / 451.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008018/0.3289, allocations: 449.2 kB / 452.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004588/0.3293, allocations: 118.1 kB / 452.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.3295, allocations: 48.06 kB / 452.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.3295, allocations: 4.875 kB / 452.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.3296, allocations: 36.69 kB / 452.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.764e-06/0.3296, allocations: 0 / 452.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004552/0.33, allocations: 123.1 kB / 452.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.3301, allocations: 108.4 kB / 452.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.3303, allocations: 145.8 kB / 452.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.3303, allocations: 26.86 kB / 452.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.3305, allocations: 122.5 kB / 452.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.3305, allocations: 26.5 kB / 452.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/0.3306, allocations: 25.2 kB / 452.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3307, allocations: 321.1 kB / 453.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-05/0.3308, allocations: 24.64 kB / 453.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.331, allocations: 66.62 kB / 453.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.3312, allocations: 81.09 kB / 453.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3312, allocations: 5.406 kB / 453.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005014/0.3317, allocations: 139.3 kB / 453.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.3318, allocations: 6.156 kB / 453.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3318, allocations: 4.406 kB / 453.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002918/0.3321, allocations: 38.08 kB / 453.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3322, allocations: 14.2 kB / 453.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.334, allocations: 1.457 MB / 455 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.3342, allocations: 12.3 kB / 455 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.3342, allocations: 2.375 kB / 455 MB, free: 12.54 MB / 334.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 0.0001715/0.3344, allocations: 128.5 kB / 455.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.027e-05/0.3344, allocations: 9.047 kB / 455.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.675e-05/0.3345, allocations: 18.8 kB / 455.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3345, allocations: 2.156 kB / 455.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3345, allocations: 1.219 kB / 455.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3345, allocations: 0 / 455.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003279/0.3348, allocations: 205.9 kB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3349, allocations: 3.938 kB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.335, allocations: 17.27 kB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.335, allocations: 1.188 kB / 455.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.335, allocations: 13.06 kB / 455.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.335, allocations: 1.188 kB / 455.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.3351, allocations: 4.984 kB / 455.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004777/0.3355, allocations: 234.4 kB / 455.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.217e-05/0.3356, allocations: 88.34 kB / 455.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.3357, allocations: 13.05 kB / 455.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.3358, allocations: 3.219 kB / 455.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.3359, allocations: 7.266 kB / 455.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.3359, allocations: 2.188 kB / 455.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001331/0.336, allocations: 121.5 kB / 455.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.336, allocations: 0 / 455.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.3363, allocations: 28.17 kB / 455.9 MB, free: 11.71 MB / 334.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.000894/0.3372, allocations: 0.7678 MB / 456.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006179/0.3379, allocations: 201 kB / 456.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3379, allocations: 0 / 456.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.338, allocations: 30.98 kB / 456.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.3384, allocations: 30.72 kB / 456.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.3412, allocations: 1.732 MB / 458.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.3416, allocations: 0.7106 MB / 459.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.3418, allocations: 13.02 kB / 459.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.873e-05/0.3419, allocations: 32.86 kB / 459.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of SimCode: time 2.215e-06/0.3419, allocations: 0 / 459.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03375/0.3756, allocations: 2.8 MB / 462.2 MB, free: 6.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.04, allocations: 4.969 kB / 462.2 MB, free: 6.926 MB / 334.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 & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.csv","/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