Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag") translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 104.1 kB / 15.88 MB, free: 4 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 201.5 kB / 16.8 MB, free: 6.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.1 MB / 222.6 MB, free: 5.043 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06624/0.06624, allocations: 14.17 MB / 284.2 MB, free: 7.57 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 71.89 kB / 347.1 MB, free: 17.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1128, allocations: 50.12 MB / 397.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003394/0.1163, allocations: 1.887 MB / 399.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003821/0.1167, allocations: 159.5 kB / 399.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1168, allocations: 3.938 kB / 399.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.117, allocations: 15.86 kB / 399.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.1172, allocations: 23.86 kB / 399.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001128/0.1173, allocations: 35.97 kB / 399.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.1175, allocations: 115.6 kB / 399.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.1177, allocations: 57.25 kB / 399.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.173e-05/0.1177, allocations: 43.78 kB / 399.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.1178, allocations: 39.72 kB / 399.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.717e-05/0.1179, allocations: 7.938 kB / 399.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.1179, allocations: 8 kB / 399.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.809e-05/0.1179, allocations: 23.86 kB / 399.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.693e-05/0.118, allocations: 43.73 kB / 399.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.1182, allocations: 103.6 kB / 399.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1182, allocations: 0 / 399.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1182, allocations: 4 kB / 399.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.289e-06/0.1182, allocations: 0 / 399.8 MB, free: 13.09 MB / 302.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.0005973/0.1188, allocations: 411.2 kB / 400.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1188, allocations: 11.97 kB / 400.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.551e-05/0.1189, allocations: 20.75 kB / 400.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.1192, allocations: 212.1 kB / 400.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1192, allocations: 4.562 kB / 400.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.1192, allocations: 12.38 kB / 400.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.1195, allocations: 134.2 kB / 400.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.1195, allocations: 0 / 400.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.1195, allocations: 8 kB / 400.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1196, allocations: 4 kB / 400.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.1198, allocations: 67.89 kB / 400.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007289/0.1205, allocations: 0.6029 MB / 401.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002639/0.1208, allocations: 112 kB / 401.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.1209, allocations: 46.61 kB / 401.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.1209, allocations: 3.984 kB / 401.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.121, allocations: 34.56 kB / 401.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.121, allocations: 0 / 401.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003749/0.1214, allocations: 125.5 kB / 401.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.1214, allocations: 102.8 kB / 401.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.1216, allocations: 151 kB / 401.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1216, allocations: 29.7 kB / 401.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.524e-05/0.1217, allocations: 115.8 kB / 402 MB, free: 10.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.474e-05/0.1217, allocations: 31.8 kB / 402 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.636e-05/0.1218, allocations: 29.72 kB / 402 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1219, allocations: 322.8 kB / 402.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.05e-05/0.122, allocations: 19.98 kB / 402.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.1221, allocations: 69.92 kB / 402.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.1224, allocations: 113 kB / 402.5 MB, free: 10 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1224, allocations: 0 / 402.5 MB, free: 10 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002682/0.1226, allocations: 117.7 kB / 402.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1227, allocations: 8 kB / 402.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-06/0.1227, allocations: 64 / 402.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.1227, allocations: 4 kB / 402.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.1229, allocations: 23.98 kB / 402.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.1229, allocations: 7.938 kB / 402.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.871e-05/0.123, allocations: 20.08 kB / 402.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.123, allocations: 4 kB / 402.7 MB, free: 9.816 MB / 302.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.0001156/0.1231, allocations: 133.7 kB / 402.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.1232, allocations: 11.81 kB / 402.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.563e-05/0.1232, allocations: 12.31 kB / 402.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1232, allocations: 0 / 402.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1232, allocations: 0 / 402.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1232, allocations: 7.984 kB / 402.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.1235, allocations: 205.5 kB / 403.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1235, allocations: 4 kB / 403.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.1236, allocations: 19.98 kB / 403.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1236, allocations: 0 / 403.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.1236, allocations: 0 / 403.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1237, allocations: 4 kB / 403.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.1237, allocations: 0 / 403.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.1252, allocations: 1.212 MB / 404.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.1253, allocations: 89.11 kB / 404.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.1253, allocations: 7.984 kB / 404.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.789e-05/0.1254, allocations: 4 kB / 404.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.435e-05/0.1255, allocations: 15.97 kB / 404.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.1255, allocations: 3.984 kB / 404.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.412e-05/0.1256, allocations: 111.3 kB / 404.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1256, allocations: 0 / 404.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003536/0.1259, allocations: 27.83 kB / 404.6 MB, free: 7.738 MB / 302.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.0001341/0.1261, allocations: 107.2 kB / 404.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002301/0.1263, allocations: 59.91 kB / 404.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1263, allocations: 4 kB / 404.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.93e-05/0.1264, allocations: 27.92 kB / 404.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.1268, allocations: 27.97 kB / 404.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006457/0.1275, allocations: 402.5 kB / 405.2 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.1278, allocations: 0.7043 MB / 405.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.991e-05/0.1279, allocations: 12.55 kB / 405.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.1279, allocations: 11.44 kB / 405.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1279, allocations: 0 / 405.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of Templates: time 0.003892/0.1318, allocations: 0.9326 MB / 406.8 MB, free: 5.387 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches