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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) 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=1000,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=1000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 91.69 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01043/0.01043, allocations: 171.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0614/0.0614, allocations: 14.16 MB / 284.9 MB, free: 7.035 MB / 238.1 MB 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.0005183/0.0005182, allocations: 15.94 kB / 348.8 MB, free: 17.47 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09755, allocations: 51.12 MB / 399.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002372/0.09998, allocations: 1.511 MB / 401.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003958/0.1004, allocations: 147.5 kB / 401.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1005, allocations: 4 kB / 401.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.1007, allocations: 15.86 kB / 401.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.1009, allocations: 19.86 kB / 401.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.142e-05/0.101, allocations: 31.91 kB / 401.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001611/0.1011, allocations: 127.7 kB / 401.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.1013, allocations: 49.27 kB / 401.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.719e-05/0.1014, allocations: 39.73 kB / 401.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.454e-05/0.1015, allocations: 35.77 kB / 401.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.041e-05/0.1015, allocations: 4 kB / 401.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.524e-05/0.1016, allocations: 4 kB / 401.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.35e-05/0.1016, allocations: 11.94 kB / 401.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.349e-05/0.1017, allocations: 81.3 kB / 402 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.1018, allocations: 99.59 kB / 402.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1018, allocations: 0 / 402.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1018, allocations: 0 / 402.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1018, allocations: 0 / 402.1 MB, free: 12.12 MB / 302.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.0005824/0.1024, allocations: 399.1 kB / 402.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1025, allocations: 12.03 kB / 402.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.1025, allocations: 16.75 kB / 402.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.1028, allocations: 216.5 kB / 402.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.1028, allocations: 4.375 kB / 402.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.609e-05/0.1029, allocations: 12.38 kB / 402.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.1031, allocations: 124.3 kB / 402.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.1031, allocations: 0 / 402.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.1032, allocations: 11.98 kB / 402.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1032, allocations: 0 / 402.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.1034, allocations: 63.91 kB / 402.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007287/0.1041, allocations: 457.2 kB / 403.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004266/0.1046, allocations: 131.7 kB / 403.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.1047, allocations: 46.69 kB / 403.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.1047, allocations: 3.938 kB / 403.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.1048, allocations: 34.56 kB / 403.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.1048, allocations: 4 kB / 403.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004756/0.1052, allocations: 129.6 kB / 403.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.1053, allocations: 102.8 kB / 403.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.1055, allocations: 154.4 kB / 404 MB, free: 9.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.1055, allocations: 33.89 kB / 404 MB, free: 9.941 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.1056, allocations: 115.9 kB / 404.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.741e-05/0.1057, allocations: 23.56 kB / 404.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.1057, allocations: 17.7 kB / 404.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1058, allocations: 318.8 kB / 404.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.606e-05/0.1059, allocations: 27.97 kB / 404.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1061, allocations: 65.14 kB / 404.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.1063, allocations: 91.62 kB / 404.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1063, allocations: 0 / 404.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003854/0.1067, allocations: 142.2 kB / 404.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1067, allocations: 4 kB / 404.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1067, allocations: 4 kB / 404.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002221/0.107, allocations: 37.11 kB / 404.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1071, allocations: 19.98 kB / 404.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/0.1082, allocations: 1.351 MB / 406.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1084, allocations: 19.95 kB / 406.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.1084, allocations: 4 kB / 406.2 MB, free: 7.523 MB / 302.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.0001835/0.1086, allocations: 113.8 kB / 406.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.647e-05/0.1086, allocations: 11.97 kB / 406.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.1087, allocations: 20.3 kB / 406.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.1087, allocations: 4.141 kB / 406.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.1087, allocations: 3.938 kB / 406.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1087, allocations: 7.922 kB / 406.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.1089, allocations: 213.5 kB / 406.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1089, allocations: 0 / 406.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1091, allocations: 19.92 kB / 406.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.1091, allocations: 4 kB / 406.6 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1091, allocations: 4 kB / 406.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1091, allocations: 4 kB / 406.6 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1091, allocations: 4 kB / 406.6 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003925/0.1095, allocations: 237 kB / 406.9 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.1096, allocations: 89.05 kB / 407 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.1096, allocations: 4 kB / 407 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1097, allocations: 15.98 kB / 407 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.1098, allocations: 3.938 kB / 407 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.1098, allocations: 7.984 kB / 407 MB, free: 6.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.852e-05/0.1099, allocations: 116 kB / 407.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1099, allocations: 0 / 407.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.1102, allocations: 23.97 kB / 407.1 MB, free: 6.531 MB / 302.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.0001086/0.1103, allocations: 99.19 kB / 407.2 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004976/0.1108, allocations: 202.6 kB / 407.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1108, allocations: 0 / 407.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.1109, allocations: 36.11 kB / 407.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.1113, allocations: 27.5 kB / 407.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005895/0.1119, allocations: 303.8 kB / 407.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.1122, allocations: 0.7004 MB / 408.5 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.183e-05/0.1123, allocations: 12.55 kB / 408.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.1124, allocations: 15.44 kB / 408.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1124, allocations: 0 / 408.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of Templates: time 0.003981/0.1163, allocations: 1.143 MB / 409.7 MB, free: 3.934 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile (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) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches