Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.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.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") translateModel(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 107.6 kB / 15.99 MB, free: 5.91 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.001549/0.001549, allocations: 192.5 kB / 16.91 MB, free: 5.758 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.727/1.727, allocations: 222.9 MB / 240.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07973/0.07973, allocations: 16.76 MB / 307.5 MB, free: 14.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001662, allocations: 63.55 kB / 371.9 MB, free: 48.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2081, allocations: 53.57 MB / 425.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.003083/0.2113, allocations: 0.7342 MB / 426.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003222/0.2117, allocations: 59.78 kB / 426.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.612e-05/0.2118, allocations: 7.938 kB / 426.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.968e-05/0.2118, allocations: 4 kB / 426.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.212, allocations: 3.938 kB / 426.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.2122, allocations: 15.98 kB / 426.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.2124, allocations: 19.92 kB / 426.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.2126, allocations: 8 kB / 426.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.613e-05/0.2126, allocations: 4 kB / 426.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.432e-05/0.2127, allocations: 15.92 kB / 426.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.849e-05/0.2128, allocations: 0 / 426.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.491e-05/0.2128, allocations: 4 kB / 426.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.2128, allocations: 7.984 kB / 426.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.115e-05/0.2129, allocations: 15.92 kB / 426.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.687e-05/0.213, allocations: 7.984 kB / 426.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.213, allocations: 0 / 426.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.213, allocations: 0 / 426.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.213, allocations: 0 / 426.4 MB, free: 12.23 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006326/0.2136, allocations: 344.6 kB / 426.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.2137, allocations: 8.031 kB / 426.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.618e-05/0.2138, allocations: 0.9375 kB / 426.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.214, allocations: 168.7 kB / 426.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.214, allocations: 4.375 kB / 426.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.214, allocations: 4.375 kB / 426.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002479/0.2143, allocations: 72.75 kB / 427 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.2143, allocations: 192 / 427 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.2144, allocations: 11.92 kB / 427 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2144, allocations: 3.938 kB / 427 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000171/0.2145, allocations: 39.91 kB / 427 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004713/0.215, allocations: 273.7 kB / 427.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.2152, allocations: 69.12 kB / 427.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.981e-05/0.2153, allocations: 33.7 kB / 427.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.2154, allocations: 0 / 427.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.2154, allocations: 34.56 kB / 427.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 7.71e-07/0.2154, allocations: 0 / 427.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000415/0.2158, allocations: 97.48 kB / 427.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.837e-05/0.2159, allocations: 102.8 kB / 427.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.826e-05/0.216, allocations: 97.84 kB / 427.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.216, allocations: 29.7 kB / 427.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.2161, allocations: 84.39 kB / 427.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.2161, allocations: 11.89 kB / 427.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.2162, allocations: 17.72 kB / 427.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.2163, allocations: 314.8 kB / 428.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.938e-05/0.2164, allocations: 24.84 kB / 428.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.033e-05/0.2165, allocations: 30.56 kB / 428.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.2166, allocations: 53.66 kB / 428.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2167, allocations: 0 / 428.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001848/0.2168, allocations: 77.53 kB / 428.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2169, allocations: 8.062 kB / 428.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.2169, allocations: 0 / 428.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.2169, allocations: 4 kB / 428.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.217, allocations: 11.98 kB / 428.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.217, allocations: 0 / 428.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.218e-05/0.2171, allocations: 7.984 kB / 428.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.2171, allocations: 0 / 428.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.392e-05/0.2172, allocations: 93.02 kB / 428.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.558e-05/0.2172, allocations: 26.56 kB / 428.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.301e-05/0.2173, allocations: 33.64 kB / 428.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.31e-07/0.2173, allocations: 0 / 428.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001109/0.2175, allocations: 57.53 kB / 428.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.072e-06/0.2175, allocations: 4 kB / 428.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-06/0.2175, allocations: 4.094 kB / 428.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.416e-06/0.2175, allocations: 4 kB / 428.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.212e-05/0.2175, allocations: 4 kB / 428.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.314e-06/0.2175, allocations: 7.875 kB / 428.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.79e-05/0.2176, allocations: 11.98 kB / 428.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-06/0.2176, allocations: 0 / 428.6 MB, free: 9.684 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001103/0.2177, allocations: 188.2 kB / 428.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.2177, allocations: 0 / 428.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.813e-05/0.2178, allocations: 11.06 kB / 428.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2178, allocations: 4 kB / 428.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.2178, allocations: 0 / 428.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2178, allocations: 0 / 428.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.218, allocations: 165.6 kB / 429 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.218, allocations: 4 kB / 429 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.235e-05/0.218, allocations: 11.98 kB / 429 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.218, allocations: 0 / 429 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.218, allocations: 0 / 429 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2181, allocations: 0 / 429 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2181, allocations: 384 / 429 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000237/0.2183, allocations: 184.2 kB / 429.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.783e-05/0.2184, allocations: 81.02 kB / 429.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.2184, allocations: 4 kB / 429.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.37e-05/0.2185, allocations: 7.984 kB / 429.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.2185, allocations: 8 kB / 429.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.2185, allocations: 0 / 429.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.961e-05/0.2186, allocations: 87.27 kB / 429.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2186, allocations: 0 / 429.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.2189, allocations: 7.938 kB / 429.4 MB, free: 8.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * 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 (3): * Single equations (assignments): 3 * 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.0001429/0.219, allocations: 95.25 kB / 429.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003041/0.2193, allocations: 59.89 kB / 429.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2193, allocations: 0 / 429.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.53e-05/0.2194, allocations: 27.92 kB / 429.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.2197, allocations: 3.938 kB / 429.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000425/0.2201, allocations: 152 kB / 429.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.2204, allocations: 0.6768 MB / 430.4 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.679e-05/0.2204, allocations: 7.438 kB / 430.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2204, allocations: 0 / 430.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of Templates: time 0.002598/0.223, allocations: 0.629 MB / 431 MB, free: 7.121 MB / 302.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches