Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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.000951/0.000951, allocations: 82.05 kB / 19.87 MB, free: 4.621 MB / 18.57 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.0009576/0.0009576, allocations: 170 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9365/0.9365, allocations: 158.6 MB / 185.2 MB, free: 2.812 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.03852/0.03852, allocations: 10.65 MB / 248.2 MB, free: 4.293 MB / 234.7 MB " [Timeout remaining time 180] 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.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_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_PowerGrids.Controls.Test.TestLeadLag") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 319.9 MB, free: 39.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.754e-05, allocations: 6.312 kB / 319.9 MB, free: 39.27 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002302/0.00233, allocations: 1.807 MB / 321.7 MB, free: 37.46 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002868/0.002617, allocations: 143.5 kB / 321.9 MB, free: 37.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.444e-05/0.002701, allocations: 7.938 kB / 321.9 MB, free: 37.31 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.002818, allocations: 23.8 kB / 321.9 MB, free: 37.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.002946, allocations: 31.72 kB / 321.9 MB, free: 37.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.035e-05/0.003007, allocations: 35.95 kB / 322 MB, free: 37.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.003111, allocations: 131.6 kB / 322.1 MB, free: 37.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.003217, allocations: 38.84 kB / 322.1 MB, free: 37.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.311e-05/0.00328, allocations: 67.81 kB / 322.2 MB, free: 36.99 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.003353, allocations: 35.89 kB / 322.2 MB, free: 36.95 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.003371, allocations: 19.94 kB / 322.3 MB, free: 36.93 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.155e-05/0.003383, allocations: 8 kB / 322.3 MB, free: 36.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.966e-05/0.003402, allocations: 23.91 kB / 322.3 MB, free: 36.9 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.66e-05/0.003429, allocations: 31.92 kB / 322.3 MB, free: 36.87 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.587e-05/0.003525, allocations: 79.59 kB / 322.4 MB, free: 36.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.003528, allocations: 0 / 322.4 MB, free: 36.79 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.003529, allocations: 0 / 322.4 MB, free: 36.79 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.828e-06/0.003532, allocations: 0 / 322.4 MB, free: 36.79 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.0003542/0.003887, allocations: 454.5 kB / 322.8 MB, free: 36.31 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.003918, allocations: 16.03 kB / 322.9 MB, free: 36.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.003951, allocations: 20.84 kB / 322.9 MB, free: 36.28 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.004067, allocations: 156.9 kB / 323 MB, free: 36.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.004078, allocations: 12.36 kB / 323 MB, free: 36.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.004098, allocations: 12.38 kB / 323.1 MB, free: 36.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.004219, allocations: 114.4 kB / 323.2 MB, free: 35.94 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.004226, allocations: 4.188 kB / 323.2 MB, free: 35.94 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.004234, allocations: 4.125 kB / 323.2 MB, free: 35.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.00424, allocations: 0 / 323.2 MB, free: 35.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.372e-05/0.004273, allocations: 29.69 kB / 323.2 MB, free: 35.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003186/0.004592, allocations: 406.2 kB / 323.6 MB, free: 35.47 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.004766, allocations: 122.1 kB / 323.7 MB, free: 35.32 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.928e-05/0.004795, allocations: 39.11 kB / 323.8 MB, free: 35.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.00481, allocations: 0 / 323.8 MB, free: 35.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.004824, allocations: 41.38 kB / 323.8 MB, free: 35.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 8.81e-07/0.004824, allocations: 4 kB / 323.8 MB, free: 35.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.000133/0.004957, allocations: 81.7 kB / 323.9 MB, free: 35.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.736e-05/0.004975, allocations: 102.8 kB / 324 MB, free: 35 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.892e-05/0.005034, allocations: 201.8 kB / 324.2 MB, free: 34.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.005041, allocations: 29.7 kB / 324.2 MB, free: 34.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.039e-05/0.005082, allocations: 166.7 kB / 324.4 MB, free: 34.58 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.323e-05/0.005095, allocations: 31.73 kB / 324.4 MB, free: 34.55 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.783e-05/0.005123, allocations: 23.38 kB / 324.4 MB, free: 34.52 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.889e-05/0.005162, allocations: 0.4962 MB / 324.9 MB, free: 34.01 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.406e-05/0.005176, allocations: 12.3 kB / 324.9 MB, free: 34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.444e-05/0.00521, allocations: 118.3 kB / 325.1 MB, free: 33.85 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.326e-05/0.005253, allocations: 54.69 kB / 325.1 MB, free: 33.78 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.005255, allocations: 0 / 325.1 MB, free: 33.78 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001356/0.005391, allocations: 109.2 kB / 325.2 MB, free: 33.66 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.005403, allocations: 16.06 kB / 325.2 MB, free: 33.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.005408, allocations: 0 / 325.2 MB, free: 33.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001489/0.005557, allocations: 31.66 kB / 325.3 MB, free: 33.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.376e-05/0.0056, allocations: 19.92 kB / 325.3 MB, free: 33.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004988/0.006099, allocations: 1.756 MB / 327 MB, free: 31.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.986e-05/0.006139, allocations: 19.88 kB / 327.1 MB, free: 31.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.006144, allocations: 4 kB / 327.1 MB, free: 31.7 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 4.645e-05/0.006191, allocations: 156.5 kB / 327.2 MB, free: 31.53 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.00621, allocations: 15.95 kB / 327.2 MB, free: 31.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.34e-05/0.006223, allocations: 16.45 kB / 327.2 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.006224, allocations: 0 / 327.2 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.006226, allocations: 4 kB / 327.2 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.006229, allocations: 0 / 327.2 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.759e-05/0.006317, allocations: 125.2 kB / 327.4 MB, free: 31.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.006319, allocations: 64 / 327.4 MB, free: 31.35 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.659e-05/0.006365, allocations: 23.92 kB / 327.4 MB, free: 31.33 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.006367, allocations: 0 / 327.4 MB, free: 31.33 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.006373, allocations: 7.938 kB / 327.4 MB, free: 31.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.006374, allocations: 4 kB / 327.4 MB, free: 31.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.006374, allocations: 3.938 kB / 327.4 MB, free: 31.31 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.979e-05/0.006474, allocations: 243.2 kB / 327.6 MB, free: 31.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.095e-05/0.006485, allocations: 19.88 kB / 327.7 MB, free: 31.03 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.536e-06/0.006493, allocations: 8.031 kB / 327.7 MB, free: 31.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.11e-05/0.006535, allocations: 0 / 327.7 MB, free: 31.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.667e-05/0.006561, allocations: 12.12 kB / 327.7 MB, free: 31.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.006564, allocations: 0 / 327.7 MB, free: 31.01 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.001e-05/0.006594, allocations: 153 kB / 327.8 MB, free: 30.86 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006594, allocations: 0 / 327.8 MB, free: 30.86 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001622/0.006757, allocations: 27.88 kB / 327.9 MB, free: 30.83 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 6.079e-05/0.006817, allocations: 95.23 kB / 328 MB, free: 30.73 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001898/0.007007, allocations: 233.5 kB / 328.2 MB, free: 30.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.007009, allocations: 4 kB / 328.2 MB, free: 30.48 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.339e-05/0.007033, allocations: 23.61 kB / 328.2 MB, free: 30.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.007238, allocations: 37.25 kB / 328.2 MB, free: 30.42 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002806/0.007519, allocations: 245.5 kB / 328.5 MB, free: 30.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.505e-05/0.007544, allocations: 64.03 kB / 328.5 MB, free: 30.05 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.76e-05/0.007581, allocations: 8.625 kB / 328.6 MB, free: 30.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.027e-05/0.007642, allocations: 86.19 kB / 328.6 MB, free: 29.96 MB / 282.7 MB Notification: Performance of SimCode: time 6.72e-07/0.007642, allocations: 4 kB / 328.6 MB, free: 29.95 MB / 282.7 MB Notification: Performance of Templates: time 0.002724/0.01037, allocations: 1.465 MB / 330.1 MB, free: 28.52 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.760452394839376]