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.001636/0.001636, allocations: 113.1 kB / 17.09 MB, free: 5.934 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.001832/0.001832, allocations: 196.2 kB / 18.02 MB, free: 5.023 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.301/1.301, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06273/0.06273, allocations: 14.16 MB / 285.4 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.001411/0.001411, allocations: 75.94 kB / 399.9 MB, free: 42.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06538/0.0668, allocations: 50.13 MB / 450.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002671/0.0695, allocations: 1.808 MB / 451.9 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003373/0.06985, allocations: 147.5 kB / 452 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.7e-05/0.06995, allocations: 3.938 kB / 452 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.07008, allocations: 23.8 kB / 452 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.07022, allocations: 23.78 kB / 452.1 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.789e-05/0.07033, allocations: 43.89 kB / 452.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.07049, allocations: 123.7 kB / 452.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.07063, allocations: 61.23 kB / 452.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.59e-05/0.07071, allocations: 51.78 kB / 452.3 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.568e-05/0.07081, allocations: 51.77 kB / 452.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.07084, allocations: 11.94 kB / 452.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.041e-05/0.07087, allocations: 12 kB / 452.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.787e-05/0.0709, allocations: 15.92 kB / 452.4 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.031e-05/0.07095, allocations: 51.73 kB / 452.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.07111, allocations: 111.5 kB / 452.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.07113, allocations: 4 kB / 452.6 MB, free: 9.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.07113, allocations: 0 / 452.6 MB, free: 9.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.07115, allocations: 0 / 452.6 MB, free: 9.027 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.0005619/0.07171, allocations: 427 kB / 453 MB, free: 8.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.07175, allocations: 12.02 kB / 453 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.373e-05/0.0718, allocations: 12.84 kB / 453 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.07206, allocations: 222.7 kB / 453.3 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.07208, allocations: 8.312 kB / 453.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.07211, allocations: 12.38 kB / 453.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002336/0.07235, allocations: 124.3 kB / 453.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.07237, allocations: 0 / 453.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.07239, allocations: 3.984 kB / 453.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.0724, allocations: 4 kB / 453.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.07259, allocations: 59.97 kB / 453.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005832/0.07318, allocations: 445.1 kB / 453.9 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.07356, allocations: 127.8 kB / 454 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.07368, allocations: 50.61 kB / 454.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.07371, allocations: 7.922 kB / 454.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.07373, allocations: 42.56 kB / 454.1 MB, free: 7.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.07374, allocations: 0 / 454.1 MB, free: 7.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003753/0.07412, allocations: 125.5 kB / 454.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.07418, allocations: 106.8 kB / 454.4 MB, free: 7.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.07431, allocations: 150.7 kB / 454.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.07434, allocations: 33.7 kB / 454.5 MB, free: 6.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/0.07441, allocations: 111.9 kB / 454.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.07444, allocations: 19.72 kB / 454.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-05/0.07449, allocations: 25.7 kB / 454.7 MB, free: 6.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.0746, allocations: 318.8 kB / 455 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.02e-05/0.07469, allocations: 27.98 kB / 455 MB, free: 6.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.07481, allocations: 61.14 kB / 455.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.07501, allocations: 75.34 kB / 455.2 MB, free: 6.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.07502, allocations: 4 kB / 455.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003642/0.07539, allocations: 142.2 kB / 455.3 MB, free: 6.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.07541, allocations: 4 kB / 455.3 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.07542, allocations: 4 kB / 455.3 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001931/0.07562, allocations: 32.83 kB / 455.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.07574, allocations: 20.39 kB / 455.4 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.07685, allocations: 1.457 MB / 456.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.07696, allocations: 7.938 kB / 456.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.07698, allocations: 4 kB / 456.8 MB, free: 4.336 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 8.987e-05/0.07708, allocations: 134.5 kB / 457 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.647e-05/0.07712, allocations: 7.906 kB / 457 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.07715, allocations: 24.33 kB / 457 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.07716, allocations: 3.984 kB / 457 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.07717, allocations: 4.062 kB / 457 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.07719, allocations: 4 kB / 457 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.0774, allocations: 205.5 kB / 457.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.07741, allocations: 4 kB / 457.2 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.07754, allocations: 15.98 kB / 457.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.07755, allocations: 0 / 457.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.07756, allocations: 7.938 kB / 457.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.07757, allocations: 3.984 kB / 457.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.07758, allocations: 0 / 457.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.07892, allocations: 1.396 MB / 458.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.701e-05/0.07899, allocations: 85.05 kB / 458.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.07902, allocations: 15.92 kB / 458.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.07914, allocations: 7.938 kB / 458.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.07919, allocations: 12.08 kB / 458.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.0792, allocations: 4 kB / 458.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.916e-05/0.07928, allocations: 119.1 kB / 458.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07929, allocations: 0 / 458.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.07965, allocations: 31.84 kB / 458.9 MB, free: 2.035 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 8.47e-05/0.07974, allocations: 99.23 kB / 459 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004351/0.08018, allocations: 194.8 kB / 459.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.0802, allocations: 0 / 459.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.08031, allocations: 35.92 kB / 459.2 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.0003121/0.08063, allocations: 19.98 kB / 459.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005615/0.0812, allocations: 401.6 kB / 459.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.08146, allocations: 0.708 MB / 460.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.08151, allocations: 11.44 kB / 460.4 MB, free: 496 kB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.08152, allocations: 0 / 460.4 MB, free: 496 kB / 334.1 MB Notification: Performance of Templates: time 0.003141/0.08466, allocations: 1.746 MB / 462.1 MB, free: 14.74 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/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