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.001521/0.001521, allocations: 75.75 kB / 19.76 MB, free: 1.875 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.00153/0.00153, allocations: 157.8 kB / 23.01 MB, free: 4.605 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.442/1.442, allocations: 177.2 MB / 203.4 MB, free: 8.992 MB / 190.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.07815/0.07815, allocations: 12.53 MB / 272.3 MB, free: 4.57 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.00208/0.00208, allocations: 74.03 kB / 405.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1181, allocations: 57.69 MB / 463.4 MB, free: 4.031 MB / 430.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003081/0.1212, allocations: 1.776 MB / 465.1 MB, free: 2.242 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003786/0.1216, allocations: 143.5 kB / 465.3 MB, free: 2.102 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9e-05/0.1217, allocations: 7.938 kB / 465.3 MB, free: 2.094 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1218, allocations: 19.8 kB / 465.3 MB, free: 2.074 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.122, allocations: 31.77 kB / 465.3 MB, free: 2.043 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.839e-05/0.1221, allocations: 31.97 kB / 465.4 MB, free: 2.012 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.1223, allocations: 131.6 kB / 465.5 MB, free: 1.883 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.1224, allocations: 37.52 kB / 465.5 MB, free: 1.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.418e-05/0.1225, allocations: 55.78 kB / 465.6 MB, free: 1.785 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.1226, allocations: 43.77 kB / 465.6 MB, free: 1.742 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.1226, allocations: 8 kB / 465.6 MB, free: 1.734 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.387e-05/0.1226, allocations: 12 kB / 465.7 MB, free: 1.723 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.1227, allocations: 27.86 kB / 465.7 MB, free: 1.695 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.058e-05/0.1227, allocations: 39.73 kB / 465.7 MB, free: 1.656 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.1229, allocations: 111.5 kB / 465.8 MB, free: 1.547 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1229, allocations: 0 / 465.8 MB, free: 1.547 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1229, allocations: 0 / 465.8 MB, free: 1.547 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1229, allocations: 3.938 kB / 465.8 MB, free: 1.543 MB / 430.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.0006173/0.1235, allocations: 357.8 kB / 466.2 MB, free: 1.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.1235, allocations: 8.031 kB / 466.2 MB, free: 1.152 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.1236, allocations: 12.89 kB / 466.2 MB, free: 1.141 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.1239, allocations: 166.8 kB / 466.4 MB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1239, allocations: 4.375 kB / 466.4 MB, free: 0.9492 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.1239, allocations: 16.36 kB / 466.4 MB, free: 0.9336 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.1242, allocations: 131.2 kB / 466.5 MB, free: 0.793 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1242, allocations: 0 / 466.5 MB, free: 0.793 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.1242, allocations: 0 / 466.5 MB, free: 0.793 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1242, allocations: 4 kB / 466.5 MB, free: 0.7891 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.1244, allocations: 59.91 kB / 466.6 MB, free: 0.7305 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006118/0.125, allocations: 365.2 kB / 466.9 MB, free: 340 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003905/0.1254, allocations: 119.8 kB / 467.1 MB, free: 192 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.1255, allocations: 42.69 kB / 467.1 MB, free: 140 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.1255, allocations: 11.98 kB / 467.1 MB, free: 128 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.1256, allocations: 34.5 kB / 467.1 MB, free: 84 kB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.1256, allocations: 0 / 467.1 MB, free: 84 kB / 430.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004076/0.126, allocations: 121.5 kB / 467.3 MB, free: 15.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.075e-05/0.126, allocations: 103.1 kB / 467.4 MB, free: 15.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.1262, allocations: 157.2 kB / 467.5 MB, free: 15.67 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.1262, allocations: 33.7 kB / 467.5 MB, free: 15.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.154e-05/0.1263, allocations: 112 kB / 467.7 MB, free: 15.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.1263, allocations: 27.73 kB / 467.7 MB, free: 15.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.058e-05/0.1264, allocations: 25.72 kB / 467.7 MB, free: 15.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1266, allocations: 318.8 kB / 468 MB, free: 15.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.656e-05/0.1266, allocations: 27.92 kB / 468 MB, free: 15.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.1268, allocations: 116.5 kB / 468.2 MB, free: 14.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.127, allocations: 83.39 kB / 468.2 MB, free: 14.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.127, allocations: 0 / 468.2 MB, free: 14.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003823/0.1274, allocations: 130.3 kB / 468.4 MB, free: 14.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.1274, allocations: 8 kB / 468.4 MB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.1274, allocations: 4.094 kB / 468.4 MB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002064/0.1276, allocations: 40.77 kB / 468.4 MB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.1277, allocations: 15.98 kB / 468.4 MB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.129, allocations: 1.324 MB / 469.8 MB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.1291, allocations: 15.92 kB / 469.8 MB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.1291, allocations: 8.25 kB / 469.8 MB, free: 13.22 MB / 446.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.0001106/0.1293, allocations: 129.8 kB / 469.9 MB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.1293, allocations: 11.89 kB / 469.9 MB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.1293, allocations: 16.47 kB / 469.9 MB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1293, allocations: 0 / 469.9 MB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1293, allocations: 7.938 kB / 469.9 MB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1293, allocations: 0 / 469.9 MB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/0.1295, allocations: 141.3 kB / 470.1 MB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1295, allocations: 0 / 470.1 MB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.1297, allocations: 23.92 kB / 470.1 MB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.1297, allocations: 4 kB / 470.1 MB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.1297, allocations: 0 / 470.1 MB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.1297, allocations: 0 / 470.1 MB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1297, allocations: 0 / 470.1 MB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003865/0.1301, allocations: 237 kB / 470.3 MB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.1301, allocations: 11.98 kB / 470.4 MB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.1301, allocations: 3.984 kB / 470.4 MB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.1302, allocations: 8.062 kB / 470.4 MB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.1303, allocations: 15.86 kB / 470.4 MB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.1303, allocations: 8 kB / 470.4 MB, free: 12.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.683e-05/0.1304, allocations: 115.2 kB / 470.5 MB, free: 12.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1304, allocations: 0 / 470.5 MB, free: 12.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002687/0.1306, allocations: 23.89 kB / 470.5 MB, free: 12.41 MB / 446.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.0001221/0.1308, allocations: 95.78 kB / 470.6 MB, free: 12.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004818/0.1313, allocations: 194.8 kB / 470.8 MB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1313, allocations: 0 / 470.8 MB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.1314, allocations: 39.86 kB / 470.8 MB, free: 12.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.1317, allocations: 23.97 kB / 470.9 MB, free: 12.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000548/0.1322, allocations: 260.2 kB / 471.1 MB, free: 11.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.094e-05/0.1323, allocations: 93.44 kB / 471.2 MB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.9e-05/0.1324, allocations: 12.73 kB / 471.2 MB, free: 11.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.1324, allocations: 16.55 kB / 471.2 MB, free: 11.61 MB / 446.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1324, allocations: 0 / 471.2 MB, free: 11.61 MB / 446.1 MB Notification: Performance of Templates: time 0.004435/0.1369, allocations: 1.355 MB / 472.6 MB, free: 10.28 MB / 446.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=480 -s ida -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 480] 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.7630879789358005]