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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.007289/0.007289, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001598/0.001598, allocations: 192.4 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07978/0.07978, allocations: 16.68 MB / 307.2 MB, free: 14.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 63.89 kB / 428.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.109, allocations: 53.55 MB / 482.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003359/0.1124, allocations: 1.801 MB / 483.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004193/0.1128, allocations: 143.5 kB / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1129, allocations: 3.938 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.1131, allocations: 23.8 kB / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.1133, allocations: 27.77 kB / 484.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001036/0.1134, allocations: 39.91 kB / 484.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002216/0.1136, allocations: 131.7 kB / 484.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.1138, allocations: 45.33 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.761e-05/0.1139, allocations: 59.7 kB / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.114, allocations: 47.77 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.147e-05/0.1141, allocations: 12 kB / 484.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.325e-05/0.1141, allocations: 8 kB / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.922e-05/0.1141, allocations: 19.92 kB / 484.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.694e-05/0.1142, allocations: 55.67 kB / 484.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.1144, allocations: 111.4 kB / 484.6 MB, free: 460 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1144, allocations: 0 / 484.6 MB, free: 460 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.1144, allocations: 3.984 kB / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1144, allocations: 0 / 484.6 MB, free: 456 kB / 350.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.0006802/0.1151, allocations: 430.9 kB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1152, allocations: 8.031 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.998e-05/0.1152, allocations: 16.84 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.1156, allocations: 222.7 kB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.1156, allocations: 8.375 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.1156, allocations: 12.38 kB / 485.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.1159, allocations: 126.7 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1159, allocations: 3.938 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.116, allocations: 0 / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.116, allocations: 8 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.1162, allocations: 66.61 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007302/0.1169, allocations: 441.3 kB / 486 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.1174, allocations: 123.8 kB / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.1175, allocations: 54.53 kB / 486.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-05/0.1176, allocations: 3.984 kB / 486.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.1176, allocations: 38.56 kB / 486.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.1176, allocations: 0 / 486.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004439/0.1181, allocations: 129.4 kB / 486.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/0.1181, allocations: 106.8 kB / 486.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.1183, allocations: 153.7 kB / 486.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1183, allocations: 33.7 kB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1184, allocations: 115.9 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.1185, allocations: 27.78 kB / 486.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.1185, allocations: 21.72 kB / 486.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1187, allocations: 318.8 kB / 487.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.77e-05/0.1188, allocations: 19.98 kB / 487.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.1189, allocations: 73.12 kB / 487.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.1191, allocations: 75.34 kB / 487.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1191, allocations: 4.031 kB / 487.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003777/0.1195, allocations: 146.2 kB / 487.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.1195, allocations: 4 kB / 487.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1195, allocations: 0 / 487.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002119/0.1198, allocations: 36.92 kB / 487.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.578e-05/0.1199, allocations: 15.98 kB / 487.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.1212, allocations: 1.454 MB / 488.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.857e-05/0.1213, allocations: 8.016 kB / 488.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1213, allocations: 7.984 kB / 488.9 MB, free: 11.73 MB / 366.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.000143/0.1215, allocations: 129.7 kB / 489 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.925e-05/0.1215, allocations: 11.91 kB / 489 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.771e-05/0.1216, allocations: 24.23 kB / 489.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1216, allocations: 4.203 kB / 489.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.1216, allocations: 0 / 489.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1216, allocations: 3.984 kB / 489.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.1219, allocations: 205.8 kB / 489.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1219, allocations: 0 / 489.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.122, allocations: 23.92 kB / 489.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.122, allocations: 0 / 489.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.122, allocations: 3.938 kB / 489.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.1221, allocations: 4 kB / 489.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1221, allocations: 0 / 489.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003741/0.1224, allocations: 233.1 kB / 489.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.987e-05/0.1225, allocations: 93.05 kB / 489.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.1225, allocations: 3.938 kB / 489.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.1226, allocations: 8.047 kB / 489.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.1227, allocations: 15.98 kB / 489.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.1227, allocations: 4 kB / 489.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.217e-05/0.1228, allocations: 111.3 kB / 489.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1228, allocations: 3.938 kB / 489.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.1231, allocations: 19.94 kB / 489.8 MB, free: 10.75 MB / 366.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.0001186/0.1232, allocations: 103.2 kB / 489.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004783/0.1237, allocations: 202.6 kB / 490.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1237, allocations: 0 / 490.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.1238, allocations: 27.98 kB / 490.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.1242, allocations: 31.86 kB / 490.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005524/0.1247, allocations: 261 kB / 490.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.1251, allocations: 0.7041 MB / 491.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.215e-05/0.1251, allocations: 16.8 kB / 491.1 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.1252, allocations: 11.44 kB / 491.1 MB, free: 9.324 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1252, allocations: 0 / 491.1 MB, free: 9.324 MB / 366.1 MB Notification: Performance of Templates: time 0.004219/0.1294, allocations: 1.268 MB / 492.4 MB, free: 8.062 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (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) 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) Reference file matches