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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 117.6 kB / 17.13 MB, free: 5.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 197.2 kB / 20.08 MB, free: 3.008 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.386/1.386, allocations: 207.6 MB / 230.5 MB, free: 4.07 MB / 174.1 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.06887/0.06887, allocations: 14.41 MB / 296.7 MB, free: 1.914 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 68.47 kB / 418.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2157, allocations: 52.88 MB / 471.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003047/0.2188, allocations: 1.792 MB / 473.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003664/0.2191, allocations: 143.9 kB / 473.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.032e-05/0.2192, allocations: 2.562 kB / 473.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.2193, allocations: 25.2 kB / 473.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.2195, allocations: 35.98 kB / 473.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.035e-05/0.2196, allocations: 39.92 kB / 473.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.2198, allocations: 129.1 kB / 473.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.2199, allocations: 41.02 kB / 473.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.399e-05/0.22, allocations: 52.77 kB / 473.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.2201, allocations: 51.77 kB / 473.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.428e-05/0.2201, allocations: 9.375 kB / 473.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.225e-05/0.2201, allocations: 10.03 kB / 473.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.674e-05/0.2201, allocations: 27.02 kB / 473.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.618e-05/0.2202, allocations: 45.55 kB / 473.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.2204, allocations: 118.8 kB / 474.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2204, allocations: 7.875 kB / 474.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2204, allocations: 1.188 kB / 474.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.2204, allocations: 0 / 474.1 MB, free: 10.94 MB / 334.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.0006418/0.221, allocations: 421 kB / 474.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2211, allocations: 9.312 kB / 474.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.2211, allocations: 17.31 kB / 474.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.2214, allocations: 228.7 kB / 474.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2214, allocations: 12.31 kB / 474.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.2214, allocations: 8.375 kB / 474.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.2217, allocations: 124.3 kB / 474.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2217, allocations: 0 / 474.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.2217, allocations: 4 kB / 474.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2218, allocations: 4 kB / 474.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.222, allocations: 63.89 kB / 474.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006686/0.2226, allocations: 445.3 kB / 475.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.223, allocations: 119.8 kB / 475.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.2232, allocations: 42.69 kB / 475.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.2232, allocations: 4 kB / 475.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.2232, allocations: 42.5 kB / 475.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.2232, allocations: 0 / 475.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004121/0.2236, allocations: 125.5 kB / 475.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.688e-05/0.2237, allocations: 102.8 kB / 475.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.2238, allocations: 154.7 kB / 476 MB, free: 8.855 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.2239, allocations: 25.7 kB / 476 MB, free: 8.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.06e-05/0.224, allocations: 123.9 kB / 476.1 MB, free: 8.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.224, allocations: 23.75 kB / 476.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.224, allocations: 25.7 kB / 476.1 MB, free: 8.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2242, allocations: 318.8 kB / 476.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.2243, allocations: 31.91 kB / 476.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.2244, allocations: 61.14 kB / 476.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.2246, allocations: 79.34 kB / 476.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2246, allocations: 4.031 kB / 476.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004035/0.225, allocations: 134.3 kB / 476.8 MB, free: 7.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.225, allocations: 11.94 kB / 476.8 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.225, allocations: 0 / 476.8 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/0.2252, allocations: 40.86 kB / 476.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.2253, allocations: 15.98 kB / 476.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.2267, allocations: 1.457 MB / 478.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.2268, allocations: 7.953 kB / 478.3 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.2268, allocations: 4.312 kB / 478.3 MB, free: 6.301 MB / 334.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.0001097/0.2269, allocations: 117.8 kB / 478.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.902e-05/0.2269, allocations: 11.94 kB / 478.4 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.227, allocations: 20.25 kB / 478.4 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.227, allocations: 4.25 kB / 478.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.227, allocations: 8 kB / 478.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.227, allocations: 3.938 kB / 478.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.2272, allocations: 209.5 kB / 478.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.2272, allocations: 0 / 478.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.2274, allocations: 19.92 kB / 478.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2274, allocations: 0 / 478.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.2274, allocations: 7.938 kB / 478.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2274, allocations: 0 / 478.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2274, allocations: 0 / 478.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.2278, allocations: 241.1 kB / 478.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/0.2279, allocations: 89.08 kB / 479 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.2279, allocations: 7.938 kB / 479 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.228, allocations: 4 kB / 479 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.113e-05/0.228, allocations: 15.98 kB / 479 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-06/0.228, allocations: 4 kB / 479 MB, free: 5.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.86e-05/0.2281, allocations: 119.9 kB / 479.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2281, allocations: 0 / 479.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.2284, allocations: 23.95 kB / 479.2 MB, free: 5.312 MB / 334.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.887e-05/0.2285, allocations: 95.19 kB / 479.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004931/0.229, allocations: 198.6 kB / 479.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.229, allocations: 4 kB / 479.5 MB, free: 5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.2291, allocations: 27.92 kB / 479.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.2294, allocations: 31.02 kB / 479.5 MB, free: 4.945 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005706/0.23, allocations: 282.7 kB / 479.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.2304, allocations: 0.7088 MB / 480.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.405e-05/0.2304, allocations: 15.42 kB / 480.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2304, allocations: 0 / 480.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of Templates: time 0.003613/0.234, allocations: 1.731 MB / 482.3 MB, free: 2.145 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 6.964937727199867]