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.001758/0.001758, allocations: 103.5 kB / 16.45 MB, free: 6.449 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.002081/0.002081, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.511/1.511, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.08191/0.08191, allocations: 16.94 MB / 325.8 MB, free: 3.73 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.001997/0.001997, allocations: 63.91 kB / 457.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1172, allocations: 57.71 MB / 0.503 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003349/0.1206, allocations: 1.821 MB / 0.5048 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004225/0.121, allocations: 155.5 kB / 0.505 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.1211, allocations: 7.938 kB / 0.505 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.1212, allocations: 15.8 kB / 0.505 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.1214, allocations: 35.78 kB / 0.505 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.961e-05/0.1215, allocations: 31.95 kB / 0.5051 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002074/0.1217, allocations: 131.6 kB / 0.5052 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.1219, allocations: 37.33 kB / 0.5052 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.083e-05/0.122, allocations: 51.78 kB / 0.5053 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.1221, allocations: 51.75 kB / 0.5053 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.443e-05/0.1221, allocations: 8 kB / 0.5053 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.453e-05/0.1221, allocations: 12 kB / 0.5053 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.233e-05/0.1221, allocations: 23.92 kB / 0.5054 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.081e-05/0.1222, allocations: 59.61 kB / 0.5054 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.1224, allocations: 111.4 kB / 0.5055 GB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1224, allocations: 0 / 0.5055 GB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1224, allocations: 0 / 0.5055 GB, free: 5.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1224, allocations: 0 / 0.5055 GB, free: 5.879 MB / 382.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.000701/0.1231, allocations: 430.8 kB / 0.5059 GB, free: 5.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.1232, allocations: 8.031 kB / 0.5059 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.1232, allocations: 20.84 kB / 0.506 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.1235, allocations: 211.4 kB / 0.5062 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.1236, allocations: 8.375 kB / 0.5062 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.1236, allocations: 16.31 kB / 0.5062 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.1239, allocations: 123.1 kB / 0.5063 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.1239, allocations: 0 / 0.5063 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.1239, allocations: 7.984 kB / 0.5063 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1239, allocations: 4 kB / 0.5063 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.1241, allocations: 65.92 kB / 0.5064 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007266/0.1248, allocations: 453.2 kB / 0.5068 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004193/0.1252, allocations: 115.8 kB / 0.5069 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.1254, allocations: 42.69 kB / 0.507 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.1254, allocations: 8 kB / 0.507 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/0.1254, allocations: 38.5 kB / 0.507 GB, free: 4.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.1254, allocations: 0 / 0.507 GB, free: 4.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004219/0.1258, allocations: 125.5 kB / 0.5071 GB, free: 4.027 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/0.1259, allocations: 107.1 kB / 0.5072 GB, free: 3.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.1261, allocations: 154.4 kB / 0.5074 GB, free: 3.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.1261, allocations: 29.7 kB / 0.5074 GB, free: 3.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1262, allocations: 116 kB / 0.5075 GB, free: 3.582 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.1263, allocations: 23.73 kB / 0.5075 GB, free: 3.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.1263, allocations: 29.7 kB / 0.5076 GB, free: 3.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1265, allocations: 322.8 kB / 0.5079 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.2e-05/0.1266, allocations: 23.98 kB / 0.5079 GB, free: 3.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.1267, allocations: 61.08 kB / 0.508 GB, free: 3.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.1269, allocations: 87.38 kB / 0.508 GB, free: 3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1269, allocations: 0 / 0.508 GB, free: 3 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003875/0.1273, allocations: 130.3 kB / 0.5082 GB, free: 2.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1273, allocations: 8 kB / 0.5082 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1273, allocations: 320 / 0.5082 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002259/0.1275, allocations: 45.05 kB / 0.5082 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.1276, allocations: 15.98 kB / 0.5082 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001421/0.129, allocations: 1.461 MB / 0.5097 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.984e-05/0.1291, allocations: 11.98 kB / 0.5097 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.1292, allocations: 0 / 0.5097 GB, free: 1.172 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.0001255/0.1293, allocations: 125.8 kB / 0.5098 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.1293, allocations: 11.94 kB / 0.5098 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.1294, allocations: 20.31 kB / 0.5098 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1294, allocations: 0 / 0.5098 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1294, allocations: 4 kB / 0.5098 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1294, allocations: 0 / 0.5098 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002537/0.1296, allocations: 205.6 kB / 0.51 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1296, allocations: 0 / 0.51 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.1297, allocations: 19.98 kB / 0.51 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1297, allocations: 0 / 0.51 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1298, allocations: 11.88 kB / 0.51 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1298, allocations: 0 / 0.51 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1298, allocations: 4 kB / 0.51 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003899/0.1301, allocations: 229.1 kB / 0.5103 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/0.1302, allocations: 93.08 kB / 0.5104 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1302, allocations: 7.938 kB / 0.5104 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.1303, allocations: 4.062 kB / 0.5104 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.1304, allocations: 7.984 kB / 0.5104 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.1304, allocations: 15.88 kB / 0.5104 GB, free: 336 kB / 382.1 MB Notification: Performance of sorting global known variables: time 9.991e-05/0.1305, allocations: 118.1 kB / 0.5105 GB, free: 220 kB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1305, allocations: 0 / 0.5105 GB, free: 220 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.1308, allocations: 19.94 kB / 0.5105 GB, free: 200 kB / 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.0001145/0.1309, allocations: 99.25 kB / 0.5106 GB, free: 92 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2332/0.3641, allocations: 190.4 kB / 0.5108 GB, free: 16.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.3641, allocations: 0.6875 kB / 0.5108 GB, free: 16.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.3643, allocations: 31.59 kB / 0.5108 GB, free: 16.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004409/0.3647, allocations: 28.45 kB / 0.5109 GB, free: 16.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000641/0.3653, allocations: 249.2 kB / 0.5111 GB, free: 16.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.3655, allocations: 0.7034 MB / 0.5118 GB, free: 16.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.648e-05/0.3656, allocations: 12.05 kB / 0.5118 GB, free: 16.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.911e-05/0.3656, allocations: 16.06 kB / 0.5118 GB, free: 16.09 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3656, allocations: 0 / 0.5118 GB, free: 16.09 MB / 382.1 MB Notification: Performance of Templates: time 0.004633/0.3702, allocations: 1.289 MB / 0.5131 GB, free: 16.06 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: 4.992052617948502]