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.001347/0.001347, allocations: 106.9 kB / 16.41 MB, free: 6.473 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.001473/0.001473, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.582/1.582, allocations: 205.1 MB / 223.2 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.064/0.064, allocations: 14.18 MB / 284.8 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.001455/0.001455, allocations: 67.2 kB / 399.3 MB, free: 42.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09249, allocations: 50.13 MB / 449.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002885/0.09541, allocations: 1.802 MB / 451.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000364/0.09579, allocations: 159.5 kB / 451.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.09593, allocations: 0 / 451.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.09609, allocations: 19.8 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.09627, allocations: 27.78 kB / 451.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.899e-05/0.09638, allocations: 39.89 kB / 451.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001872/0.09658, allocations: 131.6 kB / 451.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.09674, allocations: 61.28 kB / 451.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.951e-05/0.09681, allocations: 47.8 kB / 451.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.09693, allocations: 51.7 kB / 451.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.09696, allocations: 8 kB / 451.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.09698, allocations: 8 kB / 451.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.739e-05/0.09701, allocations: 23.92 kB / 451.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.029e-05/0.09707, allocations: 51.73 kB / 451.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.09725, allocations: 111.4 kB / 451.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09726, allocations: 0 / 451.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09727, allocations: 0 / 451.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.09728, allocations: 4 kB / 451.9 MB, free: 9.023 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.000565/0.09785, allocations: 426.9 kB / 452.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.0979, allocations: 8.031 kB / 452.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.974e-05/0.09796, allocations: 24.77 kB / 452.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.09828, allocations: 218.7 kB / 452.6 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.0983, allocations: 8.375 kB / 452.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.09834, allocations: 16.38 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.09862, allocations: 128.2 kB / 452.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.09864, allocations: 0 / 452.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.09866, allocations: 0 / 452.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.09868, allocations: 7.984 kB / 452.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.09887, allocations: 55.97 kB / 452.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007705/0.09965, allocations: 453.2 kB / 453.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.1001, allocations: 123.9 kB / 453.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1002, allocations: 46.56 kB / 453.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.1003, allocations: 0 / 453.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1003, allocations: 30.56 kB / 453.4 MB, free: 7.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.1003, allocations: 4 kB / 453.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004088/0.1007, allocations: 133.4 kB / 453.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.1008, allocations: 106.8 kB / 453.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.1009, allocations: 150.4 kB / 453.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.101, allocations: 29.7 kB / 453.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.52e-05/0.1011, allocations: 120.2 kB / 454 MB, free: 6.715 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.1011, allocations: 27.75 kB / 454 MB, free: 6.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-05/0.1012, allocations: 25.7 kB / 454 MB, free: 6.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1013, allocations: 318.8 kB / 454.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.73e-05/0.1014, allocations: 19.98 kB / 454.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.1015, allocations: 65.14 kB / 454.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.1017, allocations: 83.59 kB / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1018, allocations: 0 / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003794/0.1021, allocations: 142.3 kB / 454.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.1022, allocations: 4 kB / 454.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1022, allocations: 0 / 454.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002389/0.1024, allocations: 36.83 kB / 454.7 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.1025, allocations: 15.98 kB / 454.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.1037, allocations: 1.453 MB / 456.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.4e-05/0.1038, allocations: 15.98 kB / 456.2 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.1039, allocations: 4 kB / 456.2 MB, free: 4.32 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.0001032/0.104, allocations: 130.5 kB / 456.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.104, allocations: 16.08 kB / 456.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.592e-05/0.104, allocations: 12.31 kB / 456.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1041, allocations: 11.88 kB / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1041, allocations: 0 / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.1041, allocations: 89.05 kB / 456.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.1041, allocations: 4 kB / 456.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.1043, allocations: 4 kB / 456.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.1043, allocations: 12.12 kB / 456.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003725/0.1047, allocations: 335.5 kB / 456.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003883/0.1051, allocations: 465.2 kB / 457.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.946e-05/0.1052, allocations: 32 kB / 457.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.396e-05/0.1053, allocations: 123.2 kB / 457.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of Backend: time 4.81e-07/0.1053, allocations: 0 / 457.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007881/0.1061, allocations: 241 kB / 457.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of SimCode: time 0.0007562/0.1069, allocations: 0.684 MB / 458.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Templates: time 0.004078/0.1109, allocations: 1.408 MB / 459.7 MB, free: 0.6719 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches