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.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.001449/0.001449, allocations: 88.22 kB / 20.95 MB, free: 3.594 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.001507/0.001507, allocations: 169 kB / 24.26 MB, free: 292 kB / 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.8408/0.8408, allocations: 158.6 MB / 186.1 MB, free: 2.918 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.05113/0.05113, allocations: 10.65 MB / 249 MB, free: 4.527 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_symb_jac_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_symb_jac_PowerGrids.Controls.Test.TestLeadLag") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 320.2 MB, free: 39.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.232e-05/2.384e-05, allocations: 3.406 kB / 320.2 MB, free: 39.95 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.001936/0.00196, allocations: 1.811 MB / 322 MB, free: 38.12 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002953/0.002255, allocations: 147.5 kB / 322.2 MB, free: 37.98 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.318e-05/0.002339, allocations: 7.938 kB / 322.2 MB, free: 37.97 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.002454, allocations: 15.8 kB / 322.2 MB, free: 37.96 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.002585, allocations: 43.7 kB / 322.2 MB, free: 37.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.221e-05/0.002647, allocations: 31.97 kB / 322.3 MB, free: 37.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.002773, allocations: 135.6 kB / 322.4 MB, free: 37.75 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.002883, allocations: 31.52 kB / 322.4 MB, free: 37.72 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.464e-05/0.002948, allocations: 71.81 kB / 322.5 MB, free: 37.65 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.724e-05/0.003015, allocations: 35.89 kB / 322.5 MB, free: 37.62 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.003037, allocations: 8 kB / 322.5 MB, free: 37.61 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.237e-05/0.003049, allocations: 12 kB / 322.5 MB, free: 37.6 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.083e-05/0.00307, allocations: 31.84 kB / 322.6 MB, free: 37.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.853e-05/0.003098, allocations: 27.92 kB / 322.6 MB, free: 37.54 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000105/0.003203, allocations: 83.61 kB / 322.7 MB, free: 37.46 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.003205, allocations: 0 / 322.7 MB, free: 37.46 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.003207, allocations: 0 / 322.7 MB, free: 37.46 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.003211, allocations: 0 / 322.7 MB, free: 37.46 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.0003821/0.003593, allocations: 446.5 kB / 323.1 MB, free: 36.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.003626, allocations: 12.03 kB / 323.1 MB, free: 36.97 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.003675, allocations: 20.84 kB / 323.2 MB, free: 36.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.003855, allocations: 168.9 kB / 323.3 MB, free: 36.76 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.003867, allocations: 8.375 kB / 323.3 MB, free: 36.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.003891, allocations: 12.38 kB / 323.3 MB, free: 36.74 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.004045, allocations: 114.5 kB / 323.4 MB, free: 36.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.004053, allocations: 4.125 kB / 323.5 MB, free: 36.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.004066, allocations: 16.09 kB / 323.5 MB, free: 36.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.004074, allocations: 4 kB / 323.5 MB, free: 36.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.511e-05/0.004129, allocations: 23.98 kB / 323.5 MB, free: 36.56 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.004523, allocations: 429.6 kB / 323.9 MB, free: 36.1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.004791, allocations: 121.2 kB / 324 MB, free: 35.94 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.421e-05/0.004825, allocations: 47.11 kB / 324.1 MB, free: 35.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.004838, allocations: 0 / 324.1 MB, free: 35.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.326e-05/0.004851, allocations: 37.39 kB / 324.1 MB, free: 35.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.004852, allocations: 3.938 kB / 324.1 MB, free: 35.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001693/0.005022, allocations: 85.56 kB / 324.2 MB, free: 35.74 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.421e-05/0.005046, allocations: 115 kB / 324.3 MB, free: 35.61 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.633e-05/0.005122, allocations: 205.8 kB / 324.5 MB, free: 35.39 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.565e-06/0.00513, allocations: 25.7 kB / 324.5 MB, free: 35.36 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.173e-05/0.005171, allocations: 162.7 kB / 324.7 MB, free: 35.19 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.005185, allocations: 23.75 kB / 324.7 MB, free: 35.17 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.005215, allocations: 31.36 kB / 324.8 MB, free: 35.13 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.642e-05/0.005251, allocations: 0.4962 MB / 325.3 MB, free: 34.62 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.126e-05/0.005273, allocations: 4 kB / 325.3 MB, free: 34.62 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.258e-05/0.005315, allocations: 118.3 kB / 325.4 MB, free: 34.46 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.261e-05/0.005368, allocations: 62.72 kB / 325.4 MB, free: 34.39 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.00537, allocations: 256 / 325.4 MB, free: 34.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001612/0.005531, allocations: 121.1 kB / 325.6 MB, free: 34.26 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.005543, allocations: 5.875 kB / 325.6 MB, free: 34.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.005547, allocations: 0 / 325.6 MB, free: 34.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000185/0.005732, allocations: 43.73 kB / 325.6 MB, free: 34.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.865e-05/0.00578, allocations: 11.98 kB / 325.6 MB, free: 34.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005618/0.006342, allocations: 1.775 MB / 327.4 MB, free: 32.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.487e-05/0.006387, allocations: 19.88 kB / 327.4 MB, free: 32.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-06/0.006395, allocations: 7.938 kB / 327.4 MB, free: 32.27 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 5.294e-05/0.006448, allocations: 168.5 kB / 327.6 MB, free: 32.09 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.006468, allocations: 11.95 kB / 327.6 MB, free: 32.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.342e-05/0.006482, allocations: 8.469 kB / 327.6 MB, free: 32.08 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.006483, allocations: 4 kB / 327.6 MB, free: 32.07 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.006485, allocations: 0 / 327.6 MB, free: 32.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.006488, allocations: 3.984 kB / 327.6 MB, free: 32.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.604e-05/0.006584, allocations: 152.5 kB / 327.8 MB, free: 31.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.006586, allocations: 0 / 327.8 MB, free: 31.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.395e-05/0.00664, allocations: 15.98 kB / 327.8 MB, free: 31.87 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.006642, allocations: 4 kB / 327.8 MB, free: 31.87 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.006652, allocations: 4 kB / 327.8 MB, free: 31.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.006652, allocations: 0 / 327.8 MB, free: 31.86 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.006654, allocations: 3.938 kB / 327.8 MB, free: 31.86 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005494/0.007203, allocations: 1.562 MB / 329.3 MB, free: 30.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.035e-05/0.007214, allocations: 19.88 kB / 329.4 MB, free: 30.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.246e-06/0.007222, allocations: 8 kB / 329.4 MB, free: 30.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.946e-05/0.007272, allocations: 11.94 kB / 329.4 MB, free: 30.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.007304, allocations: 3.984 kB / 329.4 MB, free: 30.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.007309, allocations: 4 kB / 329.4 MB, free: 30.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.988e-05/0.007349, allocations: 157 kB / 329.5 MB, free: 29.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007349, allocations: 0 / 329.5 MB, free: 29.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002335/0.007582, allocations: 20 kB / 329.6 MB, free: 29.94 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.142e-05/0.007644, allocations: 99.19 kB / 329.7 MB, free: 29.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002443/0.007888, allocations: 241.5 kB / 329.9 MB, free: 29.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.007889, allocations: 0 / 329.9 MB, free: 29.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.916e-05/0.007918, allocations: 31.61 kB / 329.9 MB, free: 29.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.008138, allocations: 27.55 kB / 330 MB, free: 29.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003575/0.008496, allocations: 432.2 kB / 330.4 MB, free: 29.04 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.743e-05/0.008523, allocations: 63.53 kB / 330.4 MB, free: 28.96 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.978e-05/0.008563, allocations: 12.48 kB / 330.5 MB, free: 28.95 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.008594, allocations: 16.5 kB / 330.5 MB, free: 28.93 MB / 282.7 MB Notification: Performance of SimCode: time 8.72e-07/0.008594, allocations: 0 / 330.5 MB, free: 28.93 MB / 282.7 MB Notification: Performance of Templates: time 0.002847/0.01144, allocations: 1.473 MB / 331.9 MB, free: 27.48 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_symb_jac_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.7734961688984185]