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.001743/0.001743, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001966/0.001966, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.446/1.446, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06375/0.06375, allocations: 14.16 MB / 283.9 MB, free: 7.07 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.001628/0.001628, allocations: 67.91 kB / 347.2 MB, free: 17.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09592/0.09757, allocations: 50.13 MB / 397.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003551/0.1012, allocations: 1.808 MB / 399.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004633/0.1017, allocations: 155.5 kB / 399.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.1019, allocations: 8 kB / 399.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.102, allocations: 15.75 kB / 399.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.1023, allocations: 27.78 kB / 399.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001147/0.1024, allocations: 35.95 kB / 399.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.1026, allocations: 127.6 kB / 399.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.1028, allocations: 61.23 kB / 399.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.656e-05/0.1029, allocations: 51.8 kB / 399.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.103, allocations: 47.77 kB / 399.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.103, allocations: 8 kB / 399.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.423e-05/0.1031, allocations: 12 kB / 399.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.909e-05/0.1031, allocations: 23.86 kB / 399.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.251e-05/0.1032, allocations: 55.61 kB / 399.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.1033, allocations: 107.7 kB / 399.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1034, allocations: 0 / 399.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1034, allocations: 0 / 399.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1034, allocations: 4 kB / 399.8 MB, free: 12.58 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.0006431/0.104, allocations: 423 kB / 400.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1041, allocations: 8.031 kB / 400.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.333e-05/0.1041, allocations: 20.73 kB / 400.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.1044, allocations: 216.5 kB / 400.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.1044, allocations: 12.31 kB / 400.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.1045, allocations: 8.375 kB / 400.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.1047, allocations: 127.2 kB / 400.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.1048, allocations: 0 / 400.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.1048, allocations: 8 kB / 400.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.1048, allocations: 0 / 400.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.105, allocations: 55.95 kB / 400.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007196/0.1057, allocations: 457.2 kB / 401.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004201/0.1062, allocations: 127.8 kB / 401.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1063, allocations: 50.55 kB / 401.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.1063, allocations: 0 / 401.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.1064, allocations: 34.56 kB / 401.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1064, allocations: 0 / 401.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004277/0.1068, allocations: 129.5 kB / 401.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.1069, allocations: 102.8 kB / 401.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.107, allocations: 150.4 kB / 401.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1071, allocations: 29.95 kB / 401.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.1072, allocations: 119.9 kB / 401.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.1072, allocations: 23.66 kB / 401.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.595e-05/0.1073, allocations: 25.7 kB / 401.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1074, allocations: 314.8 kB / 402.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.641e-05/0.1075, allocations: 23.98 kB / 402.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.1076, allocations: 69.12 kB / 402.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.1078, allocations: 75.59 kB / 402.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1078, allocations: 0 / 402.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004215/0.1083, allocations: 154.2 kB / 402.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1083, allocations: 4 kB / 402.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.1083, allocations: 192 / 402.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002311/0.1085, allocations: 32.83 kB / 402.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.1087, allocations: 28.02 kB / 402.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/0.1102, allocations: 1.453 MB / 404.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.1104, allocations: 8.031 kB / 404.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.1104, allocations: 4 kB / 404.1 MB, free: 7.883 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.0001428/0.1106, allocations: 117.8 kB / 404.2 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.1106, allocations: 11.91 kB / 404.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.503e-05/0.1107, allocations: 28.38 kB / 404.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.1107, allocations: 7.984 kB / 404.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.1107, allocations: 0 / 404.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1107, allocations: 0 / 404.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.111, allocations: 213.5 kB / 404.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.111, allocations: 0 / 404.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.1112, allocations: 19.98 kB / 404.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1112, allocations: 0 / 404.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1112, allocations: 3.938 kB / 404.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1112, allocations: 4 kB / 404.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1112, allocations: 0 / 404.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004026/0.1116, allocations: 233.1 kB / 404.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.1117, allocations: 88.98 kB / 404.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.1117, allocations: 11.98 kB / 404.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.1119, allocations: 12.06 kB / 404.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.61e-05/0.112, allocations: 7.984 kB / 404.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.044e-06/0.112, allocations: 0 / 404.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001208/0.1121, allocations: 120 kB / 404.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1121, allocations: 0 / 404.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.1124, allocations: 23.91 kB / 404.9 MB, free: 6.895 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.0001536/0.1126, allocations: 103.1 kB / 405 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005649/0.1132, allocations: 198.6 kB / 405.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.1132, allocations: 0 / 405.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.1133, allocations: 27.98 kB / 405.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.1138, allocations: 26.11 kB / 405.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007175/0.1146, allocations: 249.2 kB / 405.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.1149, allocations: 0.7086 MB / 406.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.023e-05/0.115, allocations: 12.55 kB / 406.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.355e-05/0.115, allocations: 19.38 kB / 406.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.115, allocations: 0 / 406.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of Templates: time 0.005249/0.1203, allocations: 1.247 MB / 407.5 MB, free: 4.238 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches