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.0009741/0.0009742, allocations: 104.1 kB / 16.53 MB, free: 6.277 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.0009513/0.0009513, allocations: 193.1 kB / 17.45 MB, free: 5.895 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.298/1.298, allocations: 205.1 MB / 223.3 MB, free: 12.38 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06229/0.06229, allocations: 14.16 MB / 284.8 MB, free: 14.14 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.001487/0.001487, allocations: 67.91 kB / 347.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2188, allocations: 50.12 MB / 397.9 MB, free: 48.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003027/0.2218, allocations: 1.861 MB / 399.7 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000373/0.2222, allocations: 151.3 kB / 399.9 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.2224, allocations: 7.562 kB / 399.9 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.2226, allocations: 17.02 kB / 399.9 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.2227, allocations: 19.08 kB / 399.9 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.092e-05/0.2228, allocations: 37.38 kB / 400 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.223, allocations: 115.8 kB / 400.1 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.2232, allocations: 60.64 kB / 400.1 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.536e-05/0.2233, allocations: 40.92 kB / 400.2 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.2234, allocations: 43.23 kB / 400.2 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.742e-05/0.2234, allocations: 5.438 kB / 400.2 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.23e-05/0.2234, allocations: 5.438 kB / 400.2 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.809e-05/0.2235, allocations: 27.23 kB / 400.2 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.015e-05/0.2235, allocations: 46.08 kB / 400.3 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.874e-05/0.2236, allocations: 75.03 kB / 400.4 MB, free: 46.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2236, allocations: 0 / 400.4 MB, free: 46.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2236, allocations: 1.125 kB / 400.4 MB, free: 46.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.2236, allocations: 0 / 400.4 MB, free: 46.63 MB / 318.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.000546/0.2242, allocations: 429.2 kB / 400.8 MB, free: 46.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2242, allocations: 8.594 kB / 400.8 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.608e-05/0.2243, allocations: 20.53 kB / 400.8 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.2245, allocations: 218.8 kB / 401 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.2245, allocations: 9.031 kB / 401 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.889e-05/0.2246, allocations: 10.12 kB / 401 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.2248, allocations: 123.6 kB / 401.2 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.2248, allocations: 0 / 401.2 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.2248, allocations: 5.25 kB / 401.2 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-06/0.2249, allocations: 10.62 kB / 401.2 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.225, allocations: 57.25 kB / 401.2 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00058/0.2256, allocations: 457.8 kB / 401.7 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003651/0.226, allocations: 119 kB / 401.8 MB, free: 45.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.2261, allocations: 47.22 kB / 401.8 MB, free: 45.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2261, allocations: 0.7812 kB / 401.8 MB, free: 45.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.2262, allocations: 41.3 kB / 401.9 MB, free: 45.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.194e-06/0.2262, allocations: 0 / 401.9 MB, free: 45.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003915/0.2266, allocations: 131.5 kB / 402 MB, free: 45.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.2266, allocations: 104.2 kB / 402.1 MB, free: 44.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.2267, allocations: 150 kB / 402.3 MB, free: 44.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.2267, allocations: 30.92 kB / 402.3 MB, free: 44.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.908e-05/0.2268, allocations: 118.2 kB / 402.4 MB, free: 44.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.2268, allocations: 22.27 kB / 402.4 MB, free: 44.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.2269, allocations: 25.38 kB / 402.5 MB, free: 44.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.89e-05/0.2269, allocations: 325.3 kB / 402.8 MB, free: 44.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.768e-05/0.227, allocations: 24.27 kB / 402.8 MB, free: 44.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.4e-05/0.2271, allocations: 57.86 kB / 402.9 MB, free: 44.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.2273, allocations: 85.94 kB / 402.9 MB, free: 44.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2273, allocations: 1 kB / 402.9 MB, free: 44.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003571/0.2277, allocations: 139.4 kB / 403.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2277, allocations: 5.219 kB / 403.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2277, allocations: 5.281 kB / 403.1 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002118/0.2279, allocations: 37.2 kB / 403.1 MB, free: 44.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.228, allocations: 14.89 kB / 403.1 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008358/0.2289, allocations: 1.355 MB / 404.5 MB, free: 42.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.229, allocations: 9.25 kB / 404.5 MB, free: 42.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.229, allocations: 2.719 kB / 404.5 MB, free: 42.66 MB / 318.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.492e-05/0.2291, allocations: 136.6 kB / 404.6 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.2291, allocations: 9.469 kB / 404.6 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.654e-05/0.2292, allocations: 14.5 kB / 404.7 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2292, allocations: 2.469 kB / 404.7 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.2292, allocations: 1.25 kB / 404.7 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2292, allocations: 3.938 kB / 404.7 MB, free: 42.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.2294, allocations: 213.7 kB / 404.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.2294, allocations: 4.062 kB / 404.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.2295, allocations: 16.67 kB / 404.9 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.2295, allocations: 1.562 kB / 404.9 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.2295, allocations: 6.156 kB / 404.9 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2296, allocations: 4 kB / 404.9 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2296, allocations: 1.062 kB / 404.9 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.2306, allocations: 1.245 MB / 406.2 MB, free: 41.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.679e-05/0.2307, allocations: 89.11 kB / 406.2 MB, free: 40.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.2307, allocations: 5.281 kB / 406.2 MB, free: 40.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.2308, allocations: 10.73 kB / 406.3 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.2309, allocations: 11.94 kB / 406.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.2309, allocations: 9.797 kB / 406.3 MB, free: 40.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.246e-05/0.2309, allocations: 116.1 kB / 406.4 MB, free: 40.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2309, allocations: 0 / 406.4 MB, free: 40.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003505/0.2313, allocations: 29.75 kB / 406.4 MB, free: 40.8 MB / 318.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.082e-05/0.2314, allocations: 99.77 kB / 406.5 MB, free: 40.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004023/0.2318, allocations: 196.7 kB / 406.7 MB, free: 40.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2318, allocations: 0 / 406.7 MB, free: 40.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.763e-05/0.2319, allocations: 34.86 kB / 406.7 MB, free: 40.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.2323, allocations: 27.14 kB / 406.8 MB, free: 40.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005579/0.2329, allocations: 436.3 kB / 407.2 MB, free: 40.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.233, allocations: 0.7071 MB / 407.9 MB, free: 39.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.2331, allocations: 16.95 kB / 407.9 MB, free: 39.4 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2331, allocations: 0 / 407.9 MB, free: 39.4 MB / 318.1 MB Notification: Performance of Templates: time 0.003223/0.2363, allocations: 1.715 MB / 409.6 MB, free: 38.51 MB / 318.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","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches