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.001093/0.001093, allocations: 109.4 kB / 16.41 MB, free: 6.457 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.001107/0.001107, allocations: 192.2 kB / 17.35 MB, free: 5.715 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.602/1.602, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06603/0.06603, allocations: 14.15 MB / 284.7 MB, free: 13.86 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.001684/0.001684, allocations: 67.23 kB / 399.3 MB, free: 42.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1216, allocations: 50.13 MB / 449.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.004128/0.1257, allocations: 1.816 MB / 451.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006087/0.1264, allocations: 159.4 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.1266, allocations: 0 / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.1269, allocations: 15.81 kB / 451.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000291/0.1272, allocations: 31.78 kB / 451.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001387/0.1274, allocations: 39.89 kB / 451.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.1276, allocations: 127.6 kB / 451.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.1279, allocations: 57.3 kB / 451.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.128, allocations: 51.78 kB / 451.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.1281, allocations: 55.7 kB / 451.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.008e-05/0.1282, allocations: 8 kB / 451.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.832e-05/0.1282, allocations: 8 kB / 451.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.276e-05/0.1283, allocations: 23.92 kB / 451.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.518e-05/0.1283, allocations: 47.73 kB / 451.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.1286, allocations: 115.5 kB / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1286, allocations: 0 / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1286, allocations: 0 / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.1286, allocations: 0 / 451.9 MB, free: 9.004 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.0008916/0.1295, allocations: 431 kB / 452.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.1296, allocations: 8.031 kB / 452.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.186e-05/0.1297, allocations: 12.84 kB / 452.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.1301, allocations: 218.6 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.1302, allocations: 8.375 kB / 452.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.1302, allocations: 12.38 kB / 452.6 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.1305, allocations: 124.3 kB / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1305, allocations: 0 / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.1306, allocations: 4 kB / 452.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.1306, allocations: 4 kB / 452.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002198/0.1308, allocations: 59.95 kB / 452.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007632/0.1316, allocations: 457 kB / 453.2 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004177/0.132, allocations: 119.8 kB / 453.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.1321, allocations: 46.62 kB / 453.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.1322, allocations: 4 kB / 453.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.1322, allocations: 38.56 kB / 453.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.1322, allocations: 0 / 453.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004648/0.1327, allocations: 129.5 kB / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.1328, allocations: 110.8 kB / 453.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.1329, allocations: 142.4 kB / 453.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1329, allocations: 33.7 kB / 453.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.133, allocations: 115.9 kB / 454 MB, free: 6.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.1331, allocations: 15.72 kB / 454 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.454e-05/0.1331, allocations: 29.95 kB / 454 MB, free: 6.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1333, allocations: 318.8 kB / 454.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.1334, allocations: 27.97 kB / 454.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1335, allocations: 57.14 kB / 454.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.1337, allocations: 83.62 kB / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1337, allocations: 4 kB / 454.5 MB, free: 6.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003995/0.1341, allocations: 138.3 kB / 454.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1342, allocations: 8.031 kB / 454.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1342, allocations: 4 kB / 454.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.1344, allocations: 36.83 kB / 454.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.1345, allocations: 15.98 kB / 454.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.136, allocations: 1.457 MB / 456.1 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1361, allocations: 7.938 kB / 456.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.1361, allocations: 4 kB / 456.1 MB, free: 4.316 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.0001411/0.1363, allocations: 134.5 kB / 456.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.295e-05/0.1363, allocations: 11.84 kB / 456.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.1364, allocations: 20.23 kB / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1364, allocations: 0 / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1364, allocations: 0 / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1364, allocations: 4 kB / 456.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00028/0.1367, allocations: 213.5 kB / 456.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1367, allocations: 4 kB / 456.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1368, allocations: 19.98 kB / 456.5 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1368, allocations: 0 / 456.5 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1369, allocations: 3.938 kB / 456.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.1369, allocations: 4 kB / 456.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1369, allocations: 0 / 456.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.1385, allocations: 1.407 MB / 458 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5e-05/0.1386, allocations: 85.05 kB / 458 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.1386, allocations: 0 / 458 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.1387, allocations: 11.98 kB / 458.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.1388, allocations: 4.188 kB / 458.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.1388, allocations: 4 kB / 458.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.605e-05/0.1389, allocations: 127.1 kB / 458.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1389, allocations: 0 / 458.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003745/0.1393, allocations: 31.84 kB / 458.2 MB, free: 2.016 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.0001232/0.1394, allocations: 99.31 kB / 458.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005511/0.14, allocations: 194.6 kB / 458.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.14, allocations: 0 / 458.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.1401, allocations: 36.23 kB / 458.5 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.0003579/0.1405, allocations: 24.92 kB / 458.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007425/0.1412, allocations: 375.8 kB / 458.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.1416, allocations: 0.708 MB / 459.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.489e-05/0.1416, allocations: 12.48 kB / 459.7 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.337e-05/0.1417, allocations: 15.44 kB / 459.7 MB, free: 488 kB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1417, allocations: 4 kB / 459.7 MB, free: 484 kB / 334.1 MB Notification: Performance of Templates: time 0.004792/0.1465, allocations: 1.338 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches