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.001291/0.001291, allocations: 111.6 kB / 16.42 MB, free: 6.461 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.001194/0.001194, 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.527/1.527, 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.06912/0.06912, allocations: 14.17 MB / 284.8 MB, free: 13.85 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.00249/0.00249, allocations: 71.84 kB / 399.3 MB, free: 42.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1069, allocations: 50.14 MB / 449.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.004154/0.1111, allocations: 1.796 MB / 451.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005888/0.1118, allocations: 159.5 kB / 451.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.112, allocations: 4 kB / 451.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.1122, allocations: 19.8 kB / 451.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.1124, allocations: 27.78 kB / 451.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001439/0.1126, allocations: 39.89 kB / 451.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.1128, allocations: 123.7 kB / 451.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.113, allocations: 65.28 kB / 451.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.644e-05/0.1131, allocations: 47.73 kB / 451.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.1133, allocations: 51.77 kB / 451.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.1133, allocations: 8 kB / 451.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.577e-05/0.1133, allocations: 15.94 kB / 451.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.988e-05/0.1134, allocations: 19.92 kB / 451.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.751e-05/0.1135, allocations: 51.72 kB / 451.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.1137, allocations: 111.4 kB / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1137, allocations: 0 / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1137, allocations: 0 / 451.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1137, allocations: 4 kB / 451.9 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.0007035/0.1144, allocations: 430.9 kB / 452.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.1145, allocations: 12.03 kB / 452.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.549e-05/0.1145, allocations: 12.84 kB / 452.4 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.1149, allocations: 218.8 kB / 452.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.115, allocations: 8.359 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.115, allocations: 16.31 kB / 452.6 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.1153, allocations: 128.2 kB / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1153, allocations: 0 / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.1153, allocations: 0 / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1154, allocations: 4 kB / 452.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.1156, allocations: 55.97 kB / 452.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007025/0.1163, allocations: 453.2 kB / 453.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004102/0.1167, allocations: 123.8 kB / 453.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.1168, allocations: 46.62 kB / 453.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.1168, allocations: 7.984 kB / 453.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.1169, allocations: 34.56 kB / 453.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.604e-06/0.1169, allocations: 4 kB / 453.5 MB, free: 7.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004281/0.1173, allocations: 133.4 kB / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.1174, allocations: 102.8 kB / 453.7 MB, free: 7.023 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.1176, allocations: 154.4 kB / 453.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.1176, allocations: 29.64 kB / 453.9 MB, free: 6.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/0.1177, allocations: 120.2 kB / 454 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.1177, allocations: 23.75 kB / 454 MB, free: 6.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.1178, allocations: 25.7 kB / 454 MB, free: 6.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.118, allocations: 322.8 kB / 454.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.938e-05/0.1181, allocations: 23.98 kB / 454.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.1182, allocations: 61.14 kB / 454.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.1184, allocations: 79.34 kB / 454.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1184, allocations: 0 / 454.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003788/0.1188, allocations: 142.3 kB / 454.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1188, allocations: 8 kB / 454.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1188, allocations: 0 / 454.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000229/0.1191, allocations: 32.83 kB / 454.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.862e-05/0.1192, allocations: 15.98 kB / 454.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.1206, allocations: 1.454 MB / 456.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.678e-05/0.1207, allocations: 15.95 kB / 456.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.1207, allocations: 4 kB / 456.2 MB, free: 4.312 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.0001279/0.1209, allocations: 130.5 kB / 456.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.1209, allocations: 7.953 kB / 456.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.46e-05/0.121, allocations: 20.25 kB / 456.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.121, allocations: 4.25 kB / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.121, allocations: 4 kB / 456.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.121, allocations: 144 / 456.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.1212, allocations: 217.6 kB / 456.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1213, allocations: 3.984 kB / 456.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1214, allocations: 15.98 kB / 456.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1214, allocations: 0 / 456.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1214, allocations: 7.938 kB / 456.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.1214, allocations: 3.984 kB / 456.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1214, allocations: 0 / 456.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.1229, allocations: 1.4 MB / 458 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.428e-05/0.123, allocations: 88.94 kB / 458.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.123, allocations: 11.98 kB / 458.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.863e-05/0.1231, allocations: 4 kB / 458.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.1232, allocations: 3.984 kB / 458.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1232, allocations: 4 kB / 458.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001897/0.1234, allocations: 123.4 kB / 458.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1234, allocations: 0 / 458.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003427/0.1238, allocations: 35.92 kB / 458.2 MB, free: 2.012 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.0001144/0.1239, allocations: 91.25 kB / 458.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005002/0.1244, allocations: 194.5 kB / 458.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.1244, allocations: 8.188 kB / 458.5 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1245, allocations: 31.92 kB / 458.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.1248, allocations: 19.98 kB / 458.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006638/0.1255, allocations: 379.3 kB / 459 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.1259, allocations: 0.7121 MB / 459.7 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.904e-05/0.126, allocations: 12.81 kB / 459.7 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.126, allocations: 19.38 kB / 459.7 MB, free: 480 kB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.126, allocations: 0 / 459.7 MB, free: 480 kB / 334.1 MB Notification: Performance of Templates: time 0.004595/0.1306, allocations: 1.339 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