Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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_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_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.0019/0.0019, allocations: 104.1 kB / 16.36 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00198/0.00198, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.723/1.723, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06213/0.06213, allocations: 14.17 MB / 284.7 MB, free: 13.87 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.002043/0.002043, allocations: 67.89 kB / 348.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3145, allocations: 50.12 MB / 398.7 MB, free: 48.71 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.004233/0.3188, allocations: 1.824 MB / 400.6 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004926/0.3193, allocations: 175 kB / 400.7 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.3195, allocations: 7.969 kB / 400.7 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.3197, allocations: 21.02 kB / 400.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.3199, allocations: 18.48 kB / 400.8 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001341/0.32, allocations: 54.25 kB / 400.8 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.3203, allocations: 118.2 kB / 401 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.3205, allocations: 57.91 kB / 401 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.711e-05/0.3206, allocations: 52.78 kB / 401.1 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.3207, allocations: 37.84 kB / 401.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.389e-05/0.3208, allocations: 7.938 kB / 401.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.856e-05/0.3208, allocations: 9.969 kB / 401.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.726e-05/0.3208, allocations: 26.31 kB / 401.1 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.586e-05/0.3209, allocations: 54.2 kB / 401.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.3211, allocations: 105.2 kB / 401.3 MB, free: 46.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3211, allocations: 0 / 401.3 MB, free: 46.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3211, allocations: 0 / 401.3 MB, free: 46.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.3211, allocations: 5.375 kB / 401.3 MB, free: 46.74 MB / 318.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.0006033/0.3218, allocations: 419.1 kB / 401.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3218, allocations: 8.906 kB / 401.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/0.3219, allocations: 16.69 kB / 401.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003284/0.3222, allocations: 225.2 kB / 402 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.3222, allocations: 4.656 kB / 402 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.3223, allocations: 15.09 kB / 402 MB, free: 46.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.3226, allocations: 136.8 kB / 402.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3227, allocations: 5.312 kB / 402.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.3227, allocations: 5.344 kB / 402.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3227, allocations: 2.688 kB / 402.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/0.323, allocations: 62.97 kB / 402.2 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000798/0.3238, allocations: 0.5983 MB / 402.8 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.3242, allocations: 109.7 kB / 402.9 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.3244, allocations: 51.59 kB / 402.9 MB, free: 45.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.3244, allocations: 1.25 kB / 402.9 MB, free: 45.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.3244, allocations: 31.97 kB / 403 MB, free: 45.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.963e-06/0.3244, allocations: 0 / 403 MB, free: 45.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005505/0.325, allocations: 117.6 kB / 403.1 MB, free: 45.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.3251, allocations: 113 kB / 403.2 MB, free: 44.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.3252, allocations: 154.5 kB / 403.4 MB, free: 44.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.3252, allocations: 26.92 kB / 403.4 MB, free: 44.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.3253, allocations: 118.4 kB / 403.5 MB, free: 44.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/0.3254, allocations: 24.06 kB / 403.5 MB, free: 44.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-05/0.3254, allocations: 24.52 kB / 403.5 MB, free: 44.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.925e-05/0.3255, allocations: 329.6 kB / 403.9 MB, free: 44.26 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.3257, allocations: 20.77 kB / 403.9 MB, free: 44.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.3258, allocations: 67.67 kB / 403.9 MB, free: 44.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.3261, allocations: 102.1 kB / 404 MB, free: 44.1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3261, allocations: 0 / 404 MB, free: 44.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003892/0.3265, allocations: 129.8 kB / 404.2 MB, free: 44.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.3266, allocations: 4.594 kB / 404.2 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.3266, allocations: 3.938 kB / 404.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.9e-05/0.3266, allocations: 2.969 kB / 404.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.3268, allocations: 26.31 kB / 404.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3268, allocations: 2.375 kB / 404.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.327, allocations: 8.594 kB / 404.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.327, allocations: 4.875 kB / 404.2 MB, free: 44 MB / 318.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.0001132/0.3271, allocations: 136.1 kB / 404.4 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.345e-05/0.3272, allocations: 12.42 kB / 404.4 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/0.3272, allocations: 11.81 kB / 404.4 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.3273, allocations: 5.234 kB / 404.4 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3273, allocations: 1.062 kB / 404.4 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3273, allocations: 1.062 kB / 404.4 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002814/0.3276, allocations: 212.9 kB / 404.6 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3276, allocations: 0 / 404.6 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.3278, allocations: 16.95 kB / 404.6 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3278, allocations: 9.047 kB / 404.6 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.3278, allocations: 1.781 kB / 404.6 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3278, allocations: 1.531 kB / 404.6 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3278, allocations: 0 / 404.6 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004964/0.3283, allocations: 232.7 kB / 404.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.3284, allocations: 88.31 kB / 404.9 MB, free: 43.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.3284, allocations: 5.156 kB / 404.9 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.3286, allocations: 7.75 kB / 405 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.3287, allocations: 11.36 kB / 405 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.3287, allocations: 2.125 kB / 405 MB, free: 43.28 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.128e-05/0.3288, allocations: 114.1 kB / 405.1 MB, free: 43.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3288, allocations: 0 / 405.1 MB, free: 43.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.3293, allocations: 17.34 kB / 405.1 MB, free: 43.18 MB / 318.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.0001005/0.3294, allocations: 105.7 kB / 405.2 MB, free: 43.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.3297, allocations: 70.56 kB / 405.3 MB, free: 43.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3297, allocations: 0 / 405.3 MB, free: 43.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.3298, allocations: 34.31 kB / 405.3 MB, free: 43.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/0.3303, allocations: 31.27 kB / 405.3 MB, free: 43.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006634/0.331, allocations: 240.6 kB / 405.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.3312, allocations: 0.7017 MB / 406.3 MB, free: 42.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.155e-05/0.3313, allocations: 14.23 kB / 406.3 MB, free: 42.1 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.3314, allocations: 12.91 kB / 406.3 MB, free: 42.09 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3314, allocations: 0 / 406.3 MB, free: 42.09 MB / 318.1 MB Notification: Performance of Templates: time 0.004978/0.3364, allocations: 0.9911 MB / 407.3 MB, free: 41.59 MB / 318.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches