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.001467/0.001467, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.001391/0.001391, allocations: 189.3 kB / 22.23 MB, free: 5.133 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.544/1.544, allocations: 207.6 MB / 233 MB, free: 10.04 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.0703/0.0703, allocations: 14.39 MB / 299.6 MB, free: 7.496 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: 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.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.00221/0.00221, allocations: 75.89 kB / 423.4 MB, free: 36.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09491, allocations: 52.89 MB / 476.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003261/0.09817, allocations: 1.814 MB / 478.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003991/0.09856, allocations: 159.5 kB / 478.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.355e-05/0.09866, allocations: 7.938 kB / 478.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.09879, allocations: 19.73 kB / 478.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.09895, allocations: 35.72 kB / 478.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001247/0.09908, allocations: 39.95 kB / 478.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.09927, allocations: 127.6 kB / 478.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.09941, allocations: 45.44 kB / 478.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.09953, allocations: 55.84 kB / 478.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.09964, allocations: 51.7 kB / 478.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.09966, allocations: 8 kB / 478.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.386e-05/0.09969, allocations: 12 kB / 478.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.95e-05/0.09973, allocations: 23.92 kB / 478.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.616e-05/0.09979, allocations: 55.61 kB / 478.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001791/0.09997, allocations: 103.6 kB / 478.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.09998, allocations: 0 / 478.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09998, allocations: 0 / 478.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.09998, allocations: 0 / 478.9 MB, free: 12.94 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.0006857/0.1007, allocations: 361.7 kB / 479.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1007, allocations: 8.031 kB / 479.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.74e-05/0.1008, allocations: 16.84 kB / 479.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.101, allocations: 154.9 kB / 479.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.1011, allocations: 4.375 kB / 479.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.1011, allocations: 12.38 kB / 479.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.1014, allocations: 128.2 kB / 479.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1014, allocations: 0 / 479.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.1014, allocations: 4 kB / 479.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1014, allocations: 0 / 479.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.1016, allocations: 67.89 kB / 479.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007534/0.1024, allocations: 420.3 kB / 480 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004395/0.1028, allocations: 127.8 kB / 480.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.1029, allocations: 42.62 kB / 480.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.103, allocations: 0 / 480.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.103, allocations: 30.56 kB / 480.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.103, allocations: 0 / 480.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004282/0.1034, allocations: 133.4 kB / 480.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.026e-05/0.1035, allocations: 102.8 kB / 480.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.1037, allocations: 150.4 kB / 480.6 MB, free: 11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.1037, allocations: 29.7 kB / 480.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1038, allocations: 116 kB / 480.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.1038, allocations: 27.75 kB / 480.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-05/0.1039, allocations: 29.95 kB / 480.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.104, allocations: 314.8 kB / 481.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.48e-05/0.1041, allocations: 27.97 kB / 481.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.1043, allocations: 65.08 kB / 481.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.1045, allocations: 79.69 kB / 481.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1045, allocations: 3.938 kB / 481.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004108/0.1049, allocations: 142.4 kB / 481.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1049, allocations: 7.938 kB / 481.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1049, allocations: 0 / 481.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/0.1051, allocations: 32.83 kB / 481.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1052, allocations: 19.92 kB / 481.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.1066, allocations: 1.354 MB / 482.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.1067, allocations: 11.92 kB / 482.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.1067, allocations: 4 kB / 482.8 MB, free: 8.559 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.0001188/0.1068, allocations: 125.9 kB / 483 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.723e-05/0.1069, allocations: 7.953 kB / 483 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.405e-05/0.1069, allocations: 24.33 kB / 483 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1069, allocations: 0 / 483 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.1069, allocations: 0 / 483 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1069, allocations: 4 kB / 483 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.1072, allocations: 176.7 kB / 483.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1072, allocations: 4 kB / 483.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.1073, allocations: 19.98 kB / 483.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1073, allocations: 0 / 483.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.1073, allocations: 8.125 kB / 483.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1073, allocations: 0 / 483.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1073, allocations: 7.938 kB / 483.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004653/0.1078, allocations: 237.2 kB / 483.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.1078, allocations: 7.984 kB / 483.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.1078, allocations: 11.92 kB / 483.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.1079, allocations: 0 / 483.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.108, allocations: 11.98 kB / 483.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.108, allocations: 4 kB / 483.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001297/0.1081, allocations: 119.9 kB / 483.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1081, allocations: 4.062 kB / 483.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000263/0.1084, allocations: 23.94 kB / 483.6 MB, free: 7.707 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 9.527e-05/0.1085, allocations: 95.19 kB / 483.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004938/0.109, allocations: 198.5 kB / 483.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.109, allocations: 0 / 483.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.1091, allocations: 32.17 kB / 483.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.1094, allocations: 43.39 kB / 484 MB, free: 7.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006267/0.11, allocations: 241 kB / 484.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.1104, allocations: 0.7081 MB / 484.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.46e-05/0.1105, allocations: 12.42 kB / 484.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.956e-05/0.1105, allocations: 15.44 kB / 484.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1105, allocations: 0 / 484.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of Templates: time 0.004456/0.115, allocations: 1.316 MB / 486.3 MB, free: 4.988 MB / 350.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/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: 4.828235476277769]