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.001752/0.001752, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002245/0.002245, allocations: 217 kB / 22.26 MB, free: 5.125 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.415/1.415, allocations: 230.6 MB / 256 MB, free: 7.961 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.07705/0.07705, allocations: 16.96 MB / 329.4 MB, free: 2.543 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.001947/0.001947, allocations: 67.89 kB / 462.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1218, allocations: 57.75 MB / 0.5084 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003925/0.1257, allocations: 1.85 MB / 0.5102 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005203/0.1263, allocations: 163.5 kB / 0.5104 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.1264, allocations: 3.938 kB / 0.5104 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.1266, allocations: 31.78 kB / 0.5104 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.1268, allocations: 15.81 kB / 0.5104 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.1269, allocations: 47.89 kB / 0.5105 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.1272, allocations: 119.7 kB / 0.5106 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.1273, allocations: 45.48 kB / 0.5106 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.766e-05/0.1274, allocations: 47.8 kB / 0.5107 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1276, allocations: 39.78 kB / 0.5107 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.1276, allocations: 8 kB / 0.5107 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.779e-05/0.1276, allocations: 15.94 kB / 0.5107 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.412e-05/0.1276, allocations: 27.86 kB / 0.5107 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.777e-05/0.1277, allocations: 47.73 kB / 0.5108 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.1279, allocations: 111.4 kB / 0.5109 GB, free: 3.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1279, allocations: 0 / 0.5109 GB, free: 3.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1279, allocations: 0 / 0.5109 GB, free: 3.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1279, allocations: 0 / 0.5109 GB, free: 3.141 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.0006312/0.1285, allocations: 349.9 kB / 0.5112 GB, free: 2.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1286, allocations: 8.031 kB / 0.5112 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.771e-05/0.1286, allocations: 24.78 kB / 0.5113 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.129, allocations: 150.3 kB / 0.5114 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.129, allocations: 12.5 kB / 0.5114 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.129, allocations: 12.38 kB / 0.5114 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.1293, allocations: 134.2 kB / 0.5116 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.1293, allocations: 0 / 0.5116 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.1293, allocations: 4 kB / 0.5116 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1293, allocations: 7.984 kB / 0.5116 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.1295, allocations: 59.91 kB / 0.5116 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008069/0.1303, allocations: 0.5787 MB / 0.5122 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002837/0.1306, allocations: 103.8 kB / 0.5123 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.1307, allocations: 42.75 kB / 0.5123 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.1308, allocations: 0 / 0.5123 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.1308, allocations: 38.55 kB / 0.5124 GB, free: 1.449 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.1308, allocations: 3.938 kB / 0.5124 GB, free: 1.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003936/0.1312, allocations: 117.5 kB / 0.5125 GB, free: 1.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.218e-05/0.1313, allocations: 106.8 kB / 0.5126 GB, free: 1.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.1314, allocations: 149.9 kB / 0.5127 GB, free: 1.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.1315, allocations: 29.7 kB / 0.5128 GB, free: 1.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.722e-05/0.1315, allocations: 119.9 kB / 0.5129 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.1316, allocations: 19.8 kB / 0.5129 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.1316, allocations: 37.91 kB / 0.5129 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1318, allocations: 322.8 kB / 0.5132 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.908e-05/0.1319, allocations: 27.92 kB / 0.5133 GB, free: 480 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.132, allocations: 65.94 kB / 0.5133 GB, free: 392 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.1322, allocations: 101 kB / 0.5134 GB, free: 272 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1322, allocations: 0 / 0.5134 GB, free: 272 kB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002699/0.1325, allocations: 129.8 kB / 0.5135 GB, free: 136 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1325, allocations: 4 kB / 0.5136 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1325, allocations: 4 kB / 0.5136 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1325, allocations: 0 / 0.5136 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.1326, allocations: 27.97 kB / 0.5136 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.918e-05/0.1327, allocations: 7.922 kB / 0.5136 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.174e-05/0.1327, allocations: 15.89 kB / 0.5136 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.1328, allocations: 8.156 kB / 0.5136 GB, free: 68 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.212/0.3447, allocations: 121.6 kB / 0.5137 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.3448, allocations: 8.75 kB / 0.5137 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.387e-05/0.3448, allocations: 16.98 kB / 0.5138 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3448, allocations: 2.344 kB / 0.5138 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.3449, allocations: 0.6875 kB / 0.5138 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3449, allocations: 1.672 kB / 0.5138 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.3451, allocations: 173.3 kB / 0.5139 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3451, allocations: 2.25 kB / 0.5139 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.3452, allocations: 22.08 kB / 0.5139 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3452, allocations: 3.812 kB / 0.5139 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.3453, allocations: 1.219 kB / 0.514 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.3453, allocations: 2.938 kB / 0.514 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3453, allocations: 1.156 kB / 0.514 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003665/0.3456, allocations: 230.3 kB / 0.5142 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.405e-05/0.3457, allocations: 9.703 kB / 0.5142 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.3457, allocations: 6.891 kB / 0.5142 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.856e-05/0.3458, allocations: 8.328 kB / 0.5142 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.3458, allocations: 6.547 kB / 0.5142 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.3458, allocations: 10.75 kB / 0.5142 GB, free: 15.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.996e-05/0.3459, allocations: 108.8 kB / 0.5143 GB, free: 15.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3459, allocations: 0.8125 kB / 0.5143 GB, free: 15.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.3462, allocations: 23.2 kB / 0.5143 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.446e-05/0.3463, allocations: 98.06 kB / 0.5144 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002532/0.3465, allocations: 66.06 kB / 0.5145 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3465, allocations: 1.219 kB / 0.5145 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.152e-05/0.3466, allocations: 30.53 kB / 0.5145 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.0003264/0.3469, allocations: 34.2 kB / 0.5146 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005171/0.3475, allocations: 246.8 kB / 0.5148 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.3476, allocations: 0.7047 MB / 0.5155 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.08e-05/0.3477, allocations: 15.44 kB / 0.5155 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.289e-05/0.3477, allocations: 17.03 kB / 0.5155 GB, free: 14.52 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3477, allocations: 0 / 0.5155 GB, free: 14.52 MB / 382.1 MB Notification: Performance of Templates: time 0.003764/0.3515, allocations: 1.013 MB / 0.5165 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.72618487291038]