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.001677/0.001677, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002106/0.002106, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.08226/0.08226, allocations: 16.95 MB / 330.2 MB, free: 2.547 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.001986/0.001986, allocations: 71.91 kB / 463.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1072, allocations: 57.73 MB / 0.5092 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003355/0.1106, allocations: 1.852 MB / 0.511 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004259/0.111, allocations: 163.5 kB / 0.5111 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.654e-05/0.1111, allocations: 7.938 kB / 0.5111 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.1112, allocations: 23.8 kB / 0.5112 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.1114, allocations: 27.72 kB / 0.5112 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001298/0.1115, allocations: 47.89 kB / 0.5112 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.1117, allocations: 115.7 kB / 0.5113 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.1119, allocations: 41.5 kB / 0.5114 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.319e-05/0.112, allocations: 51.78 kB / 0.5114 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.1121, allocations: 39.78 kB / 0.5115 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.1121, allocations: 8 kB / 0.5115 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.639e-05/0.1121, allocations: 15.94 kB / 0.5115 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.229e-05/0.1121, allocations: 27.86 kB / 0.5115 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.213e-05/0.1122, allocations: 43.73 kB / 0.5116 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.1124, allocations: 115.4 kB / 0.5117 GB, free: 3.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1124, allocations: 0 / 0.5117 GB, free: 3.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1124, allocations: 0 / 0.5117 GB, free: 3.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1124, allocations: 0 / 0.5117 GB, free: 3.129 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.0005608/0.1129, allocations: 349.9 kB / 0.512 GB, free: 2.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.113, allocations: 8.031 kB / 0.512 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.948e-05/0.113, allocations: 20.84 kB / 0.512 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.1133, allocations: 150.3 kB / 0.5122 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.1133, allocations: 8.562 kB / 0.5122 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.1134, allocations: 16.31 kB / 0.5122 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.1136, allocations: 134.2 kB / 0.5123 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.1136, allocations: 0 / 0.5123 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.1137, allocations: 4 kB / 0.5123 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.1137, allocations: 4 kB / 0.5123 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.1139, allocations: 67.89 kB / 0.5124 GB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007677/0.1146, allocations: 0.5748 MB / 0.513 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.1149, allocations: 107.9 kB / 0.5131 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.115, allocations: 38.62 kB / 0.5131 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.1151, allocations: 4 kB / 0.5131 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.1151, allocations: 38.55 kB / 0.5131 GB, free: 1.438 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1151, allocations: 0 / 0.5131 GB, free: 1.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004016/0.1155, allocations: 117.5 kB / 0.5132 GB, free: 1.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.1156, allocations: 106.8 kB / 0.5133 GB, free: 1.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.1157, allocations: 150.1 kB / 0.5135 GB, free: 1.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.1158, allocations: 29.7 kB / 0.5135 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.274e-05/0.1158, allocations: 119.9 kB / 0.5136 GB, free: 0.875 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.1159, allocations: 27.78 kB / 0.5137 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.1159, allocations: 29.92 kB / 0.5137 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1161, allocations: 318.8 kB / 0.514 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.961e-05/0.1162, allocations: 31.92 kB / 0.514 GB, free: 472 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.1163, allocations: 77.89 kB / 0.5141 GB, free: 372 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.1165, allocations: 101.3 kB / 0.5142 GB, free: 252 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1165, allocations: 0 / 0.5142 GB, free: 252 kB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002702/0.1168, allocations: 125.5 kB / 0.5143 GB, free: 120 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1168, allocations: 4 kB / 0.5143 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1168, allocations: 4 kB / 0.5143 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1168, allocations: 3.984 kB / 0.5143 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.117, allocations: 23.98 kB / 0.5143 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.117, allocations: 3.938 kB / 0.5144 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.338e-05/0.1171, allocations: 15.89 kB / 0.5144 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1171, allocations: 8.156 kB / 0.5144 GB, free: 56 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.2017/0.3188, allocations: 124.5 kB / 0.5145 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.968e-05/0.3189, allocations: 8.406 kB / 0.5145 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.004e-05/0.3189, allocations: 12 kB / 0.5145 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3189, allocations: 2.484 kB / 0.5145 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3189, allocations: 1.562 kB / 0.5145 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3189, allocations: 0.7969 kB / 0.5145 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.3192, allocations: 179.3 kB / 0.5147 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3192, allocations: 1.578 kB / 0.5147 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.3193, allocations: 17.41 kB / 0.5147 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.3193, allocations: 1.75 kB / 0.5147 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.3194, allocations: 2.234 kB / 0.5147 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.3194, allocations: 1.781 kB / 0.5147 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3194, allocations: 5.812 kB / 0.5147 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003965/0.3198, allocations: 226.8 kB / 0.5149 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.612e-05/0.3198, allocations: 11.09 kB / 0.5149 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.3198, allocations: 2.562 kB / 0.5149 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3199, allocations: 11.11 kB / 0.515 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/0.32, allocations: 12.97 kB / 0.515 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.32, allocations: 6.094 kB / 0.515 GB, free: 15.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.47e-05/0.32, allocations: 112.3 kB / 0.5151 GB, free: 15.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.32, allocations: 0 / 0.5151 GB, free: 15.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.3204, allocations: 20.36 kB / 0.5151 GB, free: 15.48 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 8.976e-05/0.3204, allocations: 102 kB / 0.5152 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002658/0.3207, allocations: 65.8 kB / 0.5153 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3207, allocations: 1.562 kB / 0.5153 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.582e-05/0.3208, allocations: 31.3 kB / 0.5153 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.3212, allocations: 27.61 kB / 0.5153 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005603/0.3217, allocations: 253.2 kB / 0.5156 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001343/0.3218, allocations: 0.7036 MB / 0.5163 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.075e-05/0.3219, allocations: 11.69 kB / 0.5163 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.3219, allocations: 14.11 kB / 0.5163 GB, free: 14.52 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3219, allocations: 0 / 0.5163 GB, free: 14.52 MB / 382.1 MB Notification: Performance of Templates: time 0.003826/0.3258, allocations: 1.026 MB / 0.5173 GB, free: 14.49 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.9179114360013045]