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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) 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=1000,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=1000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 116.2 kB / 16.42 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001746/0.001747, allocations: 183.9 kB / 17.34 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.1 MB / 223.2 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06579/0.06579, allocations: 14.17 MB / 284.8 MB, free: 13.86 MB / 238.1 MB 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.001475/0.001475, allocations: 73.84 kB / 399.3 MB, free: 42.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07221/0.0737, allocations: 50.13 MB / 449.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002777/0.07651, allocations: 1.802 MB / 451.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003794/0.07691, allocations: 151.5 kB / 451.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.673e-05/0.07701, allocations: 7.938 kB / 451.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.07716, allocations: 19.8 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.07732, allocations: 27.78 kB / 451.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.877e-05/0.07743, allocations: 39.89 kB / 451.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000208/0.07765, allocations: 127.7 kB / 451.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.07782, allocations: 57.25 kB / 451.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.27e-05/0.07789, allocations: 51.77 kB / 451.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.078, allocations: 51.77 kB / 451.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.881e-05/0.07803, allocations: 11.94 kB / 451.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.32e-05/0.07806, allocations: 12 kB / 451.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.865e-05/0.0781, allocations: 23.92 kB / 451.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.148e-05/0.07816, allocations: 47.73 kB / 451.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.07833, allocations: 115.4 kB / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.07834, allocations: 0 / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.07835, allocations: 0 / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.07836, allocations: 0 / 451.9 MB, free: 9.023 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.0006024/0.07897, allocations: 422.9 kB / 452.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.07901, allocations: 12.03 kB / 452.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.468e-05/0.07906, allocations: 16.83 kB / 452.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.07934, allocations: 226.8 kB / 452.6 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.07935, allocations: 8.312 kB / 452.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.687e-05/0.0794, allocations: 8.375 kB / 452.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.07963, allocations: 124.3 kB / 452.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.07965, allocations: 3.938 kB / 452.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.07966, allocations: 3.938 kB / 452.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.07968, allocations: 8 kB / 452.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.07986, allocations: 59.95 kB / 452.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005943/0.08047, allocations: 441.3 kB / 453.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003665/0.08084, allocations: 127.8 kB / 453.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.08096, allocations: 46.56 kB / 453.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.08099, allocations: 3.984 kB / 453.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.08103, allocations: 38.56 kB / 453.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.08103, allocations: 0 / 453.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003751/0.08141, allocations: 121.5 kB / 453.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.08148, allocations: 115 kB / 453.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.08163, allocations: 158.4 kB / 453.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.08166, allocations: 25.7 kB / 453.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.149e-05/0.08173, allocations: 112 kB / 454 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.08177, allocations: 27.75 kB / 454 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.08182, allocations: 25.7 kB / 454 MB, free: 6.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.08194, allocations: 322.8 kB / 454.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.098e-05/0.08204, allocations: 23.98 kB / 454.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.08215, allocations: 61.14 kB / 454.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.08234, allocations: 79.34 kB / 454.5 MB, free: 6.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.08236, allocations: 4.281 kB / 454.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003552/0.08272, allocations: 142.3 kB / 454.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.08274, allocations: 8 kB / 454.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.08275, allocations: 0 / 454.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001983/0.08295, allocations: 40.91 kB / 454.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.08307, allocations: 15.98 kB / 454.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.08419, allocations: 1.449 MB / 456.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.0843, allocations: 15.92 kB / 456.2 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.08432, allocations: 4 kB / 456.2 MB, free: 4.32 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 9.849e-05/0.08443, allocations: 126.5 kB / 456.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.08447, allocations: 11.89 kB / 456.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.0845, allocations: 20.25 kB / 456.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.08451, allocations: 8 kB / 456.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.08452, allocations: 0 / 456.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.591e-05/0.08457, allocations: 89.05 kB / 456.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.08459, allocations: 4 kB / 456.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.08473, allocations: 8.188 kB / 456.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/0.08478, allocations: 3.984 kB / 456.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003857/0.08518, allocations: 343.4 kB / 456.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004145/0.0856, allocations: 457.2 kB / 457.2 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.262e-05/0.08571, allocations: 32.14 kB / 457.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.166e-05/0.0858, allocations: 119.2 kB / 457.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of Backend: time 2.8e-07/0.0858, allocations: 0 / 457.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007621/0.08657, allocations: 249.4 kB / 457.6 MB, free: 2.809 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006173/0.0872, allocations: 0.6888 MB / 458.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Templates: time 0.003892/0.09111, allocations: 1.397 MB / 459.7 MB, free: 0.6836 MB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile (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) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches