Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.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.TestDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="deadBand.smoothed|deadBand.u|deadBand.uMax|deadBand.uMin|deadBand.y|deadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand") translateModel(PowerGrids.Controls.Test.TestDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="deadBand.smoothed|deadBand.u|deadBand.uMax|deadBand.uMin|deadBand.y|deadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001419/0.00142, allocations: 106.2 kB / 16.53 MB, free: 6.664 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.001422/0.001422, allocations: 199.2 kB / 17.45 MB, free: 6.039 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.337/1.337, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05915/0.05915, allocations: 14.17 MB / 284.8 MB, free: 14.16 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.001533/0.001533, allocations: 68.55 kB / 345.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2034, allocations: 50.12 MB / 395.8 MB, free: 47.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.002351/0.2058, allocations: 0.7455 MB / 396.6 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002343/0.2061, allocations: 58.5 kB / 396.6 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.811e-05/0.2062, allocations: 1.344 kB / 396.6 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.858e-05/0.2062, allocations: 3.938 kB / 396.6 MB, free: 47.26 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.127e-05/0.2063, allocations: 2.734 kB / 396.6 MB, free: 47.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001641/0.2065, allocations: 18.08 kB / 396.6 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.2066, allocations: 32.28 kB / 396.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2067, allocations: 7.266 kB / 396.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.494e-05/0.2068, allocations: 10.55 kB / 396.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.2068, allocations: 10.39 kB / 396.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.2069, allocations: 2.812 kB / 396.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.14e-05/0.2069, allocations: 3.312 kB / 396.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.049e-05/0.2069, allocations: 1.359 kB / 396.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.207, allocations: 9.438 kB / 396.7 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.919e-05/0.207, allocations: 19.08 kB / 396.7 MB, free: 47.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.207, allocations: 3.984 kB / 396.7 MB, free: 47.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2071, allocations: 4 kB / 396.7 MB, free: 47.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.2071, allocations: 3.938 kB / 396.8 MB, free: 47.19 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004087/0.2075, allocations: 331.7 kB / 397.1 MB, free: 46.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.2075, allocations: 7.094 kB / 397.1 MB, free: 46.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.2076, allocations: 8.594 kB / 397.1 MB, free: 46.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2077, allocations: 172.3 kB / 397.3 MB, free: 46.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.2077, allocations: 8.156 kB / 397.3 MB, free: 46.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.2078, allocations: 384 / 397.3 MB, free: 46.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.208, allocations: 71 kB / 397.3 MB, free: 46.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.208, allocations: 192 / 397.3 MB, free: 46.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.208, allocations: 10.55 kB / 397.3 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.208, allocations: 0 / 397.3 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.2082, allocations: 36.88 kB / 397.4 MB, free: 46.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003382/0.2086, allocations: 265.2 kB / 397.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.2088, allocations: 77.72 kB / 397.7 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.2089, allocations: 35.83 kB / 397.8 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.209, allocations: 1.344 kB / 397.8 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.209, allocations: 31.91 kB / 397.8 MB, free: 46.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.209, allocations: 0 / 397.8 MB, free: 46.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004296/0.2094, allocations: 94.64 kB / 397.9 MB, free: 46.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.2095, allocations: 104.1 kB / 398 MB, free: 45.9 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.723e-05/0.2095, allocations: 101.9 kB / 398.1 MB, free: 45.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.2096, allocations: 26.92 kB / 398.1 MB, free: 45.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.712e-05/0.2096, allocations: 89.36 kB / 398.2 MB, free: 45.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.2096, allocations: 5.125 kB / 398.2 MB, free: 45.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/0.2097, allocations: 17.69 kB / 398.2 MB, free: 45.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.033e-05/0.2097, allocations: 315 kB / 398.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2098, allocations: 27.77 kB / 398.6 MB, free: 45.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.21, allocations: 34.94 kB / 398.6 MB, free: 45.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.2102, allocations: 51.31 kB / 398.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2102, allocations: 0 / 398.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002527/0.2104, allocations: 81.84 kB / 398.7 MB, free: 45.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2105, allocations: 5.031 kB / 398.7 MB, free: 45.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2105, allocations: 0 / 398.7 MB, free: 45.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.2105, allocations: 1.344 kB / 398.7 MB, free: 45.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.2106, allocations: 20.61 kB / 398.7 MB, free: 45.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.2106, allocations: 0 / 398.7 MB, free: 45.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.397e-05/0.2107, allocations: 9.016 kB / 398.7 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.2107, allocations: 1.375 kB / 398.8 MB, free: 45.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.285e-05/0.2108, allocations: 84.89 kB / 398.8 MB, free: 45.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.773e-05/0.2109, allocations: 33.25 kB / 398.9 MB, free: 45.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001013/0.211, allocations: 36.42 kB / 398.9 MB, free: 45.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.553e-06/0.211, allocations: 3.984 kB / 398.9 MB, free: 45.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001545/0.2112, allocations: 61.34 kB / 399 MB, free: 44.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.335e-06/0.2112, allocations: 5.531 kB / 399 MB, free: 44.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-06/0.2112, allocations: 1.125 kB / 399 MB, free: 44.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.085e-06/0.2112, allocations: 5.078 kB / 399 MB, free: 44.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.177e-05/0.2113, allocations: 8.469 kB / 399 MB, free: 44.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-06/0.2113, allocations: 5.125 kB / 399 MB, free: 44.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.499e-05/0.2113, allocations: 7.391 kB / 399 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-06/0.2114, allocations: 1.125 kB / 399 MB, free: 44.95 MB / 318.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 5.332e-05/0.2114, allocations: 186.5 kB / 399.2 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.939e-05/0.2115, allocations: 2.312 kB / 399.2 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.2115, allocations: 11.08 kB / 399.2 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.2115, allocations: 1.094 kB / 399.2 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.2115, allocations: 1.188 kB / 399.2 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2115, allocations: 4 kB / 399.2 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.2117, allocations: 163.7 kB / 399.4 MB, free: 44.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2117, allocations: 1.469 kB / 399.4 MB, free: 44.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.991e-05/0.2118, allocations: 11.02 kB / 399.4 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2118, allocations: 1.344 kB / 399.4 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.2118, allocations: 4 kB / 399.4 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.2118, allocations: 1.375 kB / 399.4 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2118, allocations: 1.406 kB / 399.4 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000468/0.2123, allocations: 0.7314 MB / 400.1 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.97e-05/0.2124, allocations: 82.08 kB / 400.2 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.2124, allocations: 5.312 kB / 400.2 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.2125, allocations: 12.95 kB / 400.2 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.452e-05/0.2126, allocations: 10.5 kB / 400.2 MB, free: 43.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.2126, allocations: 1.25 kB / 400.2 MB, free: 43.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.541e-05/0.2126, allocations: 82.08 kB / 400.3 MB, free: 43.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2126, allocations: 0 / 400.3 MB, free: 43.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008148/0.2135, allocations: 11.31 kB / 400.3 MB, free: 43.59 MB / 318.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 7.431e-05/0.2135, allocations: 92.09 kB / 400.4 MB, free: 43.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003482/0.2139, allocations: 61.11 kB / 400.5 MB, free: 43.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2139, allocations: 3.938 kB / 400.5 MB, free: 43.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.2141, allocations: 19.23 kB / 400.5 MB, free: 43.47 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.2144, allocations: 12.91 kB / 400.5 MB, free: 43.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.2149, allocations: 260.4 kB / 400.8 MB, free: 43.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.141e-05/0.215, allocations: 0.6828 MB / 401.4 MB, free: 42.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.215, allocations: 8.812 kB / 401.4 MB, free: 42.47 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.215, allocations: 0 / 401.4 MB, free: 42.47 MB / 318.1 MB Notification: Performance of Templates: time 0.002215/0.2172, allocations: 0.6525 MB / 402.1 MB, free: 42.13 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDeadBand_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches