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.001391/0.001391, allocations: 106.9 kB / 17.04 MB, free: 5.664 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.001703/0.001703, allocations: 194.9 kB / 17.97 MB, free: 5.059 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.317/1.317, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06336/0.06336, allocations: 14.18 MB / 285.4 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.001671/0.001671, allocations: 72.22 kB / 349.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2151, allocations: 50.11 MB / 399.4 MB, free: 48.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002838/0.218, allocations: 1.808 MB / 401.2 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003894/0.2184, allocations: 155.5 kB / 401.4 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.2185, allocations: 2.75 kB / 401.4 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.2187, allocations: 25.08 kB / 401.4 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.2189, allocations: 26.25 kB / 401.4 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.074e-05/0.219, allocations: 38.31 kB / 401.5 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.2191, allocations: 135.9 kB / 401.6 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.2193, allocations: 50.16 kB / 401.7 MB, free: 47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.803e-05/0.2194, allocations: 45.22 kB / 401.7 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.153e-05/0.2194, allocations: 55.23 kB / 401.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.2195, allocations: 10.12 kB / 401.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.803e-05/0.2195, allocations: 13.22 kB / 401.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.2195, allocations: 27.5 kB / 401.8 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.881e-05/0.2196, allocations: 53.27 kB / 401.9 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.2197, allocations: 101.3 kB / 401.9 MB, free: 46.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2198, allocations: 9.234 kB / 402 MB, free: 46.78 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2198, allocations: 0 / 402 MB, free: 46.78 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2198, allocations: 0 / 402 MB, free: 46.78 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.0005086/0.2203, allocations: 427.7 kB / 402.4 MB, free: 46.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2203, allocations: 13.03 kB / 402.4 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.071e-05/0.2204, allocations: 16.72 kB / 402.4 MB, free: 46.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.2206, allocations: 213.9 kB / 402.6 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.2206, allocations: 7.719 kB / 402.6 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.2207, allocations: 11.62 kB / 402.6 MB, free: 46.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002167/0.2209, allocations: 122.8 kB / 402.8 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.2209, allocations: 4 kB / 402.8 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.2209, allocations: 1.5 kB / 402.8 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.221, allocations: 1.375 kB / 402.8 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/0.2211, allocations: 69.3 kB / 402.8 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000562/0.2217, allocations: 453.2 kB / 403.3 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.2221, allocations: 119 kB / 403.4 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.608e-05/0.2222, allocations: 51.19 kB / 403.4 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.2222, allocations: 1.344 kB / 403.4 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.2222, allocations: 35.84 kB / 403.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.2222, allocations: 0 / 403.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003739/0.2226, allocations: 123.9 kB / 403.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.2227, allocations: 109.4 kB / 403.7 MB, free: 45.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.2228, allocations: 147.8 kB / 403.8 MB, free: 45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.2228, allocations: 29.7 kB / 403.9 MB, free: 44.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.974e-05/0.2229, allocations: 118.7 kB / 404 MB, free: 44.85 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.846e-05/0.2229, allocations: 26.36 kB / 404 MB, free: 44.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.2229, allocations: 20.56 kB / 404 MB, free: 44.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.559e-05/0.223, allocations: 321.7 kB / 404.3 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.733e-05/0.2231, allocations: 32.17 kB / 404.4 MB, free: 44.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.566e-05/0.2232, allocations: 66.56 kB / 404.4 MB, free: 44.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.2233, allocations: 81.25 kB / 404.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2233, allocations: 1.031 kB / 404.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003495/0.2237, allocations: 139.4 kB / 404.7 MB, free: 44.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2237, allocations: 6.281 kB / 404.7 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2237, allocations: 0.9375 kB / 404.7 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001988/0.2239, allocations: 45.62 kB / 404.7 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.2241, allocations: 14.92 kB / 404.7 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008542/0.2249, allocations: 1.452 MB / 406.2 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.225, allocations: 13.48 kB / 406.2 MB, free: 42.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.225, allocations: 2.188 kB / 406.2 MB, free: 42.72 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.585e-05/0.2251, allocations: 124 kB / 406.3 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/0.2252, allocations: 13.09 kB / 406.3 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.2252, allocations: 23.86 kB / 406.4 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2252, allocations: 1.219 kB / 406.4 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.2252, allocations: 1.125 kB / 406.4 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.2252, allocations: 1.188 kB / 406.4 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.2254, allocations: 215.9 kB / 406.6 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2254, allocations: 1.344 kB / 406.6 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.2255, allocations: 21.17 kB / 406.6 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2256, allocations: 1.031 kB / 406.6 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.2256, allocations: 5.312 kB / 406.6 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2256, allocations: 4.969 kB / 406.6 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2256, allocations: 1.188 kB / 406.6 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.2266, allocations: 1.396 MB / 408 MB, free: 40.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.2267, allocations: 84.33 kB / 408.1 MB, free: 40.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.2267, allocations: 10.25 kB / 408.1 MB, free: 40.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.2268, allocations: 7.672 kB / 408.1 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.2269, allocations: 3.219 kB / 408.1 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.2269, allocations: 2.219 kB / 408.1 MB, free: 40.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.401e-05/0.227, allocations: 123.9 kB / 408.2 MB, free: 40.72 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.227, allocations: 1 kB / 408.2 MB, free: 40.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.2273, allocations: 32.88 kB / 408.3 MB, free: 40.71 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 8.256e-05/0.2274, allocations: 96.47 kB / 408.4 MB, free: 40.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.2278, allocations: 197.1 kB / 408.5 MB, free: 40.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2278, allocations: 3.938 kB / 408.5 MB, free: 40.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.651e-05/0.2279, allocations: 38.83 kB / 408.6 MB, free: 40.44 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.2283, allocations: 19.17 kB / 408.6 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005098/0.2288, allocations: 380.7 kB / 409 MB, free: 40.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.2289, allocations: 0.7075 MB / 409.7 MB, free: 39.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.48e-05/0.229, allocations: 13.11 kB / 409.7 MB, free: 39.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.229, allocations: 12.22 kB / 409.7 MB, free: 39.37 MB / 318.1 MB Notification: Performance of SimCode: time 2.8e-07/0.229, allocations: 1.094 kB / 409.7 MB, free: 39.37 MB / 318.1 MB Notification: Performance of Templates: time 0.003439/0.2325, allocations: 1.311 MB / 411 MB, free: 38.71 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 -s cvode -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