Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001942/0.001942, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001982/0.001982, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.547/1.547, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08864/0.08864, allocations: 12.72 MB / 272.3 MB, free: 0.7539 MB / 250.7 MB " [Timeout remaining time 180] Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_dev_PowerGrids.Controls.Test.TestLeadLag") translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_dev_PowerGrids.Controls.Test.TestLeadLag") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 3.938 kB / 348.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.34e-05/2.496e-05, allocations: 6.25 kB / 348.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003254/0.003279, allocations: 1.782 MB / 350.2 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003865/0.003665, allocations: 147.5 kB / 350.3 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.086e-05/0.003756, allocations: 7.938 kB / 350.3 MB, free: 13.94 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.003881, allocations: 19.73 kB / 350.3 MB, free: 13.92 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.004041, allocations: 35.78 kB / 350.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001033/0.004144, allocations: 31.95 kB / 350.4 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001943/0.004339, allocations: 135.6 kB / 350.5 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.004463, allocations: 41.44 kB / 350.6 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.004581, allocations: 67.88 kB / 350.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.289e-05/0.004674, allocations: 39.83 kB / 350.7 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.004704, allocations: 8 kB / 350.7 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.356e-05/0.004728, allocations: 12 kB / 350.7 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.553e-05/0.004763, allocations: 27.86 kB / 350.7 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.885e-05/0.004812, allocations: 35.84 kB / 350.8 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.004988, allocations: 107.7 kB / 350.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.00499, allocations: 0 / 350.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.004991, allocations: 0 / 350.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.636e-06/0.004994, allocations: 0 / 350.9 MB, free: 13.39 MB / 282.7 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.0006867/0.005681, allocations: 463.7 kB / 351.3 MB, free: 12.89 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.005715, allocations: 8.031 kB / 351.3 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.318e-05/0.005778, allocations: 24.84 kB / 351.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.006052, allocations: 165 kB / 351.5 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.006067, allocations: 8.312 kB / 351.5 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/0.006095, allocations: 12.38 kB / 351.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002658/0.00636, allocations: 136.2 kB / 351.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.00637, allocations: 192 / 351.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.006386, allocations: 8.125 kB / 351.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.00639, allocations: 4 kB / 351.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.00657, allocations: 55.91 kB / 351.7 MB, free: 12.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007566/0.007326, allocations: 454 kB / 352.2 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004253/0.007751, allocations: 141.2 kB / 352.3 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.007863, allocations: 47.19 kB / 352.4 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.007893, allocations: 7.984 kB / 352.4 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.007925, allocations: 37.39 kB / 352.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 3.217e-06/0.007928, allocations: 3.984 kB / 352.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003757/0.008304, allocations: 113.7 kB / 352.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/0.008381, allocations: 111 kB / 352.6 MB, free: 11.41 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.008592, allocations: 224.8 kB / 352.8 MB, free: 11.17 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.008615, allocations: 29.7 kB / 352.9 MB, free: 11.14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.00874, allocations: 170.7 kB / 353 MB, free: 10.96 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.008774, allocations: 27.75 kB / 353.1 MB, free: 10.94 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/0.008847, allocations: 35.36 kB / 353.1 MB, free: 10.89 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002572/0.009104, allocations: 0.4884 MB / 353.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-05/0.009188, allocations: 24.05 kB / 353.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.009352, allocations: 133.5 kB / 353.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.009539, allocations: 90.69 kB / 353.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.009541, allocations: 4 kB / 353.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003767/0.009917, allocations: 129.2 kB / 354 MB, free: 9.957 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.009931, allocations: 4 kB / 354 MB, free: 9.953 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.009938, allocations: 4 kB / 354 MB, free: 9.949 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003066/0.01024, allocations: 55.67 kB / 354 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.83e-05/0.01033, allocations: 11.98 kB / 354 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.01208, allocations: 1.842 MB / 355.9 MB, free: 7.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.367e-05/0.01217, allocations: 11.94 kB / 355.9 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.01218, allocations: 8 kB / 355.9 MB, free: 7.895 MB / 282.7 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.0001375/0.01232, allocations: 176.4 kB / 356.1 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.202e-05/0.01236, allocations: 15.95 kB / 356.1 MB, free: 7.695 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.0124, allocations: 12.47 kB / 356.1 MB, free: 7.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.0124, allocations: 0 / 356.1 MB, free: 7.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.0124, allocations: 4.125 kB / 356.1 MB, free: 7.676 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.01241, allocations: 7.984 kB / 356.1 MB, free: 7.668 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002253/0.01264, allocations: 164.5 kB / 356.3 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.01264, allocations: 4.062 kB / 356.3 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.01277, allocations: 19.92 kB / 356.3 MB, free: 7.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.01277, allocations: 8 kB / 356.3 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.01278, allocations: 0 / 356.3 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01278, allocations: 0 / 356.3 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.01279, allocations: 4 kB / 356.3 MB, free: 7.438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.01323, allocations: 287.1 kB / 356.6 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.01326, allocations: 11.94 kB / 356.6 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.01327, allocations: 3.938 kB / 356.6 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.782e-05/0.01337, allocations: 8 kB / 356.6 MB, free: 7.105 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.01342, allocations: 3.984 kB / 356.6 MB, free: 7.102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.01342, allocations: 4.031 kB / 356.6 MB, free: 7.098 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001337/0.01356, allocations: 171.1 kB / 356.8 MB, free: 6.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01356, allocations: 0 / 356.8 MB, free: 6.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002661/0.01382, allocations: 23.94 kB / 356.8 MB, free: 6.906 MB / 282.7 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.0001097/0.01393, allocations: 91.25 kB / 356.9 MB, free: 6.809 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005146/0.01445, allocations: 261.6 kB / 357.2 MB, free: 6.531 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.01445, allocations: 4 kB / 357.2 MB, free: 6.527 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.01456, allocations: 47.84 kB / 357.2 MB, free: 6.477 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.0149, allocations: 27.78 kB / 357.2 MB, free: 6.449 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005659/0.01547, allocations: 257.5 kB / 357.5 MB, free: 6.156 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.519e-05/0.01556, allocations: 85.31 kB / 357.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.257e-05/0.01563, allocations: 16.55 kB / 357.6 MB, free: 6.035 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.01567, allocations: 12.5 kB / 357.6 MB, free: 6.023 MB / 282.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01567, allocations: 0 / 357.6 MB, free: 6.023 MB / 282.7 MB Notification: Performance of Templates: time 0.004991/0.02066, allocations: 1.374 MB / 359 MB, free: 4.668 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.685118954977952]