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.01146/0.01146, allocations: 101.7 kB / 15.73 MB, free: 6.07 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.002074/0.002074, allocations: 196.2 kB / 16.67 MB, free: 5.977 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.765/1.765, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06414/0.06414, allocations: 14.17 MB / 284.1 MB, free: 6.977 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.001832/0.001832, allocations: 64.12 kB / 398.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3472, allocations: 50.14 MB / 448.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002985/0.3503, allocations: 1.816 MB / 450.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000422/0.3507, allocations: 163.2 kB / 450.7 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.3509, allocations: 7.594 kB / 450.7 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.351, allocations: 29.08 kB / 450.7 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.3512, allocations: 30.59 kB / 450.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.514e-05/0.3513, allocations: 41.52 kB / 450.8 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.3515, allocations: 118.2 kB / 450.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.3517, allocations: 62.08 kB / 451 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.268e-05/0.3517, allocations: 48.25 kB / 451 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.3519, allocations: 50.7 kB / 451.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.3519, allocations: 8.25 kB / 451.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.328e-05/0.3519, allocations: 8.25 kB / 451.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.391e-05/0.352, allocations: 24.06 kB / 451.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.45e-05/0.352, allocations: 49.3 kB / 451.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.3523, allocations: 109.8 kB / 451.3 MB, free: 1.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3523, allocations: 0 / 451.3 MB, free: 1.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3523, allocations: 0 / 451.3 MB, free: 1.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3523, allocations: 1.375 kB / 451.3 MB, free: 1.02 MB / 318.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.0005824/0.3529, allocations: 424.2 kB / 451.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3529, allocations: 9.625 kB / 451.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.833e-05/0.353, allocations: 19.72 kB / 451.7 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.3533, allocations: 218 kB / 451.9 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.3533, allocations: 8.688 kB / 451.9 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.107e-05/0.3533, allocations: 11.25 kB / 452 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002573/0.3536, allocations: 143.3 kB / 452.1 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3536, allocations: 0 / 452.1 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.3536, allocations: 5.375 kB / 452.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3536, allocations: 2.75 kB / 452.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.3538, allocations: 69.7 kB / 452.2 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007972/0.3546, allocations: 0.6031 MB / 452.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.3549, allocations: 110.4 kB / 452.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3551, allocations: 46.78 kB / 452.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.3551, allocations: 1.125 kB / 452.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.3551, allocations: 36.98 kB / 453 MB, free: 15.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.3551, allocations: 0 / 453 MB, free: 15.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000407/0.3555, allocations: 112.8 kB / 453.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.444e-05/0.3556, allocations: 113.6 kB / 453.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.3558, allocations: 147.3 kB / 453.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.3558, allocations: 31.27 kB / 453.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.356, allocations: 117.9 kB / 453.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.356, allocations: 31.73 kB / 453.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.421e-05/0.3561, allocations: 21.44 kB / 453.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3562, allocations: 325.9 kB / 453.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.774e-05/0.3563, allocations: 24.39 kB / 453.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.3564, allocations: 67.08 kB / 453.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.3567, allocations: 102 kB / 454 MB, free: 14.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.3567, allocations: 5.25 kB / 454 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002741/0.3569, allocations: 122.2 kB / 454.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.357, allocations: 9.859 kB / 454.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.357, allocations: 1.25 kB / 454.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.357, allocations: 2.125 kB / 454.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.3572, allocations: 23.55 kB / 454.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.3572, allocations: 1.531 kB / 454.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.579e-05/0.3573, allocations: 9.297 kB / 454.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.3573, allocations: 16.27 kB / 454.2 MB, free: 14.26 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 0.0001112/0.3574, allocations: 128.8 kB / 454.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.3574, allocations: 8.891 kB / 454.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.828e-05/0.3575, allocations: 15.16 kB / 454.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3575, allocations: 1.406 kB / 454.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3575, allocations: 1.562 kB / 454.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.3575, allocations: 3.984 kB / 454.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002458/0.3578, allocations: 212.6 kB / 454.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3578, allocations: 1.156 kB / 454.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.3579, allocations: 20.7 kB / 454.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3579, allocations: 1.156 kB / 454.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3579, allocations: 1.125 kB / 454.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3579, allocations: 1.125 kB / 454.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3579, allocations: 1.094 kB / 454.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004219/0.3584, allocations: 236.1 kB / 454.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.868e-05/0.3584, allocations: 85 kB / 454.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.3585, allocations: 5.219 kB / 454.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.762e-05/0.3586, allocations: 7.734 kB / 454.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.3586, allocations: 6.828 kB / 454.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.3586, allocations: 2.438 kB / 454.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.192e-05/0.3587, allocations: 119.4 kB / 455.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3587, allocations: 4.062 kB / 455.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.359, allocations: 17.11 kB / 455.1 MB, free: 13.45 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 0.0001022/0.3591, allocations: 104.2 kB / 455.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002609/0.3594, allocations: 75.73 kB / 455.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3594, allocations: 0 / 455.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.785e-05/0.3595, allocations: 34.11 kB / 455.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.3598, allocations: 28.14 kB / 455.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000534/0.3604, allocations: 242.6 kB / 455.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.3606, allocations: 0.707 MB / 456.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.13e-05/0.3607, allocations: 9.625 kB / 456.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.568e-05/0.3607, allocations: 13.31 kB / 456.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3608, allocations: 0 / 456.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of Templates: time 0.003758/0.3645, allocations: 1.012 MB / 457.3 MB, free: 11.84 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches