Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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_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_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.005382/0.005382, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.001378/0.001378, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.257/1.257, allocations: 205.1 MB / 222.5 MB, free: 4.359 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0584/0.0584, allocations: 14.17 MB / 284.1 MB, free: 6.836 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.001361/0.001361, allocations: 68.28 kB / 398.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2173, allocations: 50.13 MB / 448.7 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002424/0.2198, allocations: 1.812 MB / 450.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002926/0.2201, allocations: 151.9 kB / 450.7 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.2202, allocations: 6.812 kB / 450.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.2203, allocations: 17.17 kB / 450.7 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.2205, allocations: 34.5 kB / 450.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.387e-05/0.2206, allocations: 37.36 kB / 450.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.2207, allocations: 132.2 kB / 450.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.2208, allocations: 62.75 kB / 451 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.809e-05/0.2209, allocations: 49.5 kB / 451 MB, free: 1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.02e-05/0.221, allocations: 51.3 kB / 451.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.221, allocations: 8.75 kB / 451.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.531e-05/0.221, allocations: 10.75 kB / 451.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.221, allocations: 26.66 kB / 451.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.923e-05/0.2211, allocations: 46.67 kB / 451.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.2212, allocations: 116.3 kB / 451.3 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2212, allocations: 0 / 451.3 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2212, allocations: 5.312 kB / 451.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.2212, allocations: 0 / 451.3 MB, free: 0.8086 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.0004218/0.2216, allocations: 420.7 kB / 451.7 MB, free: 400 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.2217, allocations: 8.25 kB / 451.7 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.2217, allocations: 17.09 kB / 451.7 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.2219, allocations: 217.1 kB / 451.9 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.222, allocations: 8.5 kB / 451.9 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.222, allocations: 11.25 kB / 451.9 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.2222, allocations: 118.7 kB / 452.1 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.2222, allocations: 0 / 452.1 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.2222, allocations: 5.375 kB / 452.1 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2222, allocations: 2.75 kB / 452.1 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/0.2224, allocations: 64.95 kB / 452.1 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005922/0.223, allocations: 448.3 kB / 452.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003477/0.2234, allocations: 127.9 kB / 452.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.583e-05/0.2235, allocations: 43.69 kB / 452.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.2235, allocations: 0 / 452.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.2235, allocations: 41.22 kB / 452.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 8.81e-07/0.2235, allocations: 0 / 452.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003352/0.2239, allocations: 127.6 kB / 452.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.2239, allocations: 103.8 kB / 453 MB, free: 15.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.224, allocations: 146.2 kB / 453.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.2241, allocations: 31.33 kB / 453.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.2241, allocations: 117.4 kB / 453.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.2242, allocations: 23.44 kB / 453.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.2242, allocations: 27.92 kB / 453.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.236e-05/0.2243, allocations: 317.6 kB / 453.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.994e-05/0.2244, allocations: 20.48 kB / 453.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.2245, allocations: 70.75 kB / 453.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.2247, allocations: 80.81 kB / 453.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2247, allocations: 1.281 kB / 453.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003213/0.225, allocations: 139.6 kB / 453.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.225, allocations: 5.906 kB / 454 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.225, allocations: 1.406 kB / 454 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001905/0.2252, allocations: 40.25 kB / 454 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.535e-05/0.2253, allocations: 28.3 kB / 454 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.2264, allocations: 1.453 MB / 455.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.838e-05/0.2265, allocations: 8.25 kB / 455.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.2265, allocations: 2.812 kB / 455.5 MB, free: 12.77 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 8.255e-05/0.2266, allocations: 123.6 kB / 455.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.2266, allocations: 9.188 kB / 455.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.2267, allocations: 19.67 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.2267, allocations: 1.25 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.2267, allocations: 5.156 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2267, allocations: 1.156 kB / 455.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000198/0.2269, allocations: 212.6 kB / 455.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2269, allocations: 1.188 kB / 455.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.227, allocations: 19.73 kB / 455.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.227, allocations: 2.031 kB / 455.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.2271, allocations: 5.031 kB / 455.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2271, allocations: 1.156 kB / 455.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2271, allocations: 1.125 kB / 455.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000308/0.2274, allocations: 230.2 kB / 456.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.2274, allocations: 91.56 kB / 456.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.2275, allocations: 13.3 kB / 456.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.576e-05/0.2276, allocations: 4.156 kB / 456.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.2276, allocations: 10.89 kB / 456.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.2276, allocations: 2.719 kB / 456.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.821e-05/0.2277, allocations: 124.4 kB / 456.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2277, allocations: 0 / 456.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.2279, allocations: 17.09 kB / 456.4 MB, free: 11.95 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.904e-05/0.228, allocations: 103.7 kB / 456.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004324/0.2285, allocations: 201 kB / 456.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2285, allocations: 0 / 456.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.343e-05/0.2286, allocations: 31.61 kB / 456.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.2289, allocations: 37.81 kB / 456.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.2294, allocations: 264.8 kB / 457 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.2296, allocations: 0.7027 MB / 457.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.471e-05/0.2297, allocations: 13.61 kB / 457.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.124e-05/0.2297, allocations: 11.56 kB / 457.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of SimCode: time 1.623e-06/0.2297, allocations: 0 / 457.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of Templates: time 0.003393/0.2331, allocations: 1.256 MB / 459 MB, free: 10.09 MB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches