Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.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.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag") translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008872/0.0008872, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006685/0.006685, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.247/1.247, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1674/0.1674, allocations: 16.77 MB / 308.2 MB, free: 15.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002684, allocations: 12 kB / 375.6 MB, free: 1.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2193, allocations: 54.56 MB / 430.1 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.001452/0.2208, allocations: 1.521 MB / 431.7 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003147/0.2211, allocations: 169.5 kB / 431.8 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.129e-05/0.2212, allocations: 2.969 kB / 431.8 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.2214, allocations: 20.3 kB / 431.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.2215, allocations: 18.27 kB / 431.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.507e-05/0.2216, allocations: 46.92 kB / 431.9 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000131/0.2217, allocations: 108.4 kB / 432 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2218, allocations: 45.97 kB / 432.1 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.164e-05/0.2219, allocations: 40.42 kB / 432.1 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.377e-05/0.222, allocations: 36.22 kB / 432.1 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.222, allocations: 0 / 432.1 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.153e-05/0.222, allocations: 2.781 kB / 432.1 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.774e-05/0.222, allocations: 17.86 kB / 432.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.427e-05/0.2221, allocations: 71.97 kB / 432.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.288e-05/0.2222, allocations: 94.12 kB / 432.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.2222, allocations: 0.625 kB / 432.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2222, allocations: 0 / 432.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.2222, allocations: 0 / 432.3 MB, free: 39.52 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003425/0.2225, allocations: 398.8 kB / 432.7 MB, free: 39.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.739e-05/0.2226, allocations: 12.66 kB / 432.7 MB, free: 39.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.2226, allocations: 14.34 kB / 432.7 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.2228, allocations: 225.9 kB / 433 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2228, allocations: 3.906 kB / 433 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.2228, allocations: 11.59 kB / 433 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.2231, allocations: 139.2 kB / 433.1 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2231, allocations: 3.938 kB / 433.1 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.2231, allocations: 5.312 kB / 433.1 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.2231, allocations: 2.938 kB / 433.1 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.2233, allocations: 67.95 kB / 433.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004971/0.2238, allocations: 0.6024 MB / 433.8 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.224, allocations: 114.1 kB / 433.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.25e-05/0.2241, allocations: 43.14 kB / 433.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.2242, allocations: 8.547 kB / 434 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.444e-05/0.2242, allocations: 42.25 kB / 434 MB, free: 38.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.2242, allocations: 0 / 434 MB, free: 38.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003444/0.2245, allocations: 120 kB / 434.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.489e-05/0.2246, allocations: 113.7 kB / 434.2 MB, free: 37.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.381e-05/0.2247, allocations: 149.4 kB / 434.4 MB, free: 37.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.859e-06/0.2247, allocations: 32.64 kB / 434.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.028e-05/0.2247, allocations: 117.1 kB / 434.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.2247, allocations: 28.08 kB / 434.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.36e-05/0.2248, allocations: 18.45 kB / 434.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.458e-05/0.2248, allocations: 327.1 kB / 434.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.302e-05/0.2249, allocations: 25.66 kB / 434.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.609e-05/0.225, allocations: 71.61 kB / 435 MB, free: 37.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.2252, allocations: 106.9 kB / 435.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2252, allocations: 2.781 kB / 435.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002185/0.2254, allocations: 119.2 kB / 435.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.2254, allocations: 5.094 kB / 435.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2254, allocations: 6.156 kB / 435.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.2254, allocations: 2.625 kB / 435.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.2256, allocations: 27.42 kB / 435.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.2256, allocations: 3.984 kB / 435.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.538e-05/0.2257, allocations: 17.3 kB / 435.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.2257, allocations: 5.844 kB / 435.3 MB, free: 37.13 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (derivativeLag.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 5.864e-05/0.2257, allocations: 127.4 kB / 435.4 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.2258, allocations: 13.69 kB / 435.4 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.714e-05/0.2258, allocations: 14.47 kB / 435.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2258, allocations: 0 / 435.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2258, allocations: 2.938 kB / 435.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2258, allocations: 0 / 435.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.226, allocations: 210.8 kB / 435.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.226, allocations: 7.938 kB / 435.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.2261, allocations: 17.03 kB / 435.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2261, allocations: 3.125 kB / 435.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.906e-06/0.2261, allocations: 3.375 kB / 435.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2261, allocations: 0 / 435.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2261, allocations: 2.438 kB / 435.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.2264, allocations: 246.4 kB / 435.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.236e-05/0.2265, allocations: 83.52 kB / 436 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.2265, allocations: 10.25 kB / 436 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.081e-05/0.2266, allocations: 2.938 kB / 436 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.2266, allocations: 10.48 kB / 436 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.2266, allocations: 7.031 kB / 436 MB, free: 36.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.867e-05/0.2267, allocations: 113.8 kB / 436.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2267, allocations: 0 / 436.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000248/0.2269, allocations: 22.81 kB / 436.1 MB, free: 36.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (derivativeLag.integrator.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 5.075e-05/0.227, allocations: 97.92 kB / 436.2 MB, free: 36.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.2272, allocations: 75.86 kB / 436.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2272, allocations: 0 / 436.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.322e-05/0.2273, allocations: 32.03 kB / 436.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.2276, allocations: 26.23 kB / 436.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000365/0.228, allocations: 294.3 kB / 436.7 MB, free: 36.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.441e-05/0.2281, allocations: 0.7086 MB / 437.4 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.605e-05/0.2282, allocations: 9.781 kB / 437.4 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.679e-05/0.2282, allocations: 10.53 kB / 437.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2282, allocations: 6.906 kB / 437.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of Templates: time 0.002712/0.2309, allocations: 0.8837 MB / 438.3 MB, free: 35.21 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches