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.001319/0.001319, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.001598/0.001598, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 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.08393/0.08393, allocations: 16.92 MB / 329.4 MB, free: 2.422 MB / 254.1 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: PowerGrids requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003423/0.003423, allocations: 70.08 kB / 462.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.141, allocations: 57.74 MB / 0.5083 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.004014/0.1451, allocations: 1.766 MB / 0.51 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006205/0.1457, allocations: 147.5 kB / 0.5101 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.1459, allocations: 8 kB / 0.5101 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.146, allocations: 19.73 kB / 0.5101 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.1463, allocations: 31.78 kB / 0.5102 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.1464, allocations: 31.97 kB / 0.5102 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.1468, allocations: 135.6 kB / 0.5103 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.147, allocations: 41.45 kB / 0.5104 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.1471, allocations: 51.78 kB / 0.5104 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1473, allocations: 43.78 kB / 0.5105 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.1473, allocations: 12 kB / 0.5105 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.638e-05/0.1473, allocations: 12 kB / 0.5105 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.253e-05/0.1474, allocations: 23.84 kB / 0.5105 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.905e-05/0.1474, allocations: 43.73 kB / 0.5106 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.1477, allocations: 111.5 kB / 0.5107 GB, free: 3.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.1477, allocations: 4 kB / 0.5107 GB, free: 3.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1477, allocations: 0 / 0.5107 GB, free: 3.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.1477, allocations: 0 / 0.5107 GB, free: 3.184 MB / 382.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.0008536/0.1485, allocations: 349.7 kB / 0.511 GB, free: 2.809 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1486, allocations: 12.03 kB / 0.511 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.1486, allocations: 20.84 kB / 0.511 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.149, allocations: 150.9 kB / 0.5112 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.149, allocations: 8.375 kB / 0.5112 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.136e-05/0.149, allocations: 12.38 kB / 0.5112 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.1493, allocations: 118.7 kB / 0.5113 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1493, allocations: 4 kB / 0.5113 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.1494, allocations: 4 kB / 0.5113 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1494, allocations: 4 kB / 0.5113 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002119/0.1496, allocations: 67.89 kB / 0.5114 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007088/0.1503, allocations: 368.9 kB / 0.5117 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.1507, allocations: 115.8 kB / 0.5118 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1508, allocations: 46.61 kB / 0.5119 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.1509, allocations: 4 kB / 0.5119 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.151, allocations: 42.5 kB / 0.5119 GB, free: 1.727 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.151, allocations: 0 / 0.5119 GB, free: 1.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004346/0.1514, allocations: 121.4 kB / 0.512 GB, free: 1.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.72e-05/0.1515, allocations: 110.8 kB / 0.5122 GB, free: 1.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.1517, allocations: 147.9 kB / 0.5123 GB, free: 1.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.1518, allocations: 25.7 kB / 0.5123 GB, free: 1.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1519, allocations: 120.2 kB / 0.5124 GB, free: 1.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.193e-05/0.1519, allocations: 31.73 kB / 0.5125 GB, free: 1.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-05/0.152, allocations: 21.72 kB / 0.5125 GB, free: 1.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002388/0.1522, allocations: 322.8 kB / 0.5128 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.003e-05/0.1523, allocations: 19.98 kB / 0.5128 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.1525, allocations: 124.4 kB / 0.5129 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.1527, allocations: 83.64 kB / 0.513 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1527, allocations: 0 / 0.513 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003898/0.1531, allocations: 138.3 kB / 0.5131 GB, free: 376 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1531, allocations: 8 kB / 0.5131 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1531, allocations: 0 / 0.5131 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002344/0.1533, allocations: 40.92 kB / 0.5132 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1534, allocations: 15.94 kB / 0.5132 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2265/0.3799, allocations: 1.316 MB / 0.5145 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.3801, allocations: 13.16 kB / 0.5145 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.3801, allocations: 7.078 kB / 0.5145 GB, free: 15.41 MB / 382.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.57e-05/0.3802, allocations: 125.3 kB / 0.5146 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.746e-05/0.3802, allocations: 14.69 kB / 0.5146 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.3802, allocations: 11.78 kB / 0.5146 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3802, allocations: 2.594 kB / 0.5147 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.3802, allocations: 1.344 kB / 0.5147 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3802, allocations: 1.344 kB / 0.5147 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.3804, allocations: 147.1 kB / 0.5148 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3804, allocations: 0 / 0.5148 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.3805, allocations: 20.42 kB / 0.5148 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3805, allocations: 4 kB / 0.5148 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3805, allocations: 1.938 kB / 0.5148 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3805, allocations: 1.375 kB / 0.5148 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3805, allocations: 1.531 kB / 0.5148 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.3809, allocations: 235.4 kB / 0.515 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.227e-05/0.3809, allocations: 13.64 kB / 0.5151 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.3809, allocations: 2.797 kB / 0.5151 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.381, allocations: 7.453 kB / 0.5151 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.3811, allocations: 11.55 kB / 0.5151 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.3811, allocations: 5.188 kB / 0.5151 GB, free: 15.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.94e-05/0.3812, allocations: 122.8 kB / 0.5152 GB, free: 14.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3812, allocations: 0 / 0.5152 GB, free: 14.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.3814, allocations: 17.86 kB / 0.5152 GB, free: 14.94 MB / 382.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 9.82e-05/0.3815, allocations: 97.56 kB / 0.5153 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004987/0.382, allocations: 196 kB / 0.5155 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.382, allocations: 0 / 0.5155 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.3821, allocations: 34.53 kB / 0.5155 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.3825, allocations: 31.61 kB / 0.5156 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005803/0.3831, allocations: 260.3 kB / 0.5158 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.611e-05/0.3831, allocations: 89.11 kB / 0.5159 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.627e-05/0.3832, allocations: 11.38 kB / 0.5159 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.988e-05/0.3833, allocations: 12.88 kB / 0.5159 GB, free: 14.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3833, allocations: 0 / 0.5159 GB, free: 14.5 MB / 382.1 MB Notification: Performance of Templates: time 0.00439/0.3876, allocations: 1.422 MB / 0.5173 GB, free: 14.41 MB / 382.1 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=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 50] diffSimulationResults("PowerGrids_dev_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_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: 5.147182689979672]