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.001576/0.001576, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001634/0.001634, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.31/1.31, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0635/0.0635, allocations: 14.17 MB / 284.7 MB, free: 13.85 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.0014/0.0014, allocations: 70.97 kB / 399.3 MB, free: 42.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.065/0.06641, allocations: 50.13 MB / 449.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002726/0.06916, allocations: 1.831 MB / 451.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003558/0.06954, allocations: 167.4 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.28e-05/0.06965, allocations: 11.94 kB / 451.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.06978, allocations: 15.8 kB / 451.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.06993, allocations: 23.8 kB / 451.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.394e-05/0.07003, allocations: 43.89 kB / 451.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001664/0.0702, allocations: 131.6 kB / 451.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.07035, allocations: 53.31 kB / 451.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.725e-05/0.07041, allocations: 51.84 kB / 451.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.07053, allocations: 47.66 kB / 451.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.07056, allocations: 8 kB / 451.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.777e-05/0.07059, allocations: 8 kB / 451.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.07062, allocations: 23.91 kB / 451.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.372e-05/0.07067, allocations: 55.67 kB / 451.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.07082, allocations: 103.6 kB / 452 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.07083, allocations: 0 / 452 MB, free: 9.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.07084, allocations: 0 / 452 MB, free: 9.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.07085, allocations: 0 / 452 MB, free: 9.008 MB / 334.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.0004811/0.07134, allocations: 423.2 kB / 452.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.07138, allocations: 8.031 kB / 452.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.07143, allocations: 12.84 kB / 452.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.0717, allocations: 220 kB / 452.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.07172, allocations: 8.562 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.07176, allocations: 12.38 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.07201, allocations: 136.3 kB / 452.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.07203, allocations: 7.938 kB / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.07204, allocations: 0 / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.07205, allocations: 4 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.07226, allocations: 63.89 kB / 452.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006473/0.07291, allocations: 0.5991 MB / 453.4 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.07318, allocations: 111.8 kB / 453.5 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.07329, allocations: 46.69 kB / 453.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.07332, allocations: 0 / 453.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.07335, allocations: 46.5 kB / 453.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.07336, allocations: 0 / 453.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003703/0.07373, allocations: 109.7 kB / 453.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.0738, allocations: 110.7 kB / 453.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.07393, allocations: 151 kB / 454 MB, free: 6.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.07395, allocations: 25.95 kB / 454 MB, free: 6.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.07404, allocations: 123.8 kB / 454.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.07407, allocations: 27.64 kB / 454.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.07412, allocations: 29.7 kB / 454.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.07424, allocations: 318.8 kB / 454.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.294e-05/0.07434, allocations: 27.91 kB / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.07445, allocations: 66.25 kB / 454.6 MB, free: 6.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.07468, allocations: 109 kB / 454.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.07469, allocations: 0 / 454.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002613/0.07495, allocations: 117.4 kB / 454.8 MB, free: 5.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.07498, allocations: 8 kB / 454.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.07499, allocations: 0 / 454.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.07501, allocations: 0 / 454.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.07515, allocations: 32.08 kB / 454.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.07517, allocations: 4 kB / 454.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.249e-05/0.07526, allocations: 11.89 kB / 454.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.07528, allocations: 4 kB / 454.9 MB, free: 5.75 MB / 334.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 9.617e-05/0.07538, allocations: 129.7 kB / 455 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.07542, allocations: 7.906 kB / 455 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/0.07546, allocations: 24.28 kB / 455 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.07547, allocations: 0 / 455 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.07548, allocations: 0 / 455 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.07549, allocations: 11.94 kB / 455 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.0757, allocations: 201.5 kB / 455.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.07571, allocations: 4 kB / 455.2 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.07583, allocations: 23.92 kB / 455.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.07584, allocations: 0 / 455.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.07586, allocations: 0 / 455.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.07587, allocations: 4 kB / 455.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.07587, allocations: 0 / 455.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/0.07624, allocations: 240.9 kB / 455.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.0763, allocations: 85.05 kB / 455.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/0.07633, allocations: 4.062 kB / 455.6 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.836e-05/0.07643, allocations: 7.984 kB / 455.6 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.633e-05/0.07648, allocations: 12.06 kB / 455.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.423e-06/0.0765, allocations: 3.984 kB / 455.6 MB, free: 4.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.43e-05/0.07658, allocations: 111.9 kB / 455.7 MB, free: 4.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07658, allocations: 0 / 455.7 MB, free: 4.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.07685, allocations: 16 kB / 455.7 MB, free: 4.781 MB / 334.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.208e-05/0.07694, allocations: 95.25 kB / 455.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002398/0.07719, allocations: 80.08 kB / 455.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.0772, allocations: 4 kB / 455.9 MB, free: 4.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.508e-05/0.0773, allocations: 31.92 kB / 455.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.07764, allocations: 23.98 kB / 456 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005017/0.07815, allocations: 278.8 kB / 456.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.07841, allocations: 0.7042 MB / 456.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.127e-05/0.07846, allocations: 15.44 kB / 457 MB, free: 3.484 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.07847, allocations: 0 / 457 MB, free: 3.484 MB / 334.1 MB Notification: Performance of Templates: time 0.002862/0.08133, allocations: 1.417 MB / 458.4 MB, free: 2.062 MB / 334.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 -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