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.0009546/0.0009546, allocations: 98.48 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 185.7 kB / 16.92 MB, free: 6.75 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.347/1.347, allocations: 205.4 MB / 223.1 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06081/0.06081, allocations: 14.16 MB / 285.6 MB, free: 7.043 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.000486/0.000486, allocations: 20.41 kB / 349.5 MB, free: 17.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08279, allocations: 51.12 MB / 400.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00187/0.0847, allocations: 1.509 MB / 402.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003056/0.08502, allocations: 151.5 kB / 402.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.522e-05/0.08512, allocations: 4 kB / 402.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.08524, allocations: 11.86 kB / 402.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.08538, allocations: 19.86 kB / 402.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.26e-05/0.08547, allocations: 35.91 kB / 402.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.08563, allocations: 119.7 kB / 402.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.08577, allocations: 53.27 kB / 402.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.641e-05/0.08583, allocations: 39.73 kB / 402.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.801e-05/0.08592, allocations: 39.77 kB / 402.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.08595, allocations: 4 kB / 402.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.391e-05/0.08597, allocations: 4 kB / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.325e-05/0.086, allocations: 15.92 kB / 402.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.466e-05/0.08606, allocations: 69.31 kB / 402.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.08617, allocations: 79.84 kB / 402.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.08618, allocations: 0 / 402.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.08619, allocations: 0 / 402.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.0862, allocations: 4 kB / 402.7 MB, free: 12.15 MB / 302.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.0005307/0.08674, allocations: 399.1 kB / 403.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.08678, allocations: 12.03 kB / 403.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.08683, allocations: 12.75 kB / 403.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.08706, allocations: 212.5 kB / 403.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.08709, allocations: 8.375 kB / 403.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.08712, allocations: 16.38 kB / 403.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002371/0.08737, allocations: 124.3 kB / 403.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.08739, allocations: 3.938 kB / 403.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.08741, allocations: 4 kB / 403.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.08742, allocations: 0 / 403.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.08763, allocations: 71.89 kB / 403.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.08825, allocations: 453.2 kB / 404 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.08864, allocations: 119.8 kB / 404.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.08877, allocations: 54.69 kB / 404.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.0888, allocations: 3.938 kB / 404.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.08883, allocations: 34.56 kB / 404.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.08883, allocations: 0 / 404.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003928/0.08923, allocations: 133.6 kB / 404.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.08929, allocations: 102.8 kB / 404.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.08943, allocations: 150.4 kB / 404.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.08945, allocations: 33.64 kB / 404.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.728e-05/0.08952, allocations: 119.9 kB / 404.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.08956, allocations: 23.81 kB / 404.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.08959, allocations: 17.72 kB / 404.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.0897, allocations: 322.8 kB / 405.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.264e-05/0.0898, allocations: 23.98 kB / 405.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.08992, allocations: 65.12 kB / 405.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.09013, allocations: 87.38 kB / 405.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.09014, allocations: 0 / 405.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003658/0.09051, allocations: 146.2 kB / 405.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.09054, allocations: 4 kB / 405.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.09056, allocations: 4 kB / 405.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001994/0.09076, allocations: 36.81 kB / 405.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.09087, allocations: 20.08 kB / 405.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.09194, allocations: 1.355 MB / 406.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.874e-05/0.09205, allocations: 15.95 kB / 406.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.09208, allocations: 8 kB / 406.9 MB, free: 7.555 MB / 302.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 0.0001008/0.09219, allocations: 117.8 kB / 407 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.09223, allocations: 7.906 kB / 407 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.283e-05/0.09226, allocations: 16.31 kB / 407 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.09227, allocations: 0 / 407 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.09228, allocations: 8.047 kB / 407 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.09229, allocations: 7.938 kB / 407 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.09251, allocations: 209.7 kB / 407.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.09253, allocations: 3.984 kB / 407.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.09265, allocations: 23.86 kB / 407.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.09266, allocations: 4 kB / 407.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.09268, allocations: 0 / 407.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.09269, allocations: 0 / 407.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.09269, allocations: 4 kB / 407.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003665/0.09306, allocations: 241 kB / 407.5 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-05/0.09313, allocations: 88.98 kB / 407.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.09315, allocations: 0 / 407.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.09327, allocations: 16.05 kB / 407.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.09333, allocations: 8.078 kB / 407.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.09334, allocations: 7.984 kB / 407.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.365e-05/0.09343, allocations: 123.9 kB / 407.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09344, allocations: 0 / 407.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.09371, allocations: 23.91 kB / 407.8 MB, free: 6.559 MB / 302.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.864e-05/0.09381, allocations: 95.19 kB / 407.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004544/0.09428, allocations: 206.6 kB / 408.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.09429, allocations: 0 / 408.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.0944, allocations: 31.92 kB / 408.1 MB, free: 6.207 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000387/0.0948, allocations: 28.34 kB / 408.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005623/0.09537, allocations: 333.5 kB / 408.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.09567, allocations: 0.7004 MB / 409.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.368e-05/0.09572, allocations: 15.44 kB / 409.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.09572, allocations: 0 / 409.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of Templates: time 0.003098/0.09883, allocations: 1.684 MB / 410.8 MB, free: 3.391 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches