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.001655/0.001655, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.0021/0.0021, allocations: 217 kB / 23.04 MB, free: 5.074 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.969 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.08359/0.08359, allocations: 16.96 MB / 330.2 MB, free: 2.562 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.002165/0.002165, allocations: 67.88 kB / 463.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1129, allocations: 57.75 MB / 0.5092 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003185/0.1161, allocations: 1.832 MB / 0.511 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003815/0.1165, allocations: 147.5 kB / 0.5111 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.982e-05/0.1166, allocations: 7.938 kB / 0.5111 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1167, allocations: 15.8 kB / 0.5111 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.1169, allocations: 35.78 kB / 0.5112 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001251/0.117, allocations: 43.83 kB / 0.5112 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.1172, allocations: 127.7 kB / 0.5113 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.1173, allocations: 37.52 kB / 0.5114 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.509e-05/0.1174, allocations: 51.78 kB / 0.5114 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.1175, allocations: 55.69 kB / 0.5115 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.1176, allocations: 8 kB / 0.5115 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.917e-05/0.1176, allocations: 12 kB / 0.5115 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.961e-05/0.1176, allocations: 23.92 kB / 0.5115 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.702e-05/0.1177, allocations: 47.67 kB / 0.5115 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.1178, allocations: 115.4 kB / 0.5117 GB, free: 3.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1178, allocations: 0 / 0.5117 GB, free: 3.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1178, allocations: 4 kB / 0.5117 GB, free: 3.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.1179, allocations: 0 / 0.5117 GB, free: 3.164 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.0006003/0.1185, allocations: 349.8 kB / 0.512 GB, free: 2.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1185, allocations: 12.03 kB / 0.512 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.763e-05/0.1185, allocations: 12.84 kB / 0.512 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.1188, allocations: 162.8 kB / 0.5122 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.1189, allocations: 8.375 kB / 0.5122 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.1189, allocations: 8.375 kB / 0.5122 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.1192, allocations: 120.3 kB / 0.5123 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1192, allocations: 0 / 0.5123 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.1192, allocations: 0 / 0.5123 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1192, allocations: 4 kB / 0.5123 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002075/0.1194, allocations: 67.89 kB / 0.5124 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006948/0.1201, allocations: 412.3 kB / 0.5128 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004088/0.1205, allocations: 119.9 kB / 0.5129 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.1206, allocations: 50.55 kB / 0.5129 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.1206, allocations: 7.938 kB / 0.5129 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.1207, allocations: 34.56 kB / 0.513 GB, free: 1.652 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.1207, allocations: 0 / 0.513 GB, free: 1.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004289/0.1211, allocations: 129.4 kB / 0.5131 GB, free: 1.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.1212, allocations: 102.8 kB / 0.5132 GB, free: 1.395 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.1214, allocations: 160.7 kB / 0.5133 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.1214, allocations: 33.64 kB / 0.5134 GB, free: 1.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.505e-05/0.1215, allocations: 120 kB / 0.5135 GB, free: 1.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.1215, allocations: 27.75 kB / 0.5135 GB, free: 1.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.291e-05/0.1216, allocations: 21.7 kB / 0.5135 GB, free: 1.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1217, allocations: 322.8 kB / 0.5138 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-05/0.1218, allocations: 19.98 kB / 0.5139 GB, free: 0.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.1219, allocations: 65.14 kB / 0.5139 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.1221, allocations: 79.34 kB / 0.514 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1221, allocations: 4.031 kB / 0.514 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003944/0.1225, allocations: 142.5 kB / 0.5141 GB, free: 352 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.1226, allocations: 8 kB / 0.5141 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1226, allocations: 0 / 0.5141 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/0.1228, allocations: 36.92 kB / 0.5142 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.1229, allocations: 15.98 kB / 0.5142 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2248/0.3478, allocations: 1.339 MB / 0.5155 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.3479, allocations: 14.86 kB / 0.5155 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.3479, allocations: 6.781 kB / 0.5155 GB, free: 14.79 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.0001092/0.348, allocations: 125.5 kB / 0.5156 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.266e-05/0.3481, allocations: 10.05 kB / 0.5157 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.3481, allocations: 17.39 kB / 0.5157 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3481, allocations: 1.531 kB / 0.5157 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.3481, allocations: 2.656 kB / 0.5157 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.3481, allocations: 1.25 kB / 0.5157 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.3484, allocations: 184.1 kB / 0.5159 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3484, allocations: 0 / 0.5159 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.3485, allocations: 17.73 kB / 0.5159 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3485, allocations: 1.312 kB / 0.5159 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.3485, allocations: 4.219 kB / 0.5159 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.3485, allocations: 0.7188 kB / 0.5159 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3485, allocations: 2.625 kB / 0.5159 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003365/0.3488, allocations: 244.5 kB / 0.5161 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.389e-05/0.3489, allocations: 13.75 kB / 0.5161 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.3489, allocations: 2.531 kB / 0.5161 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.349, allocations: 9.922 kB / 0.5161 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.349, allocations: 14.39 kB / 0.5161 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.349, allocations: 5.344 kB / 0.5162 GB, free: 14.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.762e-05/0.3491, allocations: 121.5 kB / 0.5163 GB, free: 14.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3491, allocations: 0.5312 kB / 0.5163 GB, free: 14.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.3494, allocations: 26.19 kB / 0.5163 GB, free: 14.3 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 8.704e-05/0.3495, allocations: 96.19 kB / 0.5164 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004786/0.35, allocations: 195.8 kB / 0.5166 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.35, allocations: 2.062 kB / 0.5166 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3501, allocations: 33.33 kB / 0.5166 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.3504, allocations: 26.66 kB / 0.5166 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005574/0.351, allocations: 249.3 kB / 0.5169 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.3511, allocations: 0.7067 MB / 0.5176 GB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.934e-05/0.3512, allocations: 14.75 kB / 0.5176 GB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.87e-05/0.3512, allocations: 17.58 kB / 0.5176 GB, free: 13.23 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3512, allocations: 0.8125 kB / 0.5176 GB, free: 13.23 MB / 382.1 MB Notification: Performance of Templates: time 0.004392/0.3556, allocations: 1.298 MB / 0.5189 GB, free: 13.18 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.080319685977884]