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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 217.3 kB / 22.26 MB, free: 5.113 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.377/1.377, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07824/0.07824, allocations: 16.94 MB / 329.4 MB, free: 2.602 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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") [Timeout 660] "Notification: PowerGrids requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 71.89 kB / 462.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1059, allocations: 57.74 MB / 0.5084 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.00367/0.1096, allocations: 1.854 MB / 0.5102 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004309/0.11, allocations: 167.5 kB / 0.5104 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1101, allocations: 7.938 kB / 0.5104 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.1103, allocations: 19.73 kB / 0.5104 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.1105, allocations: 27.8 kB / 0.5104 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001329/0.1106, allocations: 43.89 kB / 0.5105 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002083/0.1108, allocations: 123.7 kB / 0.5106 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.111, allocations: 41.5 kB / 0.5106 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.313e-05/0.111, allocations: 47.78 kB / 0.5107 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.1111, allocations: 43.72 kB / 0.5107 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.1112, allocations: 12 kB / 0.5107 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.683e-05/0.1112, allocations: 8 kB / 0.5107 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.607e-05/0.1112, allocations: 23.88 kB / 0.5107 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.22e-05/0.1113, allocations: 43.73 kB / 0.5108 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.1115, allocations: 119.4 kB / 0.5109 GB, free: 3.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1115, allocations: 0 / 0.5109 GB, free: 3.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1115, allocations: 0 / 0.5109 GB, free: 3.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1115, allocations: 0 / 0.5109 GB, free: 3.184 MB / 382.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.0006719/0.1122, allocations: 346 kB / 0.5112 GB, free: 2.812 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.1122, allocations: 8.031 kB / 0.5112 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.659e-05/0.1122, allocations: 16.84 kB / 0.5113 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.1125, allocations: 158.3 kB / 0.5114 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.1125, allocations: 12.56 kB / 0.5114 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.381e-05/0.1126, allocations: 12.36 kB / 0.5114 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.1128, allocations: 134.2 kB / 0.5116 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1129, allocations: 4 kB / 0.5116 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.1129, allocations: 8 kB / 0.5116 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.1129, allocations: 4 kB / 0.5116 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.1131, allocations: 63.89 kB / 0.5116 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007014/0.1138, allocations: 0.567 MB / 0.5122 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.114, allocations: 103.9 kB / 0.5123 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.1142, allocations: 42.69 kB / 0.5123 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.1142, allocations: 7.984 kB / 0.5123 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.1142, allocations: 38.5 kB / 0.5124 GB, free: 1.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.1142, allocations: 0 / 0.5124 GB, free: 1.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003784/0.1146, allocations: 109.8 kB / 0.5125 GB, free: 1.379 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.326e-05/0.1147, allocations: 106.8 kB / 0.5126 GB, free: 1.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.1148, allocations: 153.9 kB / 0.5127 GB, free: 1.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1148, allocations: 29.7 kB / 0.5128 GB, free: 1.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.1149, allocations: 115.9 kB / 0.5129 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.1149, allocations: 31.77 kB / 0.5129 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.115, allocations: 33.55 kB / 0.5129 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1151, allocations: 322.8 kB / 0.5132 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.088e-05/0.1152, allocations: 27.98 kB / 0.5133 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.1154, allocations: 73.92 kB / 0.5133 GB, free: 432 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.1156, allocations: 105.3 kB / 0.5134 GB, free: 308 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1156, allocations: 0 / 0.5134 GB, free: 308 kB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002651/0.1158, allocations: 121.6 kB / 0.5135 GB, free: 180 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1159, allocations: 8 kB / 0.5136 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1159, allocations: 0 / 0.5136 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1159, allocations: 4 kB / 0.5136 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.116, allocations: 23.92 kB / 0.5136 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.116, allocations: 4 kB / 0.5136 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.311e-05/0.1161, allocations: 15.88 kB / 0.5136 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.1161, allocations: 8 kB / 0.5136 GB, free: 116 kB / 382.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 0.1877/0.3039, allocations: 119.8 kB / 0.5137 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.634e-05/0.3039, allocations: 10.8 kB / 0.5137 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.304, allocations: 12.22 kB / 0.5137 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.304, allocations: 1.25 kB / 0.5137 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.304, allocations: 1.25 kB / 0.5137 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.304, allocations: 2.047 kB / 0.5138 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.3042, allocations: 182.2 kB / 0.5139 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3042, allocations: 1.406 kB / 0.5139 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.3043, allocations: 17.06 kB / 0.5139 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3043, allocations: 2.438 kB / 0.5139 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.3043, allocations: 1.938 kB / 0.5139 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.3043, allocations: 5.266 kB / 0.514 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3043, allocations: 1.594 kB / 0.514 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003431/0.3047, allocations: 226.8 kB / 0.5142 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.163e-05/0.3047, allocations: 10.5 kB / 0.5142 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.3047, allocations: 3.172 kB / 0.5142 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.8e-05/0.3048, allocations: 10.41 kB / 0.5142 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/0.3049, allocations: 13.14 kB / 0.5142 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.3049, allocations: 6.078 kB / 0.5142 GB, free: 15.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.469e-05/0.3049, allocations: 111 kB / 0.5143 GB, free: 15.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3049, allocations: 0 / 0.5143 GB, free: 15.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.3052, allocations: 27.55 kB / 0.5143 GB, free: 15.54 MB / 382.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 6.129e-05/0.3053, allocations: 92.8 kB / 0.5144 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00024/0.3055, allocations: 69.78 kB / 0.5145 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3055, allocations: 0 / 0.5145 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.727e-05/0.3056, allocations: 30.28 kB / 0.5145 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.3059, allocations: 26.23 kB / 0.5146 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004803/0.3064, allocations: 256.4 kB / 0.5148 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.3065, allocations: 0.7035 MB / 0.5155 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.486e-05/0.3066, allocations: 11.09 kB / 0.5155 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.3066, allocations: 14 kB / 0.5155 GB, free: 14.58 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3066, allocations: 3.281 kB / 0.5155 GB, free: 14.58 MB / 382.1 MB Notification: Performance of Templates: time 0.003447/0.3101, allocations: 1.018 MB / 0.5165 GB, free: 14.55 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile [Timeout 660] (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) [Timeout 50] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.385817615999258]