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.001572/0.001572, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001999/0.001999, allocations: 193.9 kB / 16.13 MB, free: 6.668 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.464/1.464, allocations: 205.1 MB / 222 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06575/0.06575, allocations: 14.15 MB / 283.5 MB, free: 7.301 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.001394/0.001394, allocations: 71.91 kB / 346.4 MB, free: 17.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08515/0.08656, allocations: 50.14 MB / 396.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003614/0.09021, allocations: 1.877 MB / 398.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000494/0.09074, allocations: 163.4 kB / 398.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.09095, allocations: 4 kB / 398.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.09114, allocations: 19.86 kB / 398.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.09139, allocations: 11.86 kB / 398.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001152/0.09152, allocations: 39.97 kB / 398.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.09174, allocations: 115.6 kB / 398.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.09191, allocations: 61.25 kB / 398.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.527e-05/0.092, allocations: 47.72 kB / 398.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.09215, allocations: 39.78 kB / 398.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.09218, allocations: 4 kB / 398.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.993e-05/0.09221, allocations: 4 kB / 399 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.129e-05/0.09225, allocations: 19.86 kB / 399 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.342e-05/0.09231, allocations: 43.73 kB / 399 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.09245, allocations: 99.62 kB / 399.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.09246, allocations: 4 kB / 399.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.09247, allocations: 0 / 399.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.09248, allocations: 0 / 399.1 MB, free: 13.07 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.0005902/0.09307, allocations: 423.2 kB / 399.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.09312, allocations: 8.031 kB / 399.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.09319, allocations: 16.75 kB / 399.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.09346, allocations: 212.1 kB / 399.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.09349, allocations: 8.562 kB / 399.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.09354, allocations: 20.31 kB / 399.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.09381, allocations: 134.2 kB / 399.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.09383, allocations: 0 / 399.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.09385, allocations: 0 / 399.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.09386, allocations: 4 kB / 399.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000213/0.09408, allocations: 71.89 kB / 400 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007801/0.09487, allocations: 0.6107 MB / 400.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.09515, allocations: 103.8 kB / 400.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.09528, allocations: 46.75 kB / 400.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.0953, allocations: 0 / 400.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.09533, allocations: 34.56 kB / 400.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.09534, allocations: 0 / 400.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003926/0.09574, allocations: 129.7 kB / 400.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.09581, allocations: 102.8 kB / 401 MB, free: 10.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.09595, allocations: 147 kB / 401.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.09598, allocations: 29.7 kB / 401.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.629e-05/0.09607, allocations: 119.8 kB / 401.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.09611, allocations: 27.56 kB / 401.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.09617, allocations: 29.7 kB / 401.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.09629, allocations: 322.8 kB / 401.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.483e-05/0.09649, allocations: 27.95 kB / 401.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.09661, allocations: 65.94 kB / 401.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.09684, allocations: 105 kB / 401.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.09685, allocations: 4 kB / 401.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002733/0.09713, allocations: 125.8 kB / 402 MB, free: 9.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.09716, allocations: 4 kB / 402 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.09718, allocations: 8 kB / 402 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.0972, allocations: 0 / 402 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.09735, allocations: 23.98 kB / 402 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.09737, allocations: 11.92 kB / 402 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.101e-05/0.09747, allocations: 11.92 kB / 402.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.09749, allocations: 4 kB / 402.1 MB, free: 9.789 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.0001359/0.09764, allocations: 129.8 kB / 402.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/0.09768, allocations: 15.81 kB / 402.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.181e-05/0.09773, allocations: 20.3 kB / 402.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.09774, allocations: 0 / 402.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.09775, allocations: 0 / 402.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.09776, allocations: 0 / 402.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.09801, allocations: 201.6 kB / 402.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.09802, allocations: 0 / 402.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.09815, allocations: 23.98 kB / 402.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.09816, allocations: 0 / 402.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.09818, allocations: 4 kB / 402.4 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.09819, allocations: 3.938 kB / 402.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.0982, allocations: 4 kB / 402.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.09861, allocations: 233 kB / 402.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.0987, allocations: 89.02 kB / 402.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.09873, allocations: 7.984 kB / 402.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.09886, allocations: 4 kB / 402.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.09893, allocations: 7.984 kB / 402.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.09895, allocations: 4 kB / 402.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.125e-05/0.09904, allocations: 111.2 kB / 402.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.09905, allocations: 0 / 402.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002619/0.09932, allocations: 19.91 kB / 402.9 MB, free: 8.828 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.0001161/0.09944, allocations: 107.2 kB / 403 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002568/0.0997, allocations: 63.84 kB / 403.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.09971, allocations: 0 / 403.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.922e-05/0.09982, allocations: 35.92 kB / 403.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.1003, allocations: 24.23 kB / 403.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005501/0.1008, allocations: 279.8 kB / 403.4 MB, free: 8.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.1011, allocations: 0.7121 MB / 404.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.582e-05/0.1012, allocations: 12.55 kB / 404.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.83e-05/0.1012, allocations: 15.44 kB / 404.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1012, allocations: 7.938 kB / 404.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of Templates: time 0.003721/0.105, allocations: 0.8894 MB / 405 MB, free: 6.625 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/jenkins/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