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.001355/0.001355, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001507/0.001507, allocations: 219.1 kB / 23.01 MB, free: 4.609 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.423/1.423, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.07984/0.07984, allocations: 16.94 MB / 330.1 MB, free: 2.551 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.00202/0.00202, allocations: 59.91 kB / 463.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1195, allocations: 57.76 MB / 0.5091 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003164/0.1227, allocations: 1.859 MB / 0.511 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003965/0.123, allocations: 155.5 kB / 0.5111 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.1232, allocations: 11.88 kB / 0.5111 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.1233, allocations: 23.8 kB / 0.5111 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1234, allocations: 23.78 kB / 0.5112 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001225/0.1236, allocations: 39.97 kB / 0.5112 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.1238, allocations: 123.6 kB / 0.5113 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.1239, allocations: 45.5 kB / 0.5114 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.25e-05/0.124, allocations: 43.8 kB / 0.5114 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.1241, allocations: 47.77 kB / 0.5114 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.1241, allocations: 8 kB / 0.5115 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.685e-05/0.1241, allocations: 8 kB / 0.5115 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.149e-05/0.1242, allocations: 23.86 kB / 0.5115 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.1242, allocations: 51.67 kB / 0.5115 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.1244, allocations: 111.4 kB / 0.5116 GB, free: 3.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1244, allocations: 0 / 0.5116 GB, free: 3.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1244, allocations: 4 kB / 0.5116 GB, free: 3.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.1244, allocations: 0 / 0.5116 GB, free: 3.137 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.0005278/0.1249, allocations: 341.9 kB / 0.512 GB, free: 2.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.125, allocations: 12.03 kB / 0.512 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.049e-05/0.125, allocations: 20.84 kB / 0.512 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.1253, allocations: 154.3 kB / 0.5121 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.1253, allocations: 8.562 kB / 0.5122 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.582e-05/0.1253, allocations: 20.36 kB / 0.5122 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.1256, allocations: 134.2 kB / 0.5123 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1256, allocations: 3.938 kB / 0.5123 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.1256, allocations: 0 / 0.5123 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1256, allocations: 4 kB / 0.5123 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.1258, allocations: 67.91 kB / 0.5124 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.1265, allocations: 0.5708 MB / 0.5129 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.1268, allocations: 107.8 kB / 0.513 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.1269, allocations: 38.75 kB / 0.5131 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.1269, allocations: 8 kB / 0.5131 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.1269, allocations: 34.56 kB / 0.5131 GB, free: 1.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.1269, allocations: 0 / 0.5131 GB, free: 1.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003838/0.1273, allocations: 117.5 kB / 0.5132 GB, free: 1.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.175e-05/0.1274, allocations: 107.1 kB / 0.5133 GB, free: 1.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.1275, allocations: 150.5 kB / 0.5135 GB, free: 1.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.1275, allocations: 25.7 kB / 0.5135 GB, free: 1.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.871e-05/0.1276, allocations: 119.9 kB / 0.5136 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.1277, allocations: 23.8 kB / 0.5136 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.1277, allocations: 33.66 kB / 0.5137 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1279, allocations: 318.8 kB / 0.514 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.671e-05/0.128, allocations: 27.92 kB / 0.514 GB, free: 484 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.1281, allocations: 66 kB / 0.5141 GB, free: 396 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.1283, allocations: 109 kB / 0.5142 GB, free: 268 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1283, allocations: 0 / 0.5142 GB, free: 268 kB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002565/0.1285, allocations: 117.5 kB / 0.5143 GB, free: 144 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1286, allocations: 4 kB / 0.5143 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1286, allocations: 160 / 0.5143 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.1286, allocations: 8 kB / 0.5143 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.1287, allocations: 32.28 kB / 0.5143 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1287, allocations: 0 / 0.5143 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.124e-05/0.1288, allocations: 15.89 kB / 0.5143 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.1288, allocations: 8 kB / 0.5143 GB, free: 76 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.2249/0.3538, allocations: 125.6 kB / 0.5145 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.398e-05/0.3538, allocations: 8.938 kB / 0.5145 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.701e-05/0.3539, allocations: 13.69 kB / 0.5145 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3539, allocations: 2.422 kB / 0.5145 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.413e-06/0.3539, allocations: 2.234 kB / 0.5145 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3539, allocations: 2.609 kB / 0.5145 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.3541, allocations: 178.8 kB / 0.5147 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3541, allocations: 1.094 kB / 0.5147 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.3543, allocations: 16.94 kB / 0.5147 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3543, allocations: 1.719 kB / 0.5147 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.3543, allocations: 2.609 kB / 0.5147 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3543, allocations: 1.453 kB / 0.5147 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3543, allocations: 11.69 kB / 0.5147 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004038/0.3548, allocations: 228 kB / 0.5149 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.639e-05/0.3548, allocations: 12.27 kB / 0.5149 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.3548, allocations: 2.516 kB / 0.5149 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.3549, allocations: 9.375 kB / 0.5149 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.355, allocations: 14.22 kB / 0.5149 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.355, allocations: 2.062 kB / 0.5149 GB, free: 15.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.878e-05/0.3551, allocations: 115 kB / 0.5151 GB, free: 15.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3551, allocations: 4.031 kB / 0.5151 GB, free: 15.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.3554, allocations: 22 kB / 0.5151 GB, free: 15.49 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.415e-05/0.3555, allocations: 96.97 kB / 0.5152 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002827/0.3558, allocations: 67.11 kB / 0.5152 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3558, allocations: 4.625 kB / 0.5152 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.27e-05/0.3559, allocations: 25.53 kB / 0.5153 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.3562, allocations: 28.69 kB / 0.5153 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005761/0.3568, allocations: 275.4 kB / 0.5156 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.3569, allocations: 0.7088 MB / 0.5163 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.357, allocations: 13.44 kB / 0.5163 GB, free: 14.5 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.357, allocations: 2.812 kB / 0.5163 GB, free: 14.5 MB / 382.1 MB Notification: Performance of Templates: time 0.003167/0.3601, allocations: 1.404 MB / 0.5176 GB, free: 14.47 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.15148276486434]