Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 116.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 212 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.619/1.619, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08244/0.08244, allocations: 16.95 MB / 326.5 MB, free: 8.59 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag") translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag") [Timeout 660] "Notification: PowerGrids requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 60.19 kB / 458.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1192, allocations: 57.71 MB / 0.5037 GB, free: 7.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003738/0.1229, allocations: 1.818 MB / 0.5055 GB, free: 5.355 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005085/0.1234, allocations: 151.5 kB / 0.5057 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.1236, allocations: 0 / 0.5057 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.1237, allocations: 27.73 kB / 0.5057 GB, free: 5.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.1239, allocations: 23.78 kB / 0.5057 GB, free: 5.156 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001209/0.124, allocations: 39.95 kB / 0.5057 GB, free: 5.117 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002357/0.1243, allocations: 127.6 kB / 0.5059 GB, free: 4.992 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1245, allocations: 45.31 kB / 0.5059 GB, free: 4.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.826e-05/0.1246, allocations: 51.78 kB / 0.506 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.1247, allocations: 55.69 kB / 0.506 GB, free: 4.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/0.1247, allocations: 8 kB / 0.506 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.044e-05/0.1247, allocations: 12 kB / 0.506 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.813e-05/0.1248, allocations: 27.86 kB / 0.5061 GB, free: 4.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.087e-05/0.1248, allocations: 47.67 kB / 0.5061 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.125, allocations: 103.5 kB / 0.5062 GB, free: 4.645 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.125, allocations: 8 kB / 0.5062 GB, free: 4.637 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.125, allocations: 0 / 0.5062 GB, free: 4.637 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.125, allocations: 0 / 0.5062 GB, free: 4.637 MB / 366.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.0007314/0.1258, allocations: 430.8 kB / 0.5066 GB, free: 4.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1258, allocations: 12.03 kB / 0.5066 GB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.063e-05/0.1259, allocations: 12.84 kB / 0.5066 GB, free: 4.141 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.1262, allocations: 220.7 kB / 0.5069 GB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.1262, allocations: 4.375 kB / 0.5069 GB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.1263, allocations: 8.375 kB / 0.5069 GB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.1266, allocations: 130.3 kB / 0.507 GB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1266, allocations: 0 / 0.507 GB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.1266, allocations: 4 kB / 0.507 GB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1266, allocations: 7.984 kB / 0.507 GB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.1268, allocations: 59.89 kB / 0.5071 GB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007839/0.1276, allocations: 453.2 kB / 0.5075 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004426/0.1281, allocations: 123.8 kB / 0.5076 GB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.1282, allocations: 42.62 kB / 0.5076 GB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.1282, allocations: 3.984 kB / 0.5077 GB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1282, allocations: 30.56 kB / 0.5077 GB, free: 2.918 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 3.316e-06/0.1282, allocations: 4 kB / 0.5077 GB, free: 2.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.000458/0.1287, allocations: 125.4 kB / 0.5078 GB, free: 2.785 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.1288, allocations: 102.8 kB / 0.5079 GB, free: 2.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.1289, allocations: 156.7 kB / 0.5081 GB, free: 2.496 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.129, allocations: 25.7 kB / 0.5081 GB, free: 2.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1291, allocations: 116 kB / 0.5082 GB, free: 2.348 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.1291, allocations: 39.97 kB / 0.5082 GB, free: 2.309 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-05/0.1291, allocations: 17.72 kB / 0.5082 GB, free: 2.285 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1293, allocations: 326.8 kB / 0.5086 GB, free: 1.957 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.1294, allocations: 23.98 kB / 0.5086 GB, free: 1.934 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1295, allocations: 69.06 kB / 0.5086 GB, free: 1.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1297, allocations: 75.58 kB / 0.5087 GB, free: 1.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1297, allocations: 256 / 0.5087 GB, free: 1.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004438/0.1302, allocations: 150.3 kB / 0.5089 GB, free: 1.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1302, allocations: 4 kB / 0.5089 GB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1302, allocations: 0 / 0.5089 GB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002387/0.1304, allocations: 32.83 kB / 0.5089 GB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.1306, allocations: 19.92 kB / 0.5089 GB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.1321, allocations: 1.458 MB / 0.5103 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.1322, allocations: 11.97 kB / 0.5103 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.1322, allocations: 8.062 kB / 0.5104 GB, free: 15.92 MB / 382.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.0001276/0.1323, allocations: 121.8 kB / 0.5105 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.683e-05/0.1324, allocations: 11.95 kB / 0.5105 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.242e-05/0.1324, allocations: 16.25 kB / 0.5105 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1324, allocations: 7.984 kB / 0.5105 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.1324, allocations: 0 / 0.5105 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1324, allocations: 0 / 0.5105 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.1327, allocations: 201.6 kB / 0.5107 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.1327, allocations: 7.984 kB / 0.5107 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.1328, allocations: 15.98 kB / 0.5107 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.1328, allocations: 7.938 kB / 0.5107 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.1328, allocations: 3.938 kB / 0.5107 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.1328, allocations: 3.938 kB / 0.5107 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.1329, allocations: 4 kB / 0.5107 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004057/0.1333, allocations: 237.1 kB / 0.511 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.1333, allocations: 85.09 kB / 0.511 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.1333, allocations: 4 kB / 0.511 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.1335, allocations: 11.98 kB / 0.5111 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.243e-05/0.1335, allocations: 8 kB / 0.5111 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.1335, allocations: 0 / 0.5111 GB, free: 15.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.1336, allocations: 121.4 kB / 0.5112 GB, free: 14.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1336, allocations: 0 / 0.5112 GB, free: 14.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002774/0.1339, allocations: 27.88 kB / 0.5112 GB, free: 14.95 MB / 382.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.0001403/0.134, allocations: 95.25 kB / 0.5113 GB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000559/0.1346, allocations: 198.5 kB / 0.5115 GB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1346, allocations: 192 / 0.5115 GB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.1347, allocations: 35.92 kB / 0.5115 GB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.1351, allocations: 36.55 kB / 0.5116 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006744/0.1358, allocations: 248.1 kB / 0.5118 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.1362, allocations: 0.7042 MB / 0.5125 GB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.79e-05/0.1362, allocations: 8.562 kB / 0.5125 GB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.1363, allocations: 19.42 kB / 0.5125 GB, free: 13.54 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1363, allocations: 0 / 0.5125 GB, free: 13.54 MB / 382.1 MB Notification: Performance of Templates: time 0.004774/0.141, allocations: 1.278 MB / 0.5138 GB, free: 12.27 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 50] diffSimulationResults("PowerGrids_dev_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_dev_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: 5.028951339016203]