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.001904/0.001904, allocations: 111.6 kB / 16.42 MB, free: 6.027 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.001261/0.001261, allocations: 187.4 kB / 17.35 MB, free: 5.617 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.636/1.636, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06276/0.06276, 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.001611/0.001611, allocations: 69.61 kB / 399.3 MB, free: 42.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1286, allocations: 50.13 MB / 449.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.004476/0.1331, allocations: 1.811 MB / 451.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006781/0.1338, allocations: 155.4 kB / 451.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.1341, allocations: 0 / 451.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.1343, allocations: 27.8 kB / 451.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00029/0.1346, allocations: 19.8 kB / 451.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.1348, allocations: 43.89 kB / 451.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.1351, allocations: 127.7 kB / 451.6 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.1353, allocations: 61.17 kB / 451.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.1354, allocations: 51.86 kB / 451.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1356, allocations: 47.77 kB / 451.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.1356, allocations: 11.94 kB / 451.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.722e-05/0.1357, allocations: 8 kB / 451.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.464e-05/0.1357, allocations: 27.91 kB / 451.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.375e-05/0.1358, allocations: 51.67 kB / 451.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002418/0.136, allocations: 107.6 kB / 451.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1361, allocations: 0 / 451.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1361, allocations: 0 / 451.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.1361, allocations: 0 / 451.9 MB, free: 9.035 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.0008324/0.1369, allocations: 430.9 kB / 452.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.137, allocations: 12.02 kB / 452.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.039e-05/0.1371, allocations: 12.84 kB / 452.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.1376, allocations: 210.7 kB / 452.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.1376, allocations: 12.31 kB / 452.6 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.1376, allocations: 8.375 kB / 452.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.1379, allocations: 128.3 kB / 452.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.138, allocations: 3.938 kB / 452.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.138, allocations: 7.984 kB / 452.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.138, allocations: 4 kB / 452.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002059/0.1382, allocations: 55.91 kB / 452.8 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000856/0.1391, allocations: 457.1 kB / 453.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.1395, allocations: 123.8 kB / 453.4 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.1397, allocations: 42.62 kB / 453.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.1397, allocations: 0 / 453.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.1397, allocations: 38.56 kB / 453.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1397, allocations: 0 / 453.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004475/0.1402, allocations: 129.5 kB / 453.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.276e-05/0.1403, allocations: 106.8 kB / 453.7 MB, free: 7.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.1405, allocations: 150.4 kB / 453.8 MB, free: 6.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.1405, allocations: 29.7 kB / 453.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1406, allocations: 111.9 kB / 454 MB, free: 6.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.1407, allocations: 19.72 kB / 454 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-05/0.1407, allocations: 29.95 kB / 454 MB, free: 6.688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.1409, allocations: 318.8 kB / 454.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-05/0.141, allocations: 27.98 kB / 454.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.1412, allocations: 61.08 kB / 454.4 MB, free: 6.262 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.1414, allocations: 75.44 kB / 454.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1414, allocations: 4 kB / 454.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004247/0.1418, allocations: 146.5 kB / 454.6 MB, free: 6.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1419, allocations: 4 kB / 454.6 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1419, allocations: 4 kB / 454.6 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/0.1421, allocations: 32.83 kB / 454.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.1423, allocations: 19.92 kB / 454.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.1439, allocations: 1.457 MB / 456.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.1441, allocations: 7.938 kB / 456.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.1441, allocations: 8 kB / 456.2 MB, free: 4.344 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.0001346/0.1442, allocations: 130.6 kB / 456.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.911e-05/0.1443, allocations: 7.906 kB / 456.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.1443, allocations: 24.19 kB / 456.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1443, allocations: 0 / 456.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.1444, allocations: 0 / 456.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1444, allocations: 4 kB / 456.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.1447, allocations: 209.7 kB / 456.5 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1447, allocations: 4 kB / 456.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.1448, allocations: 23.92 kB / 456.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1448, allocations: 0 / 456.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.1449, allocations: 3.938 kB / 456.6 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.738e-06/0.1449, allocations: 7.984 kB / 456.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1449, allocations: 3.938 kB / 456.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.1466, allocations: 1.404 MB / 458 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.407e-05/0.1467, allocations: 89.05 kB / 458.1 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.1467, allocations: 3.984 kB / 458.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.1468, allocations: 4 kB / 458.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/0.1468, allocations: 7.984 kB / 458.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.1469, allocations: 8 kB / 458.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.493e-05/0.147, allocations: 119.1 kB / 458.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.147, allocations: 0 / 458.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003844/0.1474, allocations: 31.91 kB / 458.2 MB, free: 2.043 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.0001404/0.1475, allocations: 103.2 kB / 458.3 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00056/0.1481, allocations: 190.7 kB / 458.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.1481, allocations: 0 / 458.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.1482, allocations: 36.17 kB / 458.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.1486, allocations: 28.98 kB / 458.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008204/0.1494, allocations: 371.7 kB / 458.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.1499, allocations: 0.7119 MB / 459.7 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.052e-05/0.15, allocations: 4.562 kB / 459.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.15, allocations: 15.44 kB / 459.7 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.15, allocations: 4 kB / 459.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of Templates: time 0.00474/0.1548, allocations: 1.333 MB / 461 MB, free: 15.18 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=50 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches