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.007715/0.007715, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.00164/0.00164, allocations: 188.6 kB / 16.67 MB, free: 5.93 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.56/1.56, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.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.17 MB / 284.1 MB, free: 13.84 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.001968/0.001968, allocations: 74.78 kB / 398.6 MB, free: 42.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1048, allocations: 50.13 MB / 448.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003566/0.1084, allocations: 1.814 MB / 450.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005291/0.109, allocations: 147.5 kB / 450.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1092, allocations: 7.938 kB / 450.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.1093, allocations: 15.8 kB / 450.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.1096, allocations: 35.77 kB / 450.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001336/0.1097, allocations: 31.91 kB / 450.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.11, allocations: 135.6 kB / 450.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.1101, allocations: 61.3 kB / 451 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1103, allocations: 47.78 kB / 451 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.1104, allocations: 51.7 kB / 451.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.917e-05/0.1105, allocations: 8 kB / 451.1 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.127e-05/0.1105, allocations: 12 kB / 451.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.555e-05/0.1105, allocations: 19.92 kB / 451.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.613e-05/0.1106, allocations: 51.73 kB / 451.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.1108, allocations: 107.6 kB / 451.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.1108, allocations: 4 kB / 451.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1108, allocations: 0 / 451.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.1108, allocations: 0 / 451.3 MB, free: 9.016 MB / 334.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.0007072/0.1115, allocations: 426.9 kB / 451.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1116, allocations: 12.03 kB / 451.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.229e-05/0.1116, allocations: 12.84 kB / 451.7 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.112, allocations: 226.6 kB / 451.9 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.112, allocations: 8.375 kB / 451.9 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.1121, allocations: 8.375 kB / 451.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.1123, allocations: 120.3 kB / 452 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1124, allocations: 0 / 452 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.1124, allocations: 4 kB / 452.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.1124, allocations: 8 kB / 452.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.1126, allocations: 59.95 kB / 452.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.1132, allocations: 449.1 kB / 452.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/0.1137, allocations: 123.8 kB / 452.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.1138, allocations: 46.61 kB / 452.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.1138, allocations: 4 kB / 452.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.1138, allocations: 42.56 kB / 452.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.1138, allocations: 0 / 452.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004062/0.1143, allocations: 117.6 kB / 452.9 MB, free: 7.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.1143, allocations: 118.9 kB / 453 MB, free: 7.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.1145, allocations: 150.4 kB / 453.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1145, allocations: 25.7 kB / 453.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.48e-05/0.1146, allocations: 111.9 kB / 453.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.1146, allocations: 23.7 kB / 453.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.913e-05/0.1147, allocations: 25.72 kB / 453.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1148, allocations: 322.8 kB / 453.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.212e-05/0.1149, allocations: 19.98 kB / 453.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.115, allocations: 65.12 kB / 453.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.1152, allocations: 83.61 kB / 453.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1152, allocations: 4.031 kB / 453.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003767/0.1156, allocations: 134.2 kB / 453.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1156, allocations: 11.98 kB / 454 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1156, allocations: 0 / 454 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002128/0.1159, allocations: 36.94 kB / 454 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.116, allocations: 15.98 kB / 454 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.1172, allocations: 1.457 MB / 455.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1173, allocations: 15.92 kB / 455.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1173, allocations: 0 / 455.5 MB, free: 4.324 MB / 334.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.0001017/0.1174, allocations: 130.5 kB / 455.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/0.1175, allocations: 11.84 kB / 455.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.314e-05/0.1175, allocations: 20.3 kB / 455.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1175, allocations: 4 kB / 455.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.1175, allocations: 4 kB / 455.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1175, allocations: 0 / 455.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.1178, allocations: 213.5 kB / 455.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1178, allocations: 0 / 455.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.1179, allocations: 19.98 kB / 455.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.1179, allocations: 0 / 455.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.1179, allocations: 7.938 kB / 455.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1179, allocations: 0 / 455.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1179, allocations: 0 / 455.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003688/0.1183, allocations: 233.1 kB / 456.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.1184, allocations: 88.95 kB / 456.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.1184, allocations: 11.94 kB / 456.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.1185, allocations: 12.05 kB / 456.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/0.1186, allocations: 192 / 456.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.1186, allocations: 7.984 kB / 456.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.1187, allocations: 123.1 kB / 456.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1187, allocations: 0 / 456.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002703/0.119, allocations: 16 kB / 456.4 MB, free: 3.34 MB / 334.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.0001071/0.1191, allocations: 91.25 kB / 456.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005038/0.1196, allocations: 202.6 kB / 456.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1196, allocations: 0 / 456.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.1197, allocations: 35.92 kB / 456.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.1201, allocations: 32 kB / 456.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000585/0.1207, allocations: 261.3 kB / 457 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.121, allocations: 0.7041 MB / 457.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.121e-05/0.1211, allocations: 12.55 kB / 457.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.1211, allocations: 11.44 kB / 457.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1212, allocations: 0 / 457.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of Templates: time 0.004101/0.1253, allocations: 1.269 MB / 459 MB, free: 0.6602 MB / 334.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