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.00176/0.001761, allocations: 103.3 kB / 16.28 MB, free: 5.977 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.002141/0.002142, allocations: 189.4 kB / 17.2 MB, free: 5.602 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.54/1.54, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06275/0.06275, allocations: 14.18 MB / 284.6 MB, free: 13.93 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.001625/0.001625, allocations: 71.89 kB / 347.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2328, allocations: 50.12 MB / 398 MB, free: 48.56 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00299/0.2359, allocations: 1.806 MB / 399.8 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003437/0.2362, allocations: 154.6 kB / 399.9 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.2363, allocations: 2.625 kB / 399.9 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2365, allocations: 21.14 kB / 399.9 MB, free: 46.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.2366, allocations: 39.48 kB / 400 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.053e-05/0.2367, allocations: 28.97 kB / 400 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.2369, allocations: 133.7 kB / 400.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.237, allocations: 51.16 kB / 400.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.083e-05/0.2371, allocations: 44.77 kB / 400.2 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.632e-05/0.2372, allocations: 55.28 kB / 400.3 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/0.2372, allocations: 9.781 kB / 400.3 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.277e-05/0.2372, allocations: 10.06 kB / 400.3 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.567e-05/0.2373, allocations: 23.11 kB / 400.3 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.358e-05/0.2373, allocations: 57.64 kB / 400.4 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.2374, allocations: 99.98 kB / 400.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2375, allocations: 1.469 kB / 400.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2375, allocations: 3.938 kB / 400.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.2375, allocations: 0 / 400.5 MB, free: 46.61 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.0005255/0.238, allocations: 428.8 kB / 400.9 MB, free: 46.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.238, allocations: 9.406 kB / 400.9 MB, free: 46.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.462e-05/0.2381, allocations: 15.94 kB / 400.9 MB, free: 46.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.2383, allocations: 219.6 kB / 401.2 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.2383, allocations: 7.156 kB / 401.2 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.2384, allocations: 11.12 kB / 401.2 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.2386, allocations: 130.7 kB / 401.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2386, allocations: 3.938 kB / 401.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.2386, allocations: 1.406 kB / 401.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2386, allocations: 2.719 kB / 401.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.2388, allocations: 61.48 kB / 401.4 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005591/0.2394, allocations: 449.3 kB / 401.8 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003558/0.2398, allocations: 119.3 kB / 401.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.801e-05/0.2399, allocations: 54.95 kB / 402 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.2399, allocations: 1.531 kB / 402 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.252e-05/0.2399, allocations: 31.91 kB / 402 MB, free: 45.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.2399, allocations: 4 kB / 402 MB, free: 45.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003405/0.2403, allocations: 120.2 kB / 402.1 MB, free: 45.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.2403, allocations: 111.9 kB / 402.2 MB, free: 44.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.692e-05/0.2404, allocations: 147 kB / 402.4 MB, free: 44.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.2404, allocations: 29.7 kB / 402.4 MB, free: 44.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.2405, allocations: 118.2 kB / 402.5 MB, free: 44.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.2405, allocations: 35.81 kB / 402.6 MB, free: 44.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.791e-05/0.2406, allocations: 20.31 kB / 402.6 MB, free: 44.63 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.468e-05/0.2406, allocations: 320.9 kB / 402.9 MB, free: 44.31 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.221e-05/0.2407, allocations: 21.11 kB / 402.9 MB, free: 44.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.767e-05/0.2408, allocations: 66.03 kB / 403 MB, free: 44.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.241, allocations: 77.17 kB / 403.1 MB, free: 44.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.241, allocations: 1.375 kB / 403.1 MB, free: 44.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000316/0.2413, allocations: 146.9 kB / 403.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2413, allocations: 5.562 kB / 403.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2413, allocations: 1.281 kB / 403.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.2415, allocations: 41.03 kB / 403.2 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.508e-05/0.2416, allocations: 12.44 kB / 403.3 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008218/0.2425, allocations: 1.46 MB / 404.7 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.281e-05/0.2426, allocations: 9.359 kB / 404.7 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.2426, allocations: 6.594 kB / 404.7 MB, free: 42.55 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.463e-05/0.2427, allocations: 129 kB / 404.9 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/0.2427, allocations: 7.875 kB / 404.9 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.687e-05/0.2427, allocations: 24.2 kB / 404.9 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2427, allocations: 1.375 kB / 404.9 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.2428, allocations: 9.188 kB / 404.9 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2428, allocations: 0 / 404.9 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.2429, allocations: 214 kB / 405.1 MB, free: 42.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2429, allocations: 0 / 405.1 MB, free: 42.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.2431, allocations: 16.23 kB / 405.1 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.2431, allocations: 1.156 kB / 405.1 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.2431, allocations: 6.406 kB / 405.1 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2431, allocations: 1.219 kB / 405.1 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2431, allocations: 0 / 405.1 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.2442, allocations: 1.404 MB / 406.5 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.2442, allocations: 83.98 kB / 406.6 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.2442, allocations: 5.875 kB / 406.6 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.2444, allocations: 7.688 kB / 406.6 MB, free: 40.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.109e-05/0.2444, allocations: 15.64 kB / 406.6 MB, free: 40.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.2444, allocations: 2.188 kB / 406.7 MB, free: 40.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.061e-05/0.2445, allocations: 124 kB / 406.8 MB, free: 40.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2445, allocations: 0 / 406.8 MB, free: 40.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003466/0.2449, allocations: 33.47 kB / 406.8 MB, free: 40.53 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 9.468e-05/0.245, allocations: 93.59 kB / 406.9 MB, free: 40.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004532/0.2454, allocations: 200 kB / 407.1 MB, free: 40.28 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2454, allocations: 0 / 407.1 MB, free: 40.28 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.2455, allocations: 35.45 kB / 407.1 MB, free: 40.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.246, allocations: 18.61 kB / 407.1 MB, free: 40.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006172/0.2466, allocations: 377.2 kB / 407.5 MB, free: 39.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.2468, allocations: 0.7105 MB / 408.2 MB, free: 39.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.96e-05/0.2469, allocations: 14.05 kB / 408.2 MB, free: 39.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.2469, allocations: 13.06 kB / 408.3 MB, free: 39.2 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2469, allocations: 0 / 408.3 MB, free: 39.2 MB / 318.1 MB Notification: Performance of Templates: time 0.003806/0.2507, allocations: 1.321 MB / 409.6 MB, free: 38.53 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/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