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.001388/0.001388, allocations: 78.64 kB / 19.18 MB, free: 2.527 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.001694/0.001694, allocations: 166.5 kB / 22.46 MB, free: 5.363 MB / 14.72 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 1.339/1.339, allocations: 158.6 MB / 184.2 MB, free: 6.41 MB / 174.1 MB " [Timeout remaining time 178] 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.06188/0.06188, allocations: 10.66 MB / 247.1 MB, free: 8.492 MB / 238.1 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 2.104e-06/2.104e-06, allocations: 0 / 371 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.813e-05/4.024e-05, allocations: 8.109 kB / 371 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003182/0.003223, allocations: 1.755 MB / 372.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004578/0.00368, allocations: 155.5 kB / 372.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.003803, allocations: 0 / 372.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.003943, allocations: 27.73 kB / 372.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.00413, allocations: 31.73 kB / 372.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000128/0.004258, allocations: 35.89 kB / 373 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002526/0.004511, allocations: 143.5 kB / 373.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.004694, allocations: 33.52 kB / 373.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.004837, allocations: 71.86 kB / 373.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.004959, allocations: 35.84 kB / 373.2 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.597e-05/0.005005, allocations: 8 kB / 373.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.484e-05/0.005029, allocations: 16 kB / 373.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.987e-05/0.005079, allocations: 27.91 kB / 373.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.976e-05/0.005139, allocations: 31.84 kB / 373.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.00537, allocations: 103.7 kB / 373.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.005376, allocations: 0 / 373.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.005376, allocations: 0 / 373.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.00539, allocations: 0 / 373.4 MB, free: 7.809 MB / 302.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.0007804/0.00617, allocations: 357.8 kB / 373.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.006218, allocations: 12.03 kB / 373.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.488e-05/0.006292, allocations: 20.78 kB / 373.8 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.0067, allocations: 154 kB / 374 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.00672, allocations: 8.375 kB / 374 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.073e-05/0.00676, allocations: 12.38 kB / 374 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.007065, allocations: 112.8 kB / 374.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.007077, allocations: 192 / 374.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.007101, allocations: 8.125 kB / 374.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.007109, allocations: 4 kB / 374.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002359/0.007345, allocations: 67.89 kB / 374.2 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007407/0.008086, allocations: 365.2 kB / 374.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000458/0.008544, allocations: 115.8 kB / 374.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.008668, allocations: 42.69 kB / 374.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.008689, allocations: 7.938 kB / 374.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.008728, allocations: 38.5 kB / 374.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.008729, allocations: 0 / 374.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004876/0.009217, allocations: 121.5 kB / 374.8 MB, free: 6.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/0.009303, allocations: 102.8 kB / 374.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.009492, allocations: 165.9 kB / 375.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.009518, allocations: 29.7 kB / 375.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.254e-05/0.00961, allocations: 112 kB / 375.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.985e-05/0.00964, allocations: 28 kB / 375.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.289e-05/0.009693, allocations: 29.7 kB / 375.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.00985, allocations: 318.8 kB / 375.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.009954, allocations: 27.98 kB / 375.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.01011, allocations: 112.5 kB / 375.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.01031, allocations: 79.34 kB / 375.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.01032, allocations: 4.031 kB / 375.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003902/0.01071, allocations: 134.6 kB / 376 MB, free: 4.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.01072, allocations: 11.28 kB / 376 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.01073, allocations: 4 kB / 376 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002164/0.01095, allocations: 36.77 kB / 376 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.01105, allocations: 20.08 kB / 376 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.01246, allocations: 1.323 MB / 377.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.01257, allocations: 11.98 kB / 377.4 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.01258, allocations: 4 kB / 377.4 MB, free: 3.484 MB / 302.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 0.000129/0.01271, allocations: 127.7 kB / 377.5 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.203e-05/0.01275, allocations: 8.016 kB / 377.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.883e-05/0.01279, allocations: 24.45 kB / 377.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.0128, allocations: 0 / 377.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.0128, allocations: 4 kB / 377.5 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.0128, allocations: 0 / 377.5 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/0.01305, allocations: 149.2 kB / 377.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.01305, allocations: 0 / 377.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.01318, allocations: 19.92 kB / 377.7 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.01318, allocations: 4 kB / 377.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.01319, allocations: 0 / 377.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.0132, allocations: 0 / 377.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.0132, allocations: 4 kB / 377.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004206/0.01362, allocations: 237.2 kB / 377.9 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.583e-05/0.01364, allocations: 11.92 kB / 377.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.01366, allocations: 7.938 kB / 378 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.01377, allocations: 7.984 kB / 378 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.01382, allocations: 7.938 kB / 378 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.01384, allocations: 11.98 kB / 378 MB, free: 2.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.01395, allocations: 115.2 kB / 378.1 MB, free: 2.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01395, allocations: 4.062 kB / 378.1 MB, free: 2.691 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.01422, allocations: 20 kB / 378.1 MB, free: 2.672 MB / 302.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 0.0001225/0.01434, allocations: 99.36 kB / 378.2 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005031/0.01484, allocations: 194.5 kB / 378.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.01484, allocations: 0 / 378.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.01496, allocations: 36.17 kB / 378.4 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.01531, allocations: 28.09 kB / 378.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005924/0.01591, allocations: 238.9 kB / 378.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.921e-05/0.016, allocations: 89.31 kB / 378.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.792e-05/0.01606, allocations: 12.55 kB / 378.8 MB, free: 1.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.01611, allocations: 16.5 kB / 378.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.01611, allocations: 0 / 378.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of Templates: time 0.004687/0.02079, allocations: 1.353 MB / 380.2 MB, free: 0.5586 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_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_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.219423320144415]