Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.007981/0.007981, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.00187/0.00187, allocations: 193.5 kB / 16.67 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2275/0.2275, allocations: 16.78 MB / 307.3 MB, free: 14.82 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 62.09 kB / 428.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1204, allocations: 53.57 MB / 482.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002606/0.1231, allocations: 1.797 MB / 484 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003709/0.1235, allocations: 158.8 kB / 484.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.541e-05/0.1236, allocations: 2.75 kB / 484.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.1237, allocations: 17.17 kB / 484.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.1239, allocations: 35.91 kB / 484.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.646e-05/0.124, allocations: 32.03 kB / 484.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.1242, allocations: 133.2 kB / 484.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.1244, allocations: 53.88 kB / 484.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.704e-05/0.1244, allocations: 45.72 kB / 484.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.711e-05/0.1245, allocations: 52.08 kB / 484.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.1246, allocations: 9.625 kB / 484.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.063e-05/0.1246, allocations: 13.62 kB / 484.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.708e-05/0.1246, allocations: 22.67 kB / 484.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.82e-05/0.1247, allocations: 62.59 kB / 484.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.1248, allocations: 104.4 kB / 484.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1248, allocations: 0 / 484.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1248, allocations: 1.375 kB / 484.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1249, allocations: 0 / 484.8 MB, free: 7.188 MB / 350.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.000496/0.1254, allocations: 436.1 kB / 485.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1254, allocations: 13.56 kB / 485.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.346e-05/0.1255, allocations: 15.62 kB / 485.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.1257, allocations: 207.4 kB / 485.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.1257, allocations: 8.5 kB / 485.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.1257, allocations: 11.25 kB / 485.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002152/0.126, allocations: 126.6 kB / 485.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.126, allocations: 3.984 kB / 485.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.126, allocations: 5.375 kB / 485.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.126, allocations: 2.75 kB / 485.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.1262, allocations: 68.45 kB / 485.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005238/0.1267, allocations: 448.5 kB / 486.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.1271, allocations: 115.9 kB / 486.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.32e-05/0.1272, allocations: 50.7 kB / 486.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.1272, allocations: 5.281 kB / 486.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.1272, allocations: 33 kB / 486.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.1272, allocations: 0 / 486.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003513/0.1276, allocations: 127.1 kB / 486.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.1276, allocations: 108.3 kB / 486.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.1278, allocations: 148.5 kB / 486.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.1278, allocations: 30.8 kB / 486.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.1278, allocations: 114.2 kB / 486.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.1278, allocations: 18.77 kB / 486.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.1279, allocations: 27.97 kB / 486.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.781e-05/0.1279, allocations: 325.5 kB / 487.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.088e-05/0.128, allocations: 24.64 kB / 487.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.872e-05/0.1281, allocations: 66.94 kB / 487.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.1283, allocations: 82.11 kB / 487.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1283, allocations: 0 / 487.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003261/0.1286, allocations: 140.5 kB / 487.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.1287, allocations: 4.469 kB / 487.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1287, allocations: 1.094 kB / 487.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002271/0.1289, allocations: 41.27 kB / 487.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.911e-05/0.129, allocations: 15.16 kB / 487.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008661/0.1299, allocations: 1.46 MB / 489 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.369e-05/0.13, allocations: 13.33 kB / 489 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.13, allocations: 3.156 kB / 489 MB, free: 3.121 MB / 350.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 7.317e-05/0.1301, allocations: 123.8 kB / 489.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.502e-05/0.1301, allocations: 8.438 kB / 489.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.1302, allocations: 23.73 kB / 489.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1302, allocations: 1.375 kB / 489.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.1302, allocations: 1.406 kB / 489.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1302, allocations: 1.281 kB / 489.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.1304, allocations: 212.9 kB / 489.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1304, allocations: 0 / 489.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.1305, allocations: 16.77 kB / 489.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.1305, allocations: 1.094 kB / 489.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1305, allocations: 9.562 kB / 489.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1305, allocations: 1.5 kB / 489.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1305, allocations: 8.969 kB / 489.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.1308, allocations: 226.2 kB / 489.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.951e-05/0.1309, allocations: 95.7 kB / 489.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.1309, allocations: 5.281 kB / 489.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.131, allocations: 7.703 kB / 489.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.131, allocations: 2.969 kB / 489.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.131, allocations: 10.64 kB / 489.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.592e-05/0.1311, allocations: 114.4 kB / 489.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1311, allocations: 1.188 kB / 489.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002586/0.1314, allocations: 15.59 kB / 489.9 MB, free: 2.312 MB / 350.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 8.433e-05/0.1315, allocations: 109 kB / 490 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004464/0.1319, allocations: 192.7 kB / 490.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1319, allocations: 1.625 kB / 490.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.404e-05/0.132, allocations: 29.39 kB / 490.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.1324, allocations: 27.83 kB / 490.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004869/0.1329, allocations: 267.4 kB / 490.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.133, allocations: 0.7002 MB / 491.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.908e-05/0.1331, allocations: 12.55 kB / 491.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.22e-05/0.1331, allocations: 15.44 kB / 491.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1331, allocations: 0 / 491.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of Templates: time 0.003786/0.1369, allocations: 1.273 MB / 492.5 MB, free: 15.73 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches