Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001864/0.001864, allocations: 101.1 kB / 16.41 MB, free: 6.445 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.002446/0.002446, allocations: 189.5 kB / 17.35 MB, free: 5.703 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.856/1.856, 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.06138/0.06138, 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.00178/0.00178, allocations: 71.8 kB / 399.3 MB, free: 42.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1093, 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.00331/0.1127, allocations: 1.808 MB / 451.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004382/0.1131, allocations: 155.5 kB / 451.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.1133, allocations: 4 kB / 451.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.1134, allocations: 15.8 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.1136, allocations: 31.78 kB / 451.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001055/0.1138, allocations: 35.89 kB / 451.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.114, allocations: 127.7 kB / 451.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.1142, allocations: 65.28 kB / 451.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.991e-05/0.1142, allocations: 51.72 kB / 451.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.1144, allocations: 43.78 kB / 451.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.1144, allocations: 12 kB / 451.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.955e-05/0.1144, allocations: 11.94 kB / 451.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.547e-05/0.1145, allocations: 27.91 kB / 451.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.217e-05/0.1145, allocations: 43.73 kB / 451.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.1147, allocations: 111.6 kB / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1147, allocations: 0 / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1147, allocations: 4 kB / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1148, allocations: 0 / 451.9 MB, free: 9.02 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.000795/0.1156, allocations: 427 kB / 452.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.1156, allocations: 12.03 kB / 452.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.43e-05/0.1157, allocations: 12.84 kB / 452.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.1161, allocations: 218.6 kB / 452.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.1161, allocations: 12.38 kB / 452.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.219e-05/0.1162, allocations: 16.31 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.1165, allocations: 116.3 kB / 452.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.1165, allocations: 0 / 452.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/0.1166, allocations: 8 kB / 452.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1166, allocations: 0 / 452.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.1168, allocations: 63.97 kB / 452.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007505/0.1176, allocations: 449 kB / 453.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003933/0.118, allocations: 123.8 kB / 453.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1181, allocations: 42.69 kB / 453.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.1181, allocations: 4 kB / 453.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.1182, allocations: 46.55 kB / 453.4 MB, free: 7.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.1182, allocations: 0 / 453.4 MB, free: 7.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004043/0.1186, allocations: 125.5 kB / 453.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.1186, allocations: 106.8 kB / 453.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.1188, allocations: 150.4 kB / 453.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.1189, allocations: 29.7 kB / 453.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.181e-05/0.119, allocations: 120.1 kB / 454 MB, free: 6.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.119, allocations: 19.7 kB / 454 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.119, allocations: 21.72 kB / 454 MB, free: 6.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1192, allocations: 322.8 kB / 454.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.638e-05/0.1193, allocations: 19.98 kB / 454.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.1194, allocations: 61.14 kB / 454.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.1196, allocations: 83.59 kB / 454.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1196, allocations: 4 kB / 454.5 MB, free: 6.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004658/0.1201, allocations: 138.2 kB / 454.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.1201, allocations: 8 kB / 454.6 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1201, allocations: 0 / 454.6 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/0.1204, allocations: 36.83 kB / 454.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.701e-05/0.1205, allocations: 15.98 kB / 454.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.1218, allocations: 1.461 MB / 456.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.256e-05/0.1219, allocations: 12 kB / 456.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.1219, allocations: 7.984 kB / 456.2 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.0001204/0.1221, allocations: 126.5 kB / 456.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.593e-05/0.1221, allocations: 11.91 kB / 456.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.714e-05/0.1221, allocations: 12.25 kB / 456.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1221, allocations: 7.938 kB / 456.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1221, allocations: 0 / 456.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.1222, allocations: 3.984 kB / 456.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.1224, allocations: 209.6 kB / 456.5 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1224, allocations: 0 / 456.5 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.1226, allocations: 19.98 kB / 456.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.1226, allocations: 4 kB / 456.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1227, allocations: 7.922 kB / 456.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1227, allocations: 0 / 456.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1227, allocations: 4 kB / 456.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.1243, allocations: 1.404 MB / 458 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.1244, allocations: 92.97 kB / 458.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1244, allocations: 0 / 458.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.1245, allocations: 8 kB / 458.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.111e-05/0.1246, allocations: 8.172 kB / 458.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.1246, allocations: 0 / 458.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001151/0.1247, allocations: 131.2 kB / 458.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1247, allocations: 0 / 458.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003484/0.1251, allocations: 35.84 kB / 458.2 MB, free: 2.023 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.0001259/0.1252, allocations: 91.25 kB / 458.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005059/0.1257, allocations: 194.6 kB / 458.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1257, allocations: 4.188 kB / 458.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.1258, allocations: 27.92 kB / 458.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.1262, allocations: 27.97 kB / 458.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006912/0.1269, allocations: 375.9 kB / 458.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.1273, allocations: 0.708 MB / 459.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.639e-05/0.1274, allocations: 12.56 kB / 459.7 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.061e-05/0.1274, allocations: 19.36 kB / 459.7 MB, free: 500 kB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1275, allocations: 0 / 459.7 MB, free: 500 kB / 334.1 MB Notification: Performance of Templates: time 0.004174/0.1316, allocations: 1.366 MB / 461 MB, free: 15.13 MB / 350.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches