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.00136/0.00136, allocations: 110.8 kB / 16.41 MB, free: 6.469 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.00126/0.00126, allocations: 188.2 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.58/1.58, 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.06616/0.06616, allocations: 14.17 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.002031/0.002031, allocations: 72.52 kB / 399.3 MB, free: 42.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09856, allocations: 50.14 MB / 449.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003499/0.1021, allocations: 1.788 MB / 451.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004094/0.1026, allocations: 167.4 kB / 451.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1027, allocations: 0 / 451.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.1028, allocations: 19.8 kB / 451.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.103, allocations: 27.78 kB / 451.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.472e-05/0.1031, allocations: 39.89 kB / 451.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.1033, allocations: 127.6 kB / 451.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.1035, allocations: 61.3 kB / 451.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.047e-05/0.1036, allocations: 51.78 kB / 451.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.1037, allocations: 51.7 kB / 451.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.1037, allocations: 8 kB / 451.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.065e-05/0.1038, allocations: 8 kB / 451.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.804e-05/0.1038, allocations: 27.91 kB / 451.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.375e-05/0.1039, allocations: 47.73 kB / 451.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001773/0.1041, allocations: 115.4 kB / 451.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1041, allocations: 0 / 451.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1041, allocations: 0 / 451.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1041, allocations: 4 kB / 451.9 MB, free: 9.008 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.0006973/0.1048, allocations: 426.9 kB / 452.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.1048, allocations: 8.031 kB / 452.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.526e-05/0.1049, allocations: 20.78 kB / 452.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.1052, allocations: 222.7 kB / 452.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1053, allocations: 8.375 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.1053, allocations: 16.38 kB / 452.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/0.1056, allocations: 124.2 kB / 452.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1056, allocations: 0 / 452.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.1056, allocations: 4 kB / 452.8 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1056, allocations: 4 kB / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.1058, allocations: 59.91 kB / 452.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.1066, allocations: 445.3 kB / 453.2 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/0.107, allocations: 123.8 kB / 453.4 MB, free: 7.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.1071, allocations: 42.62 kB / 453.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.1072, allocations: 0 / 453.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.1072, allocations: 46.55 kB / 453.5 MB, free: 7.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.1072, allocations: 7.938 kB / 453.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004039/0.1076, allocations: 121.4 kB / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.837e-05/0.1077, allocations: 106.8 kB / 453.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.1079, allocations: 146.4 kB / 453.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.1079, allocations: 29.7 kB / 453.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.341e-05/0.108, allocations: 116.2 kB / 454 MB, free: 6.711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.108, allocations: 35.72 kB / 454 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-05/0.1081, allocations: 25.72 kB / 454 MB, free: 6.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1082, allocations: 318.8 kB / 454.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/0.1083, allocations: 19.98 kB / 454.4 MB, free: 6.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.1085, allocations: 65.14 kB / 454.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.1087, allocations: 79.34 kB / 454.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1087, allocations: 0 / 454.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003713/0.1091, allocations: 142.3 kB / 454.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1091, allocations: 4 kB / 454.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1091, allocations: 4 kB / 454.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002257/0.1093, allocations: 40.81 kB / 454.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.825e-05/0.1094, allocations: 16.23 kB / 454.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.1108, allocations: 1.45 MB / 456.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.111, allocations: 23.97 kB / 456.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.111, allocations: 4 kB / 456.2 MB, free: 4.301 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.0001277/0.1111, allocations: 130.5 kB / 456.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.402e-05/0.1112, allocations: 11.89 kB / 456.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.952e-05/0.1112, allocations: 16.25 kB / 456.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1112, allocations: 0 / 456.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1112, allocations: 3.984 kB / 456.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1112, allocations: 4 kB / 456.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.1115, allocations: 201.6 kB / 456.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.1115, allocations: 4 kB / 456.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.1116, allocations: 23.97 kB / 456.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1116, allocations: 0 / 456.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.1116, allocations: 3.938 kB / 456.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1117, allocations: 4 kB / 456.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1117, allocations: 0 / 456.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.1134, allocations: 1.407 MB / 458 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.918e-05/0.1135, allocations: 93.02 kB / 458.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.1135, allocations: 4.188 kB / 458.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.1136, allocations: 4 kB / 458.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.621e-05/0.1137, allocations: 15.92 kB / 458.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.1137, allocations: 4 kB / 458.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1138, allocations: 127.2 kB / 458.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1138, allocations: 0 / 458.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.1142, allocations: 24 kB / 458.3 MB, free: 2.004 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.000124/0.1143, allocations: 91.25 kB / 458.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005356/0.1148, allocations: 198.5 kB / 458.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1149, allocations: 4.188 kB / 458.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.115, allocations: 31.92 kB / 458.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.1154, allocations: 27.97 kB / 458.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006888/0.1161, allocations: 371.3 kB / 459 MB, free: 1.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.1165, allocations: 0.716 MB / 459.7 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.976e-05/0.1165, allocations: 8.562 kB / 459.7 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.211e-05/0.1166, allocations: 15.42 kB / 459.7 MB, free: 476 kB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1166, allocations: 0 / 459.7 MB, free: 476 kB / 334.1 MB Notification: Performance of Templates: time 0.0048/0.1214, allocations: 1.334 MB / 461 MB, free: 15.14 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