Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.001157/0.001157, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001241/0.001241, allocations: 190.9 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.219/0.219, allocations: 16.78 MB / 306.9 MB, free: 14.89 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 59.91 kB / 373.3 MB, free: 1.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3231, allocations: 53.55 MB / 426.9 MB, free: 40.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003589/0.3267, allocations: 1.852 MB / 428.7 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004016/0.3271, allocations: 161.7 kB / 428.9 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.3272, allocations: 0 / 428.9 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.3274, allocations: 15.23 kB / 428.9 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.3276, allocations: 15.34 kB / 428.9 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001174/0.3278, allocations: 41.11 kB / 429 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001891/0.328, allocations: 124.4 kB / 429.1 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.3282, allocations: 57.86 kB / 429.1 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.66e-05/0.3282, allocations: 51.75 kB / 429.2 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.3283, allocations: 48.41 kB / 429.2 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.753e-05/0.3284, allocations: 11.16 kB / 429.2 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.22e-05/0.3284, allocations: 8.344 kB / 429.2 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.909e-05/0.3284, allocations: 22.33 kB / 429.3 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.131e-05/0.3285, allocations: 53.92 kB / 429.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.3287, allocations: 103 kB / 429.4 MB, free: 39.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.3287, allocations: 4 kB / 429.4 MB, free: 39.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3287, allocations: 0 / 429.4 MB, free: 39.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.3287, allocations: 3.938 kB / 429.4 MB, free: 39.45 MB / 350.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.0006104/0.3293, allocations: 429.5 kB / 429.9 MB, free: 39.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3294, allocations: 12.44 kB / 429.9 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.3294, allocations: 14.5 kB / 429.9 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.3297, allocations: 215.5 kB / 430.1 MB, free: 38.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.3297, allocations: 18.17 kB / 430.1 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.3298, allocations: 5.969 kB / 430.1 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.3301, allocations: 118.5 kB / 430.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3301, allocations: 0 / 430.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.3301, allocations: 6.875 kB / 430.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3301, allocations: 2.906 kB / 430.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.3304, allocations: 68.73 kB / 430.3 MB, free: 38.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000697/0.3311, allocations: 453.8 kB / 430.7 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.3316, allocations: 115.6 kB / 430.9 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.3318, allocations: 49.88 kB / 430.9 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.3318, allocations: 10.91 kB / 430.9 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.264e-05/0.3318, allocations: 34.56 kB / 431 MB, free: 38.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3318, allocations: 0 / 431 MB, free: 38.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005172/0.3324, allocations: 121.4 kB / 431.1 MB, free: 38.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.3324, allocations: 111.1 kB / 431.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.3326, allocations: 149.4 kB / 431.3 MB, free: 37.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.3326, allocations: 29.64 kB / 431.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.3327, allocations: 115.2 kB / 431.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.3327, allocations: 25.81 kB / 431.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.705e-05/0.3328, allocations: 23.5 kB / 431.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.52e-05/0.3328, allocations: 320.9 kB / 431.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.333, allocations: 30.03 kB / 431.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.3331, allocations: 57.98 kB / 431.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.3333, allocations: 79.39 kB / 432 MB, free: 37.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3334, allocations: 0 / 432 MB, free: 37.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000479/0.3339, allocations: 150.8 kB / 432.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3339, allocations: 2.719 kB / 432.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.3339, allocations: 2.719 kB / 432.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002798/0.3342, allocations: 40.53 kB / 432.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.3343, allocations: 14.73 kB / 432.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009902/0.3353, allocations: 1.447 MB / 433.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.3355, allocations: 12.91 kB / 433.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.3355, allocations: 6.719 kB / 433.7 MB, free: 35.63 MB / 350.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 9.722e-05/0.3356, allocations: 127.6 kB / 433.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.401e-05/0.3356, allocations: 9.562 kB / 433.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.597e-05/0.3357, allocations: 18.5 kB / 433.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.3357, allocations: 3.984 kB / 433.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3357, allocations: 2.906 kB / 433.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.3357, allocations: 0 / 433.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.336, allocations: 219.7 kB / 434 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.336, allocations: 2.875 kB / 434 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.3362, allocations: 14.84 kB / 434.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.3362, allocations: 6.781 kB / 434.1 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.3362, allocations: 7.938 kB / 434.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3363, allocations: 2.844 kB / 434.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3363, allocations: 3.234 kB / 434.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004006/0.3367, allocations: 229.6 kB / 434.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.3367, allocations: 89.77 kB / 434.4 MB, free: 34.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.3368, allocations: 12 kB / 434.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.3369, allocations: 2.75 kB / 434.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.531e-05/0.337, allocations: 9.016 kB / 434.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.337, allocations: 0 / 434.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.549e-05/0.3371, allocations: 119.2 kB / 434.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3371, allocations: 0 / 434.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004098/0.3375, allocations: 18.44 kB / 434.5 MB, free: 34.87 MB / 350.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.841e-05/0.3376, allocations: 101.3 kB / 434.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004572/0.3381, allocations: 200 kB / 434.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3381, allocations: 0 / 434.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.3383, allocations: 35.92 kB / 434.9 MB, free: 34.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005714/0.3388, allocations: 39.23 kB / 434.9 MB, free: 34.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006316/0.3395, allocations: 296.3 kB / 435.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.3397, allocations: 0.7071 MB / 435.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.29e-05/0.3398, allocations: 9.844 kB / 435.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.3398, allocations: 16.45 kB / 435.9 MB, free: 33.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3398, allocations: 0 / 435.9 MB, free: 33.67 MB / 350.1 MB Notification: Performance of Templates: time 0.004557/0.3444, allocations: 1.206 MB / 437.1 MB, free: 33.55 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches