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.001993/0.001993, allocations: 109.7 kB / 16.45 MB, free: 6.457 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.00244/0.00244, allocations: 212.3 kB / 19.43 MB, free: 3.625 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.572/1.572, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.08399/0.08399, allocations: 16.94 MB / 325.8 MB, free: 3.754 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.002/0.002, allocations: 63.91 kB / 457.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1218, allocations: 57.71 MB / 0.5031 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003922/0.1257, allocations: 1.837 MB / 0.5048 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005748/0.1263, allocations: 167.5 kB / 0.505 GB, free: 6.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.1265, allocations: 7.938 kB / 0.505 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.1267, allocations: 19.73 kB / 0.505 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.1269, allocations: 23.84 kB / 0.5051 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001386/0.127, allocations: 47.89 kB / 0.5051 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.1272, allocations: 115.7 kB / 0.5052 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.1274, allocations: 45.33 kB / 0.5053 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.323e-05/0.1275, allocations: 47.78 kB / 0.5053 GB, free: 6.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.1276, allocations: 47.7 kB / 0.5053 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.1276, allocations: 8 kB / 0.5054 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.943e-05/0.1277, allocations: 8 kB / 0.5054 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.346e-05/0.1277, allocations: 27.86 kB / 0.5054 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.817e-05/0.1278, allocations: 43.73 kB / 0.5054 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.128, allocations: 111.4 kB / 0.5055 GB, free: 5.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.128, allocations: 4 kB / 0.5055 GB, free: 5.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.128, allocations: 0 / 0.5055 GB, free: 5.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.128, allocations: 4 kB / 0.5055 GB, free: 5.902 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.0006822/0.1287, allocations: 423.1 kB / 0.5059 GB, free: 5.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.1287, allocations: 8.031 kB / 0.506 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.1288, allocations: 16.84 kB / 0.506 GB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.1291, allocations: 216.1 kB / 0.5062 GB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.1292, allocations: 8.562 kB / 0.5062 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.1292, allocations: 12.38 kB / 0.5062 GB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003504/0.1295, allocations: 136.7 kB / 0.5063 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.1296, allocations: 7.922 kB / 0.5063 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.1296, allocations: 4 kB / 0.5063 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.1296, allocations: 4 kB / 0.5063 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.1298, allocations: 67.83 kB / 0.5064 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.1309, allocations: 0.603 MB / 0.507 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.1312, allocations: 103.9 kB / 0.5071 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1313, allocations: 42.69 kB / 0.5071 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1314, allocations: 4 kB / 0.5071 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.1314, allocations: 42.5 kB / 0.5072 GB, free: 4.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.1314, allocations: 0 / 0.5072 GB, free: 4.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004697/0.1319, allocations: 109.5 kB / 0.5073 GB, free: 3.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.132, allocations: 110.8 kB / 0.5074 GB, free: 3.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.1322, allocations: 150.4 kB / 0.5075 GB, free: 3.602 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.1322, allocations: 25.7 kB / 0.5076 GB, free: 3.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.1323, allocations: 123.9 kB / 0.5077 GB, free: 3.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.1323, allocations: 23.8 kB / 0.5077 GB, free: 3.422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.279e-05/0.1324, allocations: 33.66 kB / 0.5077 GB, free: 3.383 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1325, allocations: 314.8 kB / 0.508 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.1326, allocations: 28.16 kB / 0.5081 GB, free: 3.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.1328, allocations: 73.94 kB / 0.5081 GB, free: 2.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.133, allocations: 105 kB / 0.5082 GB, free: 2.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.133, allocations: 0 / 0.5082 GB, free: 2.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003047/0.1333, allocations: 117.5 kB / 0.5083 GB, free: 2.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.1333, allocations: 4 kB / 0.5083 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1333, allocations: 0 / 0.5083 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.1333, allocations: 8.156 kB / 0.5084 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.1335, allocations: 31.92 kB / 0.5084 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1335, allocations: 0 / 0.5084 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.929e-05/0.1336, allocations: 11.94 kB / 0.5084 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1336, allocations: 4 kB / 0.5084 GB, free: 2.645 MB / 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.0001256/0.1337, allocations: 129.7 kB / 0.5085 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.672e-05/0.1338, allocations: 7.953 kB / 0.5085 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.445e-05/0.1338, allocations: 20.3 kB / 0.5085 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1338, allocations: 8 kB / 0.5086 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.1338, allocations: 0 / 0.5086 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1338, allocations: 0 / 0.5086 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.1341, allocations: 205.5 kB / 0.5088 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1341, allocations: 0 / 0.5088 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.1342, allocations: 19.92 kB / 0.5088 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1342, allocations: 0 / 0.5088 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.1342, allocations: 8 kB / 0.5088 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1342, allocations: 0 / 0.5088 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1342, allocations: 0 / 0.5088 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.1346, allocations: 233.1 kB / 0.509 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-05/0.1347, allocations: 89.09 kB / 0.5091 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.1347, allocations: 7.875 kB / 0.5091 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.724e-05/0.1348, allocations: 7.984 kB / 0.5091 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.1349, allocations: 12.06 kB / 0.5091 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.1349, allocations: 7.984 kB / 0.5091 GB, free: 1.797 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.137e-05/0.135, allocations: 103.3 kB / 0.5092 GB, free: 1.695 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.135, allocations: 3.938 kB / 0.5092 GB, free: 1.691 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.1352, allocations: 23.94 kB / 0.5092 GB, free: 1.668 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 0.0001203/0.1354, allocations: 95.23 kB / 0.5093 GB, free: 1.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002698/0.1356, allocations: 71.83 kB / 0.5094 GB, free: 1.496 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1356, allocations: 4 kB / 0.5094 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.1357, allocations: 31.92 kB / 0.5094 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.1361, allocations: 19.98 kB / 0.5095 GB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006735/0.1367, allocations: 257 kB / 0.5097 GB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.1371, allocations: 0.7041 MB / 0.5104 GB, free: 440 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.567e-05/0.1372, allocations: 12.55 kB / 0.5104 GB, free: 428 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.772e-05/0.1372, allocations: 11.44 kB / 0.5104 GB, free: 416 kB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1372, allocations: 0 / 0.5104 GB, free: 416 kB / 382.1 MB Notification: Performance of Templates: time 0.2208/0.358, allocations: 0.9719 MB / 0.5114 GB, free: 16.44 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: 5.104303095024079]