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.001678/0.001678, 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.001853/0.001853, allocations: 193.7 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.522/1.522, allocations: 205.1 MB / 222.4 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06328/0.06328, allocations: 14.16 MB / 283.9 MB, free: 7.086 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.002382/0.002382, allocations: 72.47 kB / 347.3 MB, free: 17.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.109, allocations: 50.13 MB / 397.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003004/0.112, allocations: 1.806 MB / 399.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003602/0.1124, allocations: 151.5 kB / 399.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.368e-05/0.1125, allocations: 7.938 kB / 399.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.1127, allocations: 23.73 kB / 399.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.1128, allocations: 27.8 kB / 399.4 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.866e-05/0.1129, allocations: 35.95 kB / 399.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.1131, allocations: 135.6 kB / 399.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.1133, allocations: 49.33 kB / 399.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.802e-05/0.1134, allocations: 51.78 kB / 399.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.1135, allocations: 47.77 kB / 399.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.058e-05/0.1135, allocations: 15.94 kB / 399.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.255e-05/0.1135, allocations: 8 kB / 399.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.49e-05/0.1136, allocations: 19.92 kB / 399.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.213e-05/0.1136, allocations: 59.66 kB / 399.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.1138, allocations: 95.69 kB / 399.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1138, allocations: 4 kB / 399.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1138, allocations: 0 / 399.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1138, allocations: 0 / 399.9 MB, free: 12.48 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.0006124/0.1144, allocations: 423 kB / 400.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.1145, allocations: 15.97 kB / 400.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.165e-05/0.1145, allocations: 38.75 kB / 400.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.04e-05/0.1146, allocations: 12.75 kB / 400.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.1148, allocations: 220.6 kB / 400.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.1149, allocations: 12.31 kB / 400.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.1149, allocations: 8.375 kB / 400.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002378/0.1151, allocations: 127 kB / 400.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1152, allocations: 0 / 400.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.1152, allocations: 4 kB / 400.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1152, allocations: 4 kB / 400.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.1154, allocations: 63.89 kB / 400.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006288/0.116, allocations: 465.2 kB / 401.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.1164, allocations: 119.8 kB / 401.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.1166, allocations: 46.62 kB / 401.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.1166, allocations: 0 / 401.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.1166, allocations: 38.56 kB / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1166, allocations: 0 / 401.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003687/0.117, allocations: 125.8 kB / 401.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.1171, allocations: 106.8 kB / 401.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.1172, allocations: 150.4 kB / 401.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.1172, allocations: 25.7 kB / 401.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.222e-05/0.1173, allocations: 115.9 kB / 402 MB, free: 10.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.1174, allocations: 27.55 kB / 402 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.1174, allocations: 21.72 kB / 402 MB, free: 10.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1175, allocations: 326.8 kB / 402.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.897e-05/0.1176, allocations: 27.92 kB / 402.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.1177, allocations: 65.06 kB / 402.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.1179, allocations: 79.44 kB / 402.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1179, allocations: 3.938 kB / 402.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003477/0.1183, allocations: 134.3 kB / 402.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1183, allocations: 8 kB / 402.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1183, allocations: 0 / 402.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002088/0.1185, allocations: 40.92 kB / 402.7 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.994e-05/0.1186, allocations: 19.92 kB / 402.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/0.1197, allocations: 1.454 MB / 404.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.743e-05/0.1198, allocations: 15.98 kB / 404.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.1199, allocations: 0 / 404.2 MB, free: 7.727 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 9.209e-05/0.12, allocations: 121.9 kB / 404.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.778e-05/0.12, allocations: 11.91 kB / 404.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.12, allocations: 24.17 kB / 404.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.12, allocations: 0 / 404.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.12, allocations: 4 kB / 404.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1201, allocations: 0 / 404.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.1203, allocations: 213.5 kB / 404.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1203, allocations: 0 / 404.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.1204, allocations: 15.98 kB / 404.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.1204, allocations: 4 kB / 404.6 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.1204, allocations: 11.94 kB / 404.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1204, allocations: 0 / 404.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1204, allocations: 3.938 kB / 404.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.1208, allocations: 229.2 kB / 404.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.021e-05/0.1208, allocations: 84.95 kB / 404.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.1209, allocations: 7.938 kB / 404.9 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.121, allocations: 11.98 kB / 404.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.121, allocations: 3.984 kB / 404.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-06/0.1211, allocations: 4 kB / 404.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.377e-05/0.1211, allocations: 116 kB / 405.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1212, allocations: 0 / 405.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.1214, allocations: 23.91 kB / 405.1 MB, free: 6.75 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.0006115/0.1221, allocations: 0.7729 MB / 405.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004767/0.1225, allocations: 202.6 kB / 406 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1226, allocations: 3.938 kB / 406.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.942e-05/0.1227, allocations: 27.92 kB / 406.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.1231, allocations: 26.48 kB / 406.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.1252, allocations: 1.716 MB / 407.8 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.1255, allocations: 0.7086 MB / 408.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.018e-05/0.1255, allocations: 12.56 kB / 408.5 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.191e-05/0.1256, allocations: 31.42 kB / 408.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of SimCode: time 1.613e-06/0.1256, allocations: 0 / 408.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.1492, allocations: 2.736 MB / 411.3 MB, free: 352 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.106/9.255, allocations: 12 kB / 411.3 MB, free: 340 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 & 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