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.001436/0.001436, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001597/0.001597, allocations: 217.5 kB / 22.99 MB, free: 4.945 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.513/1.513, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1026/0.1026, allocations: 16.94 MB / 330.1 MB, free: 2.395 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.003175/0.003175, allocations: 67.91 kB / 463.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1433, allocations: 57.74 MB / 0.509 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003431/0.1468, allocations: 1.781 MB / 0.5107 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004255/0.1472, allocations: 163.5 kB / 0.5109 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1473, allocations: 7.938 kB / 0.5109 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.1475, allocations: 23.73 kB / 0.5109 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.1477, allocations: 23.8 kB / 0.5109 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000105/0.1478, allocations: 39.95 kB / 0.511 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.148, allocations: 119.7 kB / 0.5111 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.1481, allocations: 41.5 kB / 0.5111 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.968e-05/0.1482, allocations: 47.8 kB / 0.5112 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.1483, allocations: 43.72 kB / 0.5112 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.1483, allocations: 8 kB / 0.5112 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.803e-05/0.1483, allocations: 8 kB / 0.5112 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.468e-05/0.1484, allocations: 27.84 kB / 0.5113 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.58e-05/0.1484, allocations: 35.8 kB / 0.5113 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.1486, allocations: 111.4 kB / 0.5114 GB, free: 3.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1486, allocations: 0 / 0.5114 GB, free: 3.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1486, allocations: 0 / 0.5114 GB, free: 3.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1486, allocations: 0 / 0.5114 GB, free: 3.152 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.0005903/0.1492, allocations: 350 kB / 0.5117 GB, free: 2.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1492, allocations: 8.031 kB / 0.5117 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.47e-05/0.1493, allocations: 20.78 kB / 0.5118 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.1496, allocations: 158.3 kB / 0.5119 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.1497, allocations: 8.562 kB / 0.5119 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.1497, allocations: 12.38 kB / 0.5119 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.15, allocations: 138.2 kB / 0.5121 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.15, allocations: 0 / 0.5121 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.15, allocations: 8 kB / 0.5121 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.15, allocations: 4 kB / 0.5121 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.1502, allocations: 59.89 kB / 0.5121 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006993/0.1509, allocations: 0.5208 MB / 0.5126 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.1512, allocations: 107.8 kB / 0.5127 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.1513, allocations: 42.75 kB / 0.5128 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1513, allocations: 4 kB / 0.5128 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.1514, allocations: 38.5 kB / 0.5128 GB, free: 1.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.1514, allocations: 4 kB / 0.5128 GB, free: 1.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003985/0.1518, allocations: 117.5 kB / 0.5129 GB, free: 1.395 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.1518, allocations: 102.8 kB / 0.513 GB, free: 1.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.152, allocations: 150.2 kB / 0.5132 GB, free: 1.113 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.152, allocations: 25.95 kB / 0.5132 GB, free: 1.082 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.959e-05/0.1521, allocations: 131.8 kB / 0.5133 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.1521, allocations: 23.75 kB / 0.5134 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.85e-05/0.1522, allocations: 33.64 kB / 0.5134 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1523, allocations: 322.8 kB / 0.5137 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.489e-05/0.1524, allocations: 19.98 kB / 0.5137 GB, free: 0.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.1526, allocations: 91.7 kB / 0.5138 GB, free: 436 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.1528, allocations: 97.09 kB / 0.5139 GB, free: 320 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1528, allocations: 4 kB / 0.5139 GB, free: 316 kB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002458/0.153, allocations: 121.4 kB / 0.514 GB, free: 188 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.153, allocations: 7.938 kB / 0.514 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.153, allocations: 4.156 kB / 0.514 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.153, allocations: 4 kB / 0.514 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.1532, allocations: 27.92 kB / 0.5141 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.1532, allocations: 7.984 kB / 0.5141 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.329e-05/0.1533, allocations: 19.86 kB / 0.5141 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.1533, allocations: 4 kB / 0.5141 GB, free: 112 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.2868/0.4401, allocations: 127.2 kB / 0.5142 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.4402, allocations: 6.656 kB / 0.5142 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.932e-05/0.4402, allocations: 16.3 kB / 0.5142 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4402, allocations: 1.594 kB / 0.5142 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4402, allocations: 1.969 kB / 0.5142 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.4403, allocations: 1.766 kB / 0.5142 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.4404, allocations: 148.1 kB / 0.5144 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.4404, allocations: 0 / 0.5144 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.4406, allocations: 18.88 kB / 0.5144 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.4406, allocations: 1.234 kB / 0.5144 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.4406, allocations: 2.297 kB / 0.5144 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.4406, allocations: 4.844 kB / 0.5144 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.4406, allocations: 1.25 kB / 0.5144 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.4411, allocations: 230.1 kB / 0.5146 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.865e-05/0.4411, allocations: 15.8 kB / 0.5146 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.4411, allocations: 4.219 kB / 0.5146 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.4413, allocations: 5.875 kB / 0.5146 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.082e-05/0.4413, allocations: 14.55 kB / 0.5147 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.4413, allocations: 2.641 kB / 0.5147 GB, free: 15.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.139e-05/0.4414, allocations: 112 kB / 0.5148 GB, free: 15.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4414, allocations: 1.906 kB / 0.5148 GB, free: 15.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.4417, allocations: 19.7 kB / 0.5148 GB, free: 15.51 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 9.004e-05/0.4417, allocations: 93.3 kB / 0.5149 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003041/0.4421, allocations: 69.86 kB / 0.5149 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4421, allocations: 0 / 0.5149 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.614e-05/0.4421, allocations: 28.03 kB / 0.515 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.4425, allocations: 28.81 kB / 0.515 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006432/0.4431, allocations: 273.7 kB / 0.5153 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.208e-05/0.4432, allocations: 99.84 kB / 0.5154 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.728e-05/0.4433, allocations: 13.94 kB / 0.5154 GB, free: 15.15 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4433, allocations: 0 / 0.5154 GB, free: 15.15 MB / 382.1 MB Notification: Performance of Templates: time 0.003777/0.4471, allocations: 1.449 MB / 0.5168 GB, free: 15.11 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=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 480] 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: 7.730958481319249]