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.001293/0.001293, allocations: 103.2 kB / 15.98 MB, free: 6.348 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.001287/0.001287, allocations: 199 kB / 16.91 MB, free: 6.188 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.367/1.367, allocations: 205.1 MB / 222.8 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06178/0.06178, allocations: 14.16 MB / 284.3 MB, free: 7.262 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.001349/0.001349, allocations: 63.91 kB / 347.3 MB, free: 17.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08603/0.08739, allocations: 50.14 MB / 397.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003269/0.09071, allocations: 1.875 MB / 399.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003959/0.09114, allocations: 159.5 kB / 399.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.818e-05/0.09125, allocations: 7.938 kB / 399.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.09141, allocations: 19.86 kB / 399.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.09157, allocations: 27.78 kB / 399.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.388e-05/0.09167, allocations: 35.97 kB / 399.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.09185, allocations: 123.7 kB / 399.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.092, allocations: 45.28 kB / 399.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.047e-05/0.09207, allocations: 55.7 kB / 399.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.146e-05/0.09217, allocations: 47.78 kB / 399.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.0922, allocations: 8 kB / 399.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.732e-05/0.09222, allocations: 8 kB / 399.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.117e-05/0.09226, allocations: 27.8 kB / 399.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.493e-05/0.09232, allocations: 47.73 kB / 399.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.09244, allocations: 79.89 kB / 400 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.09245, allocations: 0 / 400 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09246, allocations: 3.938 kB / 400 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.09247, allocations: 0 / 400 MB, free: 12.93 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.0005875/0.09306, allocations: 415.2 kB / 400.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.09311, allocations: 12.03 kB / 400.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.568e-05/0.09316, allocations: 12.75 kB / 400.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.0934, allocations: 224 kB / 400.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.09343, allocations: 4.562 kB / 400.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.09347, allocations: 16.36 kB / 400.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/0.09375, allocations: 138.2 kB / 400.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.09378, allocations: 8 kB / 400.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.0938, allocations: 4 kB / 400.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.09381, allocations: 4 kB / 400.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.09401, allocations: 59.91 kB / 400.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007239/0.09474, allocations: 0.6069 MB / 401.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.09504, allocations: 108 kB / 401.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.09516, allocations: 46.56 kB / 401.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.09518, allocations: 0 / 401.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.09521, allocations: 38.56 kB / 401.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.09522, allocations: 0 / 401.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.000369/0.09559, allocations: 121.5 kB / 401.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.09565, allocations: 106.8 kB / 401.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.09579, allocations: 155.2 kB / 402 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.09582, allocations: 29.95 kB / 402.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.09593, allocations: 115.9 kB / 402.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.09596, allocations: 27.56 kB / 402.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/0.09602, allocations: 25.7 kB / 402.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.09613, allocations: 322.8 kB / 402.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.529e-05/0.09622, allocations: 19.98 kB / 402.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.09638, allocations: 73.94 kB / 402.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.09658, allocations: 105 kB / 402.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.09659, allocations: 3.938 kB / 402.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002458/0.09684, allocations: 113.4 kB / 402.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.09687, allocations: 8 kB / 402.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.09688, allocations: 0 / 402.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.0969, allocations: 4 kB / 402.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.09704, allocations: 36.06 kB / 402.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.09706, allocations: 0 / 402.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.002e-05/0.09714, allocations: 11.94 kB / 402.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.09716, allocations: 4.312 kB / 402.9 MB, free: 9.66 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.000113/0.09728, allocations: 137.7 kB / 403 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.09732, allocations: 15.8 kB / 403.1 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.515e-05/0.09737, allocations: 12.31 kB / 403.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.09737, allocations: 0 / 403.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.09739, allocations: 8 kB / 403.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.0974, allocations: 0 / 403.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.09763, allocations: 209.5 kB / 403.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.09763, allocations: 0 / 403.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.09776, allocations: 15.98 kB / 403.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.09777, allocations: 0 / 403.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.09779, allocations: 7.984 kB / 403.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.0978, allocations: 0 / 403.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.09781, allocations: 0 / 403.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.09817, allocations: 237 kB / 403.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.74e-05/0.09822, allocations: 96.97 kB / 403.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.09825, allocations: 0 / 403.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.272e-05/0.09835, allocations: 4 kB / 403.6 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.09841, allocations: 12.05 kB / 403.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.09842, allocations: 8 kB / 403.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.439e-05/0.0985, allocations: 107.2 kB / 403.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.09851, allocations: 0 / 403.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.09877, allocations: 23.91 kB / 403.8 MB, free: 8.684 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.0001138/0.09889, allocations: 95.19 kB / 403.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002472/0.09914, allocations: 76.09 kB / 404 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.09915, allocations: 0 / 404 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.551e-05/0.09925, allocations: 43.84 kB / 404 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.09967, allocations: 20.14 kB / 404 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005469/0.1002, allocations: 307.5 kB / 404.3 MB, free: 8.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.1005, allocations: 0.7041 MB / 405 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.1005, allocations: 19.44 kB / 405 MB, free: 7.352 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1005, allocations: 0 / 405 MB, free: 7.352 MB / 302.1 MB Notification: Performance of Templates: time 0.002882/0.1034, allocations: 1.405 MB / 406.4 MB, free: 5.941 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