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.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.00136/0.00136, allocations: 79.73 kB / 19.76 MB, free: 1.871 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: 155.6 kB / 23 MB, free: 4.602 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.563/1.563, allocations: 158.6 MB / 184.8 MB, free: 6.168 MB / 174.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.0632/0.0632, allocations: 10.64 MB / 247.7 MB, free: 8.484 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.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_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_PowerGrids.Controls.Test.TestLeadLag") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002413/0.002413, allocations: 75.17 kB / 371.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1122, allocations: 52.88 MB / 424.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003929/0.1162, allocations: 1.751 MB / 426 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004682/0.1166, allocations: 151.5 kB / 426.1 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.1168, allocations: 11.88 kB / 426.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.1169, allocations: 19.8 kB / 426.2 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.1171, allocations: 27.78 kB / 426.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001204/0.1172, allocations: 39.89 kB / 426.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.1174, allocations: 131.7 kB / 426.4 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.1176, allocations: 41.5 kB / 426.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.549e-05/0.1176, allocations: 51.78 kB / 426.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.1177, allocations: 47.7 kB / 426.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.1178, allocations: 12 kB / 426.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.423e-05/0.1178, allocations: 8 kB / 426.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.918e-05/0.1178, allocations: 23.92 kB / 426.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.434e-05/0.1179, allocations: 39.73 kB / 426.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.1181, allocations: 111.4 kB / 426.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1181, allocations: 0 / 426.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1181, allocations: 0 / 426.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1181, allocations: 4 kB / 426.7 MB, free: 2.914 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.0006836/0.1188, allocations: 353.8 kB / 427 MB, free: 2.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1188, allocations: 8.031 kB / 427.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.363e-05/0.1189, allocations: 16.84 kB / 427.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.1192, allocations: 166.8 kB / 427.2 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1192, allocations: 4.375 kB / 427.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.1192, allocations: 8.375 kB / 427.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.1195, allocations: 128.3 kB / 427.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1195, allocations: 3.938 kB / 427.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.1196, allocations: 4 kB / 427.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1196, allocations: 0 / 427.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.1198, allocations: 59.95 kB / 427.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000668/0.1204, allocations: 365.2 kB / 427.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004038/0.1208, allocations: 123.8 kB / 427.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.1209, allocations: 50.56 kB / 428 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.121, allocations: 0 / 428 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.121, allocations: 34.56 kB / 428 MB, free: 1.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.121, allocations: 3.938 kB / 428 MB, free: 1.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004054/0.1214, allocations: 121.5 kB / 428.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/0.1215, allocations: 115 kB / 428.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.1217, allocations: 154.4 kB / 428.4 MB, free: 1.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.1217, allocations: 29.7 kB / 428.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.399e-05/0.1218, allocations: 116 kB / 428.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.1218, allocations: 23.75 kB / 428.6 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.1218, allocations: 25.7 kB / 428.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.122, allocations: 322.8 kB / 428.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.898e-05/0.1221, allocations: 19.98 kB / 428.9 MB, free: 484 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.1222, allocations: 120.5 kB / 429 MB, free: 332 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.1224, allocations: 79.62 kB / 429.1 MB, free: 240 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1224, allocations: 4 kB / 429.1 MB, free: 236 kB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003835/0.1228, allocations: 142.3 kB / 429.2 MB, free: 84 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1228, allocations: 4 kB / 429.3 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.1228, allocations: 12.08 kB / 429.3 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002175/0.123, allocations: 32.83 kB / 429.3 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.1232, allocations: 15.98 kB / 429.3 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.1245, allocations: 1.323 MB / 430.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.1246, allocations: 15.98 kB / 430.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.1246, allocations: 8 kB / 430.7 MB, free: 14.56 MB / 366.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.0001147/0.1247, allocations: 121.8 kB / 430.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.1247, allocations: 7.953 kB / 430.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/0.1248, allocations: 20.45 kB / 430.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1248, allocations: 0 / 430.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.1248, allocations: 3.938 kB / 430.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1248, allocations: 4 kB / 430.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.125, allocations: 141.3 kB / 431 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.125, allocations: 4 kB / 431 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.1251, allocations: 19.98 kB / 431 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1251, allocations: 0 / 431 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1251, allocations: 4 kB / 431 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1251, allocations: 0 / 431 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1251, allocations: 0 / 431 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.1255, allocations: 237 kB / 431.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.1255, allocations: 11.98 kB / 431.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.1256, allocations: 8.062 kB / 431.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.1257, allocations: 11.98 kB / 431.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.1257, allocations: 15.92 kB / 431.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.1257, allocations: 0 / 431.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.609e-05/0.1258, allocations: 111.3 kB / 431.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1258, allocations: 0 / 431.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002703/0.1261, allocations: 27.89 kB / 431.4 MB, free: 13.77 MB / 366.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.0001014/0.1262, allocations: 99.23 kB / 431.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004942/0.1267, allocations: 190.6 kB / 431.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1267, allocations: 0 / 431.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.1268, allocations: 32.11 kB / 431.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.1271, allocations: 27.92 kB / 431.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000576/0.1277, allocations: 256.8 kB / 432 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.25e-05/0.1278, allocations: 93.61 kB / 432.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.755e-05/0.1279, allocations: 16.47 kB / 432.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.1279, allocations: 12.5 kB / 432.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1279, allocations: 0 / 432.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of Templates: time 0.004819/0.1327, allocations: 1.358 MB / 433.5 MB, free: 11.64 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (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 & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_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_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.029334889026359]