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.001178/0.001178, allocations: 106.2 kB / 16.41 MB, free: 6.469 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.001135/0.001135, allocations: 192.2 kB / 17.35 MB, free: 5.711 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.525/1.525, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06262/0.06262, allocations: 14.17 MB / 284.7 MB, free: 13.85 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.002407/0.002407, allocations: 75.31 kB / 399.3 MB, free: 42.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1464, allocations: 50.14 MB / 449.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.005397/0.1518, allocations: 1.793 MB / 451.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006831/0.1525, allocations: 159.5 kB / 451.3 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.1528, allocations: 4 kB / 451.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.153, allocations: 15.8 kB / 451.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002825/0.1534, allocations: 31.77 kB / 451.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001659/0.1535, allocations: 35.91 kB / 451.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003288/0.1539, allocations: 131.6 kB / 451.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002415/0.1541, allocations: 61.31 kB / 451.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.1543, allocations: 51.77 kB / 451.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.1545, allocations: 51.7 kB / 451.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.886e-05/0.1545, allocations: 8 kB / 451.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.005e-05/0.1546, allocations: 12 kB / 451.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.744e-05/0.1546, allocations: 23.92 kB / 451.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.89e-05/0.1547, allocations: 43.73 kB / 451.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.155, allocations: 123.4 kB / 451.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.155, allocations: 0 / 451.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.155, allocations: 0 / 451.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.425e-06/0.1551, allocations: 4 kB / 451.9 MB, free: 9.004 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.0009113/0.156, allocations: 418.9 kB / 452.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.1561, allocations: 12.03 kB / 452.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.44e-05/0.1562, allocations: 12.84 kB / 452.4 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.1567, allocations: 230.7 kB / 452.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.1567, allocations: 8.375 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.1568, allocations: 12.36 kB / 452.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004048/0.1572, allocations: 128.2 kB / 452.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1572, allocations: 0 / 452.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.1572, allocations: 4 kB / 452.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.1573, allocations: 4 kB / 452.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003558/0.1576, allocations: 59.95 kB / 452.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.1587, allocations: 449.2 kB / 453.2 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006209/0.1593, allocations: 123.8 kB / 453.4 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.1595, allocations: 42.62 kB / 453.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.1596, allocations: 4 kB / 453.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.1597, allocations: 42.56 kB / 453.4 MB, free: 7.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.1597, allocations: 0 / 453.4 MB, free: 7.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0007056/0.1604, allocations: 125.4 kB / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.1605, allocations: 110.8 kB / 453.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.1607, allocations: 146.4 kB / 453.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.1608, allocations: 25.7 kB / 453.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.1609, allocations: 124.2 kB / 454 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.161, allocations: 27.73 kB / 454 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.283e-05/0.1611, allocations: 21.72 kB / 454 MB, free: 6.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1613, allocations: 326.8 kB / 454.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.1615, allocations: 19.98 kB / 454.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.1617, allocations: 65.12 kB / 454.4 MB, free: 6.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.1621, allocations: 79.34 kB / 454.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1621, allocations: 0 / 454.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006766/0.1628, allocations: 142.3 kB / 454.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.1628, allocations: 8 kB / 454.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1628, allocations: 0 / 454.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003583/0.1632, allocations: 36.83 kB / 454.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.1634, allocations: 16.3 kB / 454.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.1654, allocations: 1.457 MB / 456.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.1656, allocations: 19.95 kB / 456.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.1657, allocations: 4 kB / 456.2 MB, free: 4.297 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.0001704/0.1658, allocations: 126.5 kB / 456.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.1659, allocations: 11.89 kB / 456.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.862e-05/0.166, allocations: 20.23 kB / 456.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.166, allocations: 0 / 456.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.166, allocations: 4 kB / 456.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.166, allocations: 0 / 456.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.1664, allocations: 209.6 kB / 456.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1664, allocations: 0 / 456.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.1666, allocations: 15.98 kB / 456.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/0.1667, allocations: 4 kB / 456.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.1667, allocations: 7.938 kB / 456.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1667, allocations: 0 / 456.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1667, allocations: 0 / 456.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002253/0.169, allocations: 1.411 MB / 458 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.1691, allocations: 89 kB / 458.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.1691, allocations: 8 kB / 458.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.1693, allocations: 7.984 kB / 458.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.1694, allocations: 4.188 kB / 458.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.1694, allocations: 4 kB / 458.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001712/0.1696, allocations: 131.2 kB / 458.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1697, allocations: 0 / 458.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006813/0.1703, allocations: 24 kB / 458.2 MB, free: 2.004 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.0001646/0.1705, allocations: 95.25 kB / 458.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007883/0.1713, allocations: 198.5 kB / 458.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/0.1714, allocations: 8.188 kB / 458.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.1715, allocations: 27.92 kB / 458.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.1721, allocations: 24.92 kB / 458.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.1733, allocations: 371.3 kB / 459 MB, free: 1.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005401/0.1739, allocations: 0.7083 MB / 459.7 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.174, allocations: 16.48 kB / 459.7 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.512e-05/0.1741, allocations: 19.44 kB / 459.7 MB, free: 472 kB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1741, allocations: 0 / 459.7 MB, free: 472 kB / 334.1 MB Notification: Performance of Templates: time 0.007325/0.1815, allocations: 1.337 MB / 461 MB, free: 15.13 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