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.001071/0.001072, allocations: 111.7 kB / 17.09 MB, free: 5.961 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.001024/0.001024, allocations: 195.8 kB / 18.02 MB, free: 5.043 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.291/1.291, allocations: 205.1 MB / 223.9 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.06347/0.06347, allocations: 14.17 MB / 285.4 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.001393/0.001393, allocations: 75.92 kB / 399.9 MB, free: 42.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0675/0.06891, allocations: 50.12 MB / 450.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002486/0.07142, allocations: 1.816 MB / 451.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000319/0.07176, allocations: 151.5 kB / 452 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.594e-05/0.07185, allocations: 7.938 kB / 452 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.07197, allocations: 15.8 kB / 452 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.07211, allocations: 27.8 kB / 452.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.272e-05/0.07221, allocations: 39.88 kB / 452.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.07238, allocations: 127.7 kB / 452.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.07252, allocations: 61.25 kB / 452.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.401e-05/0.07258, allocations: 47.78 kB / 452.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.358e-05/0.07268, allocations: 55.75 kB / 452.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.07271, allocations: 11.94 kB / 452.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.07273, allocations: 12 kB / 452.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.07276, allocations: 15.92 kB / 452.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.461e-05/0.07281, allocations: 51.73 kB / 452.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.07294, allocations: 107.5 kB / 452.6 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.07295, allocations: 8 kB / 452.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.07296, allocations: 0 / 452.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.07297, allocations: 0 / 452.6 MB, free: 9.016 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.0005317/0.0735, allocations: 423 kB / 453 MB, free: 8.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.07354, allocations: 12.03 kB / 453 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.07358, allocations: 8.844 kB / 453 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.07383, allocations: 222.7 kB / 453.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.07385, allocations: 12.31 kB / 453.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.07389, allocations: 8.375 kB / 453.3 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.07411, allocations: 124.3 kB / 453.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.07413, allocations: 0 / 453.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.07415, allocations: 0 / 453.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.07416, allocations: 4 kB / 453.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.07435, allocations: 63.95 kB / 453.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005549/0.07491, allocations: 449.1 kB / 453.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.07527, allocations: 123.8 kB / 454 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.07538, allocations: 50.56 kB / 454.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.0754, allocations: 0 / 454.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.07543, allocations: 42.56 kB / 454.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.07544, allocations: 3.938 kB / 454.1 MB, free: 7.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000357/0.0758, allocations: 121.6 kB / 454.2 MB, free: 7.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.07587, allocations: 110.8 kB / 454.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.07599, allocations: 146.7 kB / 454.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.07602, allocations: 33.7 kB / 454.5 MB, free: 6.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.08e-05/0.07609, allocations: 115.9 kB / 454.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.07612, allocations: 19.72 kB / 454.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.07616, allocations: 25.7 kB / 454.7 MB, free: 6.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.07627, allocations: 318.8 kB / 455 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.073e-05/0.07637, allocations: 23.97 kB / 455 MB, free: 6.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.07649, allocations: 65.14 kB / 455.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.07667, allocations: 83.59 kB / 455.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.07668, allocations: 0 / 455.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000345/0.07703, allocations: 142.2 kB / 455.3 MB, free: 6.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.07705, allocations: 8 kB / 455.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-06/0.07706, allocations: 0 / 455.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000188/0.07725, allocations: 32.83 kB / 455.3 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.07737, allocations: 20.08 kB / 455.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.07845, allocations: 1.465 MB / 456.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.855e-05/0.07856, allocations: 7.906 kB / 456.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.07858, allocations: 0 / 456.8 MB, free: 4.328 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.148e-05/0.07868, allocations: 130.5 kB / 457 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.07872, allocations: 11.89 kB / 457 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.07876, allocations: 24.19 kB / 457 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.07876, allocations: 0 / 457 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.07877, allocations: 8.062 kB / 457 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.07878, allocations: 0 / 457 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/0.07899, allocations: 209.5 kB / 457.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.079, allocations: 0 / 457.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.07912, allocations: 15.98 kB / 457.2 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.07913, allocations: 0 / 457.2 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.07915, allocations: 7.938 kB / 457.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.07916, allocations: 0 / 457.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.07916, allocations: 4.062 kB / 457.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.08049, allocations: 1.403 MB / 458.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.08055, allocations: 85.05 kB / 458.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.08057, allocations: 4.188 kB / 458.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.08069, allocations: 11.98 kB / 458.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.08073, allocations: 7.875 kB / 458.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.08074, allocations: 12.08 kB / 458.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.584e-05/0.08083, allocations: 119.1 kB / 458.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08084, allocations: 0 / 458.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003518/0.0812, allocations: 31.84 kB / 458.9 MB, free: 2.027 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 7.96e-05/0.08128, allocations: 95.25 kB / 459 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004228/0.08171, allocations: 198.8 kB / 459.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.08173, allocations: 0 / 459.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.08184, allocations: 35.92 kB / 459.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.08216, allocations: 19.98 kB / 459.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005648/0.08273, allocations: 405.6 kB / 459.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.08298, allocations: 0.7002 MB / 460.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.969e-05/0.08304, allocations: 19.42 kB / 460.4 MB, free: 484 kB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.08305, allocations: 0 / 460.4 MB, free: 484 kB / 334.1 MB Notification: Performance of Templates: time 0.003104/0.08616, allocations: 1.741 MB / 462.1 MB, free: 14.73 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/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