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.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_symb_jac_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_symb_jac_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.001237/0.001237, allocations: 115.5 kB / 16.42 MB, free: 6.504 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.001259/0.001259, allocations: 185.5 kB / 17.35 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.517/1.517, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06352/0.06352, allocations: 14.17 MB / 284.7 MB, free: 13.87 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.002639/0.002639, allocations: 65.11 kB / 399.3 MB, free: 42.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1204, allocations: 50.14 MB / 449.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003478/0.1239, allocations: 1.796 MB / 451.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004488/0.1244, allocations: 159.5 kB / 451.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1246, allocations: 7.938 kB / 451.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.1247, allocations: 15.8 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.125, allocations: 31.78 kB / 451.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001432/0.1252, allocations: 35.89 kB / 451.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.1255, allocations: 131.6 kB / 451.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.1257, allocations: 61.3 kB / 451.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.1258, allocations: 43.8 kB / 451.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001762/0.126, allocations: 59.69 kB / 451.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.1261, allocations: 8 kB / 451.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.665e-05/0.1261, allocations: 12 kB / 451.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.272e-05/0.1261, allocations: 15.92 kB / 451.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.892e-05/0.1262, allocations: 51.73 kB / 451.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.1264, allocations: 111.4 kB / 451.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1264, allocations: 0 / 451.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1264, allocations: 4 kB / 451.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.1265, allocations: 4 kB / 451.9 MB, free: 9.02 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.0006501/0.1271, allocations: 422.9 kB / 452.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1272, allocations: 8.031 kB / 452.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.809e-05/0.1272, allocations: 24.77 kB / 452.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.1276, allocations: 218.8 kB / 452.6 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.1276, allocations: 8.375 kB / 452.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.1276, allocations: 12.38 kB / 452.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003659/0.128, allocations: 132.2 kB / 452.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.128, allocations: 0 / 452.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.1281, allocations: 0 / 452.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.1281, allocations: 4 kB / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/0.1284, allocations: 59.95 kB / 452.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009485/0.1294, allocations: 445.3 kB / 453.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005536/0.1299, allocations: 123.8 kB / 453.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.1301, allocations: 50.56 kB / 453.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.1302, allocations: 0 / 453.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.1302, allocations: 38.56 kB / 453.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.1302, allocations: 4 kB / 453.4 MB, free: 7.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005899/0.1308, allocations: 121.5 kB / 453.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.659e-05/0.1309, allocations: 114.7 kB / 453.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1312, allocations: 150.4 kB / 453.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.1312, allocations: 29.7 kB / 453.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.1313, allocations: 112.2 kB / 454 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.133e-05/0.1314, allocations: 35.73 kB / 454 MB, free: 6.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/0.1315, allocations: 25.7 kB / 454 MB, free: 6.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1317, allocations: 322.8 kB / 454.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.1318, allocations: 19.98 kB / 454.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.132, allocations: 65.14 kB / 454.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003096/0.1323, allocations: 79.34 kB / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1323, allocations: 0 / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005951/0.133, allocations: 146.5 kB / 454.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.133, allocations: 8 kB / 454.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.133, allocations: 0 / 454.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003169/0.1333, allocations: 32.83 kB / 454.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1335, allocations: 15.98 kB / 454.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.1354, allocations: 1.454 MB / 456.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.1355, allocations: 19.98 kB / 456.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.1356, allocations: 0 / 456.2 MB, free: 4.316 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.0001497/0.1357, allocations: 138.4 kB / 456.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.1358, allocations: 7.953 kB / 456.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.496e-05/0.1359, allocations: 20.25 kB / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1359, allocations: 0 / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1359, allocations: 4 kB / 456.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1359, allocations: 0 / 456.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003565/0.1363, allocations: 209.6 kB / 456.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1363, allocations: 0 / 456.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001891/0.1365, allocations: 15.98 kB / 456.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.1365, allocations: 0 / 456.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/0.1366, allocations: 7.938 kB / 456.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1366, allocations: 0 / 456.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1366, allocations: 0 / 456.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.1388, allocations: 1.408 MB / 458 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.139, allocations: 93.02 kB / 458.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.139, allocations: 4 kB / 458.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.1392, allocations: 7.984 kB / 458.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/0.1393, allocations: 12.11 kB / 458.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.1393, allocations: 4 kB / 458.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.1395, allocations: 127.1 kB / 458.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1395, allocations: 0 / 458.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000652/0.1401, allocations: 24 kB / 458.2 MB, free: 2.02 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 0.0001412/0.1403, allocations: 99.23 kB / 458.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007014/0.141, allocations: 194.5 kB / 458.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.141, allocations: 192 / 458.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.1412, allocations: 39.92 kB / 458.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.1418, allocations: 20.92 kB / 458.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009358/0.1427, allocations: 375.3 kB / 459 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.1432, allocations: 0.7121 MB / 459.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.1433, allocations: 8.562 kB / 459.7 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.74e-05/0.1433, allocations: 11.44 kB / 459.7 MB, free: 496 kB / 334.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1434, allocations: 0 / 459.7 MB, free: 496 kB / 334.1 MB Notification: Performance of Templates: time 0.006272/0.1496, allocations: 1.342 MB / 461 MB, free: 15.15 MB / 350.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile (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=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches