Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.005969/0.005969, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001199/0.001199, allocations: 190.4 kB / 16.67 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2124/0.2124, allocations: 16.77 MB / 307.3 MB, free: 14.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 67.05 kB / 428.7 MB, free: 35.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08726/0.08846, allocations: 53.56 MB / 482.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002399/0.09089, allocations: 1.823 MB / 484.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000329/0.09124, allocations: 171.2 kB / 484.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.853e-05/0.09135, allocations: 3.938 kB / 484.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.09149, allocations: 21.14 kB / 484.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.09163, allocations: 22.17 kB / 484.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.132e-05/0.09173, allocations: 51.17 kB / 484.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.09188, allocations: 125.6 kB / 484.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.09201, allocations: 55.31 kB / 484.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.747e-05/0.09206, allocations: 44.3 kB / 484.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.758e-05/0.09216, allocations: 45.39 kB / 484.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.277e-05/0.09219, allocations: 13.61 kB / 484.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.817e-05/0.09221, allocations: 8.25 kB / 484.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.266e-05/0.09224, allocations: 18.67 kB / 484.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.096e-05/0.09228, allocations: 54.61 kB / 484.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.09241, allocations: 108.4 kB / 484.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.09242, allocations: 1.375 kB / 484.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09242, allocations: 0 / 484.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.09244, allocations: 0 / 484.8 MB, free: 7.082 MB / 350.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.0004108/0.09286, allocations: 425.6 kB / 485.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.0929, allocations: 9.625 kB / 485.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.09294, allocations: 15.72 kB / 485.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.09316, allocations: 223 kB / 485.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.09318, allocations: 10.06 kB / 485.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.09321, allocations: 5.875 kB / 485.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.09343, allocations: 145.9 kB / 485.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.09345, allocations: 1.375 kB / 485.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.09346, allocations: 1.375 kB / 485.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.09347, allocations: 1.375 kB / 485.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.09365, allocations: 75.55 kB / 485.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004918/0.09415, allocations: 0.5865 MB / 486.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.09438, allocations: 119.4 kB / 486.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.677e-05/0.09448, allocations: 45.8 kB / 486.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.09451, allocations: 1.375 kB / 486.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.253e-05/0.09453, allocations: 39.94 kB / 486.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.09453, allocations: 1.375 kB / 486.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003235/0.09486, allocations: 112.9 kB / 486.6 MB, free: 5.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.0949, allocations: 104.2 kB / 486.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.717e-05/0.095, allocations: 154.2 kB / 486.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.09502, allocations: 27.36 kB / 486.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.09507, allocations: 129.3 kB / 487 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.09509, allocations: 23.7 kB / 487 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/0.09513, allocations: 25.19 kB / 487 MB, free: 4.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.918e-05/0.09518, allocations: 321.1 kB / 487.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.951e-05/0.09526, allocations: 21.11 kB / 487.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.48e-05/0.09535, allocations: 75.55 kB / 487.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.09552, allocations: 106.1 kB / 487.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.09553, allocations: 3.938 kB / 487.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002164/0.09575, allocations: 119.5 kB / 487.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.09577, allocations: 8.812 kB / 487.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.09578, allocations: 2.844 kB / 487.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.0958, allocations: 1.688 kB / 487.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.09593, allocations: 31.45 kB / 487.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.09594, allocations: 1.812 kB / 487.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.434e-05/0.09602, allocations: 12.42 kB / 487.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.09604, allocations: 3.688 kB / 487.7 MB, free: 4.324 MB / 350.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 6.515e-05/0.09611, allocations: 128.9 kB / 487.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.09614, allocations: 9.344 kB / 487.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.957e-05/0.09618, allocations: 15.47 kB / 487.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.09619, allocations: 9.609 kB / 487.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.09619, allocations: 0 / 487.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.0962, allocations: 1.938 kB / 487.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.09636, allocations: 204 kB / 488.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.09637, allocations: 5.5 kB / 488.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.09648, allocations: 20.06 kB / 488.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.09649, allocations: 1.438 kB / 488.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.09651, allocations: 5.125 kB / 488.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.09651, allocations: 1 kB / 488.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.09652, allocations: 5.094 kB / 488.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002856/0.09681, allocations: 232.4 kB / 488.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.572e-05/0.09684, allocations: 87.73 kB / 488.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.09687, allocations: 2.625 kB / 488.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.085e-05/0.09696, allocations: 10.64 kB / 488.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.09701, allocations: 7.688 kB / 488.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.09702, allocations: 2.312 kB / 488.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.693e-05/0.09709, allocations: 114 kB / 488.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0971, allocations: 0 / 488.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002478/0.09735, allocations: 21.53 kB / 488.6 MB, free: 3.512 MB / 350.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 6.846e-05/0.09742, allocations: 97.16 kB / 488.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002253/0.09765, allocations: 75.05 kB / 488.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.09767, allocations: 0 / 488.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.505e-05/0.09776, allocations: 34.7 kB / 488.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.09808, allocations: 23.16 kB / 488.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004441/0.09853, allocations: 249.4 kB / 489.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.09866, allocations: 0.7093 MB / 489.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.556e-05/0.09872, allocations: 13.17 kB / 489.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.09876, allocations: 13.38 kB / 489.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09876, allocations: 0 / 489.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of Templates: time 0.003048/0.1018, allocations: 0.9993 MB / 490.8 MB, free: 1.547 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches