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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 207.6 MB / 229.8 MB, free: 11.42 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06808/0.06808, allocations: 14.41 MB / 296.1 MB, free: 8.641 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002438/0.002438, allocations: 71.89 kB / 417.5 MB, free: 38.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1068, allocations: 52.86 MB / 470.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003869/0.1106, allocations: 1.806 MB / 472.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000514/0.1112, allocations: 155.5 kB / 472.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.1113, allocations: 3.938 kB / 472.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1115, allocations: 19.8 kB / 472.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.1117, allocations: 31.78 kB / 472.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001366/0.1118, allocations: 39.95 kB / 472.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.1121, allocations: 131.6 kB / 472.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.1122, allocations: 41.27 kB / 472.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.721e-05/0.1123, allocations: 43.84 kB / 472.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.1125, allocations: 59.64 kB / 472.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.1125, allocations: 12 kB / 472.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.084e-05/0.1125, allocations: 8 kB / 472.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.635e-05/0.1125, allocations: 19.92 kB / 472.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.016e-05/0.1126, allocations: 59.66 kB / 472.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.1128, allocations: 111.5 kB / 472.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1128, allocations: 0 / 472.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1128, allocations: 0 / 472.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1128, allocations: 0 / 472.9 MB, free: 15.12 MB / 350.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.0007288/0.1136, allocations: 426.9 kB / 473.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.1136, allocations: 8.031 kB / 473.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.439e-05/0.1137, allocations: 42.73 kB / 473.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.234e-05/0.1137, allocations: 16.84 kB / 473.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.1142, allocations: 220.7 kB / 473.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.1142, allocations: 8.375 kB / 473.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.1142, allocations: 8.359 kB / 473.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003/0.1145, allocations: 131.8 kB / 473.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1145, allocations: 0 / 473.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1145, allocations: 8 kB / 473.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.1146, allocations: 4 kB / 473.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/0.1148, allocations: 51.97 kB / 473.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008717/0.1156, allocations: 453.3 kB / 474.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/0.1161, allocations: 123.8 kB / 474.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.1162, allocations: 46.56 kB / 474.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.1162, allocations: 4 kB / 474.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.1163, allocations: 34.55 kB / 474.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.1163, allocations: 0 / 474.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004531/0.1167, allocations: 125.4 kB / 474.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.1168, allocations: 111 kB / 474.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.117, allocations: 155 kB / 474.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.117, allocations: 25.7 kB / 474.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.683e-05/0.1171, allocations: 116 kB / 475 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.215e-05/0.1171, allocations: 31.73 kB / 475 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.872e-05/0.1172, allocations: 21.72 kB / 475 MB, free: 12.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1173, allocations: 322.8 kB / 475.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.918e-05/0.1174, allocations: 23.98 kB / 475.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.1175, allocations: 65.14 kB / 475.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.1177, allocations: 83.31 kB / 475.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1177, allocations: 0 / 475.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003917/0.1181, allocations: 142.3 kB / 475.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1181, allocations: 4 kB / 475.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1181, allocations: 0 / 475.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.1184, allocations: 36.92 kB / 475.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1185, allocations: 15.98 kB / 475.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.12, allocations: 1.458 MB / 477.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1201, allocations: 19.91 kB / 477.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.1201, allocations: 8 kB / 477.2 MB, free: 10.37 MB / 350.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.0001179/0.1202, allocations: 117.8 kB / 477.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.149e-05/0.1202, allocations: 11.95 kB / 477.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.714e-05/0.1203, allocations: 20.31 kB / 477.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.1203, allocations: 4 kB / 477.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1203, allocations: 3.984 kB / 477.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1203, allocations: 0 / 477.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/0.1206, allocations: 205.6 kB / 477.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1206, allocations: 0 / 477.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.1207, allocations: 19.97 kB / 477.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1207, allocations: 4 kB / 477.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.1207, allocations: 3.938 kB / 477.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1207, allocations: 0 / 477.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.1207, allocations: 8 kB / 477.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/0.1211, allocations: 233.1 kB / 477.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.1212, allocations: 85.09 kB / 477.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.1212, allocations: 3.938 kB / 477.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.1213, allocations: 16.23 kB / 477.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.1214, allocations: 4 kB / 477.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.1214, allocations: 3.938 kB / 477.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.1215, allocations: 123.4 kB / 478 MB, free: 9.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1215, allocations: 0 / 478 MB, free: 9.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002643/0.1217, allocations: 27.89 kB / 478 MB, free: 9.391 MB / 350.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.0006947/0.1224, allocations: 0.7647 MB / 478.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004949/0.1229, allocations: 194.8 kB / 479 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1229, allocations: 0 / 479 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.123, allocations: 35.91 kB / 479 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.1234, allocations: 25.8 kB / 479.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.1258, allocations: 1.732 MB / 480.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.1263, allocations: 0.7041 MB / 481.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.206e-05/0.1264, allocations: 20.58 kB / 481.5 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.226e-05/0.1264, allocations: 27.44 kB / 481.5 MB, free: 5.707 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.1264, allocations: 0 / 481.5 MB, free: 5.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.1572, allocations: 2.819 MB / 484.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.999/10.16, allocations: 11.19 kB / 484.4 MB, free: 2.906 MB / 350.1 MB " [Timeout remaining time 650] (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 --stepSize=0.02 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.77693259716034]