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.001077/0.001077, allocations: 100.1 kB / 15.88 MB, free: 8 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.001129/0.001129, allocations: 196.7 kB / 16.79 MB, free: 6.828 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.319/1.319, allocations: 205.1 MB / 222.7 MB, free: 5.074 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06246/0.06246, allocations: 14.16 MB / 284.1 MB, free: 7.598 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.001435/0.001435, allocations: 60.42 kB / 347.1 MB, free: 17.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08135/0.08279, allocations: 50.14 MB / 397.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.00293/0.08576, allocations: 1.883 MB / 399.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003421/0.08613, allocations: 167.4 kB / 399.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.755e-05/0.08624, allocations: 4 kB / 399.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.08639, allocations: 11.86 kB / 399.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.08654, allocations: 19.86 kB / 399.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.215e-05/0.08664, allocations: 31.98 kB / 399.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.08682, allocations: 119.6 kB / 399.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.08697, allocations: 57.25 kB / 399.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.375e-05/0.08704, allocations: 43.73 kB / 399.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.327e-05/0.08713, allocations: 43.77 kB / 399.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.08716, allocations: 4 kB / 399.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.771e-05/0.08719, allocations: 4 kB / 399.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.019e-05/0.08722, allocations: 23.86 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.211e-05/0.08728, allocations: 35.75 kB / 399.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.08739, allocations: 83.81 kB / 399.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.0874, allocations: 0 / 399.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.0874, allocations: 0 / 399.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.08742, allocations: 4 kB / 399.7 MB, free: 13.13 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.0005566/0.08798, allocations: 423.2 kB / 400.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.08802, allocations: 8.031 kB / 400.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.08807, allocations: 16.75 kB / 400.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.08831, allocations: 212.1 kB / 400.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.08834, allocations: 16.44 kB / 400.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.08837, allocations: 4.375 kB / 400.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.08864, allocations: 138.2 kB / 400.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.08866, allocations: 0 / 400.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.08868, allocations: 7.984 kB / 400.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.08869, allocations: 4 kB / 400.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.0889, allocations: 67.89 kB / 400.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007058/0.08961, allocations: 0.6107 MB / 401.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.0899, allocations: 103.9 kB / 401.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.09002, allocations: 46.67 kB / 401.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.09005, allocations: 8 kB / 401.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.09008, allocations: 30.56 kB / 401.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.09008, allocations: 3.938 kB / 401.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003909/0.09048, allocations: 117.6 kB / 401.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.09054, allocations: 115 kB / 401.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.09067, allocations: 147 kB / 401.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.0907, allocations: 25.7 kB / 401.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.09076, allocations: 115.9 kB / 401.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.0908, allocations: 31.55 kB / 402 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.09086, allocations: 25.72 kB / 402 MB, free: 10.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.09096, allocations: 318.8 kB / 402.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/0.09106, allocations: 31.97 kB / 402.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.09119, allocations: 65.94 kB / 402.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.0914, allocations: 105 kB / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.09142, allocations: 0 / 402.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002628/0.09168, allocations: 117.4 kB / 402.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.09171, allocations: 4.156 kB / 402.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.09172, allocations: 8 kB / 402.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.09174, allocations: 3.938 kB / 402.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.09189, allocations: 23.98 kB / 402.7 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.0919, allocations: 3.938 kB / 402.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.823e-05/0.092, allocations: 19.92 kB / 402.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.09202, allocations: 4 kB / 402.7 MB, free: 9.859 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 9.843e-05/0.09212, allocations: 125.8 kB / 402.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.09217, allocations: 23.75 kB / 402.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.101e-05/0.09221, allocations: 12.3 kB / 402.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.09222, allocations: 4 kB / 402.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.09222, allocations: 320 / 402.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.09223, allocations: 0 / 402.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.09246, allocations: 213.5 kB / 403.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.09246, allocations: 0 / 403.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.09259, allocations: 15.98 kB / 403.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.0926, allocations: 7.938 kB / 403.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.09262, allocations: 4 kB / 403.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.09263, allocations: 4 kB / 403.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.09264, allocations: 0 / 403.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003569/0.093, allocations: 221.1 kB / 403.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/0.09306, allocations: 96.97 kB / 403.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.09308, allocations: 8.062 kB / 403.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.0932, allocations: 3.984 kB / 403.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.09326, allocations: 7.938 kB / 403.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.09328, allocations: 7.984 kB / 403.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.271e-05/0.09335, allocations: 107.3 kB / 403.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09336, allocations: 4 kB / 403.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002518/0.09362, allocations: 19.91 kB / 403.5 MB, free: 8.891 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 9.158e-05/0.09372, allocations: 95.19 kB / 403.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002357/0.09396, allocations: 75.83 kB / 403.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09397, allocations: 0 / 403.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.695e-05/0.09407, allocations: 31.92 kB / 403.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.09446, allocations: 23.98 kB / 403.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005433/0.09501, allocations: 309.5 kB / 404.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.0953, allocations: 0.7083 MB / 404.8 MB, free: 7.578 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.129e-05/0.09535, allocations: 15.38 kB / 404.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09536, allocations: 0 / 404.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of Templates: time 0.002788/0.09815, allocations: 1.402 MB / 406.2 MB, free: 6.156 MB / 302.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","../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches