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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 169.3 kB / 23.02 MB, free: 1.555 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9711/0.9711, allocations: 158.6 MB / 184.9 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.04629/0.04629, allocations: 10.65 MB / 247.9 MB, free: 4.465 MB / 234.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 319.5 MB, free: 39.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.06e-05/2.271e-05, allocations: 3.078 kB / 319.5 MB, free: 39.58 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002209/0.002232, allocations: 1.836 MB / 321.3 MB, free: 37.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003439/0.002576, allocations: 167.5 kB / 321.5 MB, free: 37.57 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.002676, allocations: 7.938 kB / 321.5 MB, free: 37.56 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.002825, allocations: 19.8 kB / 321.5 MB, free: 37.54 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.002997, allocations: 31.72 kB / 321.5 MB, free: 37.51 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.731e-05/0.003084, allocations: 47.89 kB / 321.6 MB, free: 37.46 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.003219, allocations: 123.6 kB / 321.7 MB, free: 37.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.00335, allocations: 38.84 kB / 321.7 MB, free: 37.31 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.965e-05/0.00342, allocations: 63.83 kB / 321.8 MB, free: 37.25 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.244e-05/0.003502, allocations: 31.89 kB / 321.8 MB, free: 37.21 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.003522, allocations: 8 kB / 321.8 MB, free: 37.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.241e-05/0.003535, allocations: 8 kB / 321.8 MB, free: 37.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.777e-05/0.003563, allocations: 23.86 kB / 321.9 MB, free: 37.18 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.003592, allocations: 35.91 kB / 321.9 MB, free: 37.14 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.003719, allocations: 67.62 kB / 322 MB, free: 37.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.00372, allocations: 4 kB / 322 MB, free: 37.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003721, allocations: 0 / 322 MB, free: 37.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.003725, allocations: 4 kB / 322 MB, free: 37.07 MB / 282.7 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.000393/0.004118, allocations: 450.7 kB / 322.4 MB, free: 36.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.004153, allocations: 8.031 kB / 322.4 MB, free: 36.58 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.529e-05/0.004198, allocations: 24.84 kB / 322.4 MB, free: 36.56 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.00436, allocations: 160.4 kB / 322.6 MB, free: 36.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.004379, allocations: 12.56 kB / 322.6 MB, free: 36.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.004405, allocations: 12.38 kB / 322.6 MB, free: 36.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.004573, allocations: 149.8 kB / 322.8 MB, free: 36.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.004582, allocations: 3.938 kB / 322.8 MB, free: 36.17 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.004593, allocations: 0 / 322.8 MB, free: 36.17 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.004601, allocations: 4 kB / 322.8 MB, free: 36.17 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.443e-05/0.004656, allocations: 31.92 kB / 322.8 MB, free: 36.14 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004431/0.005099, allocations: 0.6674 MB / 323.5 MB, free: 35.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.005259, allocations: 117.2 kB / 323.6 MB, free: 35.26 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.548e-05/0.005295, allocations: 35.31 kB / 323.6 MB, free: 35.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.005311, allocations: 4 kB / 323.6 MB, free: 35.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.005328, allocations: 49.25 kB / 323.7 MB, free: 35.15 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.005329, allocations: 0 / 323.7 MB, free: 35.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.000174/0.005503, allocations: 77.58 kB / 323.8 MB, free: 35.07 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.358e-05/0.005526, allocations: 106.8 kB / 323.9 MB, free: 34.94 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.975e-05/0.005606, allocations: 210.1 kB / 324.1 MB, free: 34.72 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.814e-06/0.005614, allocations: 33.64 kB / 324.1 MB, free: 34.68 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/0.00566, allocations: 166.7 kB / 324.3 MB, free: 34.52 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.005676, allocations: 31.73 kB / 324.3 MB, free: 34.48 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/0.005708, allocations: 27.38 kB / 324.3 MB, free: 34.45 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.005772, allocations: 0.4961 MB / 324.8 MB, free: 33.94 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.815e-05/0.0058, allocations: 11.98 kB / 324.8 MB, free: 33.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-05/0.005859, allocations: 100.6 kB / 324.9 MB, free: 33.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.507e-05/0.005934, allocations: 86.34 kB / 325 MB, free: 33.69 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.005937, allocations: 0 / 325 MB, free: 33.69 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 9.401e-05/0.006031, allocations: 93.5 kB / 325.1 MB, free: 33.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.006045, allocations: 13.81 kB / 325.1 MB, free: 33.58 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.006051, allocations: 0 / 325.1 MB, free: 33.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.006067, allocations: 4 kB / 325.1 MB, free: 33.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.216e-05/0.006149, allocations: 32.08 kB / 325.1 MB, free: 33.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.006156, allocations: 4 kB / 325.2 MB, free: 33.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.501e-05/0.006191, allocations: 7.953 kB / 325.2 MB, free: 33.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.0062, allocations: 4 kB / 325.2 MB, free: 33.53 MB / 282.7 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 4.978e-05/0.006249, allocations: 164.6 kB / 325.3 MB, free: 33.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.00627, allocations: 15.83 kB / 325.3 MB, free: 33.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.006295, allocations: 16.47 kB / 325.4 MB, free: 33.33 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.006297, allocations: 4 kB / 325.4 MB, free: 33.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.006301, allocations: 0 / 325.4 MB, free: 33.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.006304, allocations: 0 / 325.4 MB, free: 33.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.006405, allocations: 156.5 kB / 325.5 MB, free: 33.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.006406, allocations: 4 kB / 325.5 MB, free: 33.13 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.724e-05/0.006453, allocations: 15.98 kB / 325.5 MB, free: 33.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-06/0.006454, allocations: 0 / 325.5 MB, free: 33.12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.006464, allocations: 3.938 kB / 325.5 MB, free: 33.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.006465, allocations: 4 kB / 325.5 MB, free: 33.11 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.006466, allocations: 3.938 kB / 325.5 MB, free: 33.11 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.006603, allocations: 251.1 kB / 325.8 MB, free: 32.83 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.215e-05/0.006615, allocations: 7.953 kB / 325.8 MB, free: 32.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.006627, allocations: 3.938 kB / 325.8 MB, free: 32.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.461e-05/0.006671, allocations: 12.03 kB / 325.8 MB, free: 32.81 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.006709, allocations: 8.031 kB / 325.8 MB, free: 32.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.006714, allocations: 8 kB / 325.8 MB, free: 32.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.915e-05/0.006753, allocations: 154.6 kB / 326 MB, free: 32.64 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006753, allocations: 0 / 326 MB, free: 32.64 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001512/0.006904, allocations: 15.95 kB / 326 MB, free: 32.63 MB / 282.7 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 5.243e-05/0.006957, allocations: 99.25 kB / 326.1 MB, free: 32.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.007063, allocations: 51.78 kB / 326.1 MB, free: 32.47 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.007064, allocations: 4.062 kB / 326.1 MB, free: 32.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.556e-05/0.007089, allocations: 31.69 kB / 326.2 MB, free: 32.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.007302, allocations: 25.23 kB / 326.2 MB, free: 32.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/0.007641, allocations: 257.8 kB / 326.5 MB, free: 32.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.083e-05/0.007672, allocations: 64.03 kB / 326.5 MB, free: 32.03 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.554e-05/0.007707, allocations: 12.61 kB / 326.5 MB, free: 32.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.007739, allocations: 12.5 kB / 326.5 MB, free: 32.01 MB / 282.7 MB Notification: Performance of SimCode: time 5.92e-07/0.007739, allocations: 4 kB / 326.5 MB, free: 32 MB / 282.7 MB Notification: Performance of Templates: time 0.002531/0.01027, allocations: 1.058 MB / 327.6 MB, free: 30.96 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0423470130190253]